/* Importação da fonte Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remover outline/focus de todos os elementos de formulário */
input, textarea, button, select, a {
    outline: none !important;
}

input:focus, textarea:focus, button:focus, select:focus, a:focus {
    outline: none !important;
}

/* Remover especificamente o focus do campo de busca */
#search-input {
    outline: none !important;
    border: none !important;
}

#search-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

html {
    background-color: #f1f1f1;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #14446D;
    background-color: #f1f1f1;
}

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

/* Header */
.header {
    background-color: #ffffff;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(20, 68, 109, 0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: #14446D;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav a {
    text-decoration: none;
    color: #14446D;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: #0f3a5f;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #14446D;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.nav a.active {
    color: #0f3a5f;
    font-weight: 600;
}

.nav a.active::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    color: #14446D;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background-color: rgba(20, 68, 109, 0.05);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #14446D;
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Remover margens da seção de resultados de pesquisa */
.search-results {
    margin: 0 !important;
}

/* Header icons container */
.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Search icon */
.search-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    color: #14446D;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-icon:hover {
    background-color: rgba(20, 68, 109, 0.05);
    color: #3498db;
}

/* Favorites icon */
.favorites-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    color: #14446D;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.favorites-icon:hover {
    background-color: rgba(20, 68, 109, 0.05);
    color: #e74c3c;
}

.favorites-icon.active {
    color: #e74c3c;
}

.favorites-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #e74c3c;
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Profile icon */
.profile-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    color: #14446D;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.profile-icon:hover {
    background-color: rgba(20, 68, 109, 0.05);
}

/* Main content */
main {
    margin-top: 80px;
}

/* Toast central para favoritos */
.favorite-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    z-index: 10001;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    max-width: 90vw;
    animation: cmToastIn 0.3s ease-out;
    will-change: transform, opacity;
}

.favorite-message i {
    font-size: 1.1rem;
}

.favorite-message--added {
    background-color: #28a745;
}

.favorite-message--removed {
    background-color: #dc3545;
}

.favorite-message--closing {
    animation: cmToastOut 0.25s ease-in forwards;
}

@keyframes cmToastIn {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes cmToastOut {
    from { opacity: 1; transform: translate(-50%, -50%); }
    to { opacity: 0; transform: translate(-50%, calc(-50% - 10px)); }
}

.dark-theme .favorite-message {
    color: #ffffff;
}

/* Ajustes para mobile: largura total e animações sem deslocamento horizontal */
@media (max-width: 699px) {
    .favorite-message {
        left: 50px;
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
        border-radius: 12px;
        animation: cmToastInMobile 0.3s ease-out;
    }
    .favorite-message--closing {
        animation: cmToastOutMobile 0.25s ease-in forwards;
    }
}

@keyframes cmToastInMobile {
    from { opacity: 0; transform: translateY(calc(-50% + 10px)); }
    to { opacity: 1; transform: translateY(-50%); }
}

@keyframes cmToastOutMobile {
    from { opacity: 1; transform: translateY(-50%); }
    to { opacity: 0; transform: translateY(calc(-50% - 10px)); }
}

/* Home banner */
.home-banner {
    padding: 0;
}

.home-banner picture,
.home-banner img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .home-banner {
        margin: 25px 12.5px 50px 12.5px !important;
    }
}
@media (max-width: 699px) {
    .home-banner picture,
    .home-banner img {
        border-radius: 12px;
        margin-bottom: -25px !important;
    }
}

/* Hero section */
.hero {
    background-color: #ffffff;
    padding: 0;
    text-align: center;
    border-bottom: 1px solid rgba(20, 68, 109, 0.1);
}

.hero-content h2 {
    font-size: 2.5rem;
    color: #14446D;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.2rem;
    color: #14446D;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    background-color: #14446D;
    color: #ffffff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0f3a5f;
}

/* Produtos */
.products {
    padding: 0;
    background-color: #ffffff;
}

.products h2 {
    color: #14446D;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
    box-shadow: none !important;
}



.product-image {
    text-align: center;
    margin-bottom: 1rem;
}

.product-image svg {
    max-width: 100%;
    height: auto;
}

.product-info {
    text-align: center;
}

.product-info h3 {
    color: #14446D;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-info .price {
    color: #14446D;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #14446D;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.product-specs {
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.product-specs p {
    color: #14446D;
    font-size: 0.8rem;
    margin: 0;
    font-weight: 500;
}

.add-to-cart {
    background-color: #14446D;
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 0px !important;
    width: 100%;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #0f3a5a;
}

/* About section */
.about {
    padding: 0;
    background-color: #f8f9fa;
    text-align: center;
}

.about h2 {
    font-size: 2rem;
    color: #14446D;
    margin-bottom: 2rem;
    font-weight: 300;
}

.about p {
    font-size: 1.1rem;
    color: #14446D;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: #14446D;
    color: #ffffff;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #ffffff;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.newsletter-input {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    min-width: 200px;
    color: #333;
}

.newsletter-input::placeholder {
    color: #999;
}

.newsletter-btn {
    background-color: #14446D;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.newsletter-btn:hover {
    background-color: #0f3a5a;
}

.newsletter-text {
    color: #14446D;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

/* Main Footer Content */
.footer-main {
    background-color: #14446D;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-slogan {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.social-media {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.app-download p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.app-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.app-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.address-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #0f3a5a;
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info {
    flex: 1;
}

.footer-info p {
    margin: 0.3rem 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.developer-credit {
    font-weight: 500;
}

.copyright {
    font-weight: 600;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-methods span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.payment-icons {
    display: flex;
    gap: 0.5rem;
}

.payment-icons i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

/* Limitar altura do conteúdo do carrinho e permitir rolagem quando exceder 500px */
#cartModal .modal-content {
    max-height: 500px;
    overflow-y: auto;
}

.close {
    color: #14446D;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    opacity: 0.7;
}

.modal-content h2 {
    color: #14446D;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(20, 68, 109, 0.1);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h4 {
    color: #14446D;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #14446D;
    font-weight: bold;
}

.cart-total {
    text-align: right;
    margin: 1.5rem 0;
    font-size: 1.2rem;
    color: #14446D;
}

/* Item Controls - Design Minimalista */
.item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-controls button {
    background: none;
    border: 1px solid #e0e0e0;
    color: #666;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.item-controls button:hover {
    border-color: #14446D;
    color: #14446D;
    background-color: rgba(20, 68, 109, 0.05);
}

.item-controls span {
    min-width: 24px;
    text-align: center;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.item-controls .remove-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    width: auto;
    height: auto;
    transition: all 0.2s ease;
}

.item-controls .remove-btn:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.checkout-btn {
    background-color: #14446D;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #0f3a5f;
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-input {
        width: 100%;
        min-width: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .app-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .app-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 2rem 0;
    }
    
    .newsletter-section {
        padding: 1.5rem 0;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
    
    .footer-column h4 {
        font-size: 0.9rem;
    }
    
    .footer-column a {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .newsletter-section {
        display: none !important;
    }
    
    .header .container {
        padding: 1rem 1.5rem;
    }

    .nav {
        gap: 1.5rem;
    }

    .nav a {
        font-size: 0.9rem;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header .container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .logo span {
        font-size: 1.1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .products {
        padding: 2rem 0;
    }

    .about {
        padding: 2rem 0;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .products h2,
    .about h2 {
        font-size: 1.5rem;
    }

    /* Estilos para botões de favorito */
    .favorite-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #ccc;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10;
        padding: 0.5rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .favorite-btn:hover {
        color: #e74c3c;
        background-color: rgba(231, 76, 60, 0.1);
        transform: scale(1.1);
    }
    
    .favorite-btn.active {
        color: #e74c3c;
        animation: heartBeat 0.6s ease-in-out;
    }
    
    @keyframes heartBeat {
        0% { transform: scale(1); }
        25% { transform: scale(1.2); }
        50% { transform: scale(1); }
        75% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }
    
    /* Estilos para a página de favoritos */
    .favorites-page {
        min-height: 100vh;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    }
    
    .favorites-container {
        padding: 2rem 0;
    }
    
    .favorites-empty {
        text-align: center;
        padding: 4rem 2rem;
        color: #14446D;
        background: white;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        max-width: 600px;
        margin: 0 auto;
    }
    
    .favorites-empty i {
        font-size: 5rem;
        margin-bottom: 2rem;
        opacity: 0.3;
        color: #e74c3c;
    }
    
    .favorites-empty h3 {
        font-size: 2rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }
    
    .favorites-empty p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        opacity: 0.8;
    }
    
    .favorites-empty a {
        display: inline-block;
        padding: 1rem 2.5rem;
        background: linear-gradient(135deg, #14446D 0%, #1e5a8a 100%);
        color: white;
        text-decoration: none;
        border-radius: 50px;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(20, 68, 109, 0.3);
    }
    
    .favorites-empty a:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(20, 68, 109, 0.4);
    }
    
    /* Melhorias nos cards de produto */
    .product-card {
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }
    
    .product-card:hover .favorite-btn {
        opacity: 1;
    }
    
    /* Responsividade para favoritos */
    @media (max-width: 768px) {
        .favorite-btn {
            font-size: 1.2rem;
            width: 35px;
            height: 35px;
            top: 0.5rem;
            right: 0.5rem;
        }
        
        .favorites-empty {
            padding: 3rem 1.5rem;
            margin: 0 1rem;
        }
        
        .favorites-empty i {
            font-size: 3.5rem;
        }
        
        .favorites-empty h3 {
            font-size: 1.5rem;
        }
    }

}

/* ===== ESTILOS DO POP-UP DE BUSCA ===== */

.search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2rem;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.search-popup-content {
    background-color: #ffffff;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

.search-popup-header {
    background: #14446D;
    color: #ffffff;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-popup-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-search {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-search:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.search-popup-body {
    padding: 2rem;
}

.search-popup-body input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-popup-body input:focus {
    outline: none;
    border-color: #14446D;
    box-shadow: 0 0 0 3px rgba(20, 68, 109, 0.1);
}

.search-popup-body button {
    width: 100%;
    background: #14446D;
    color: #ffffff;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-popup-body button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 68, 109, 0.3);
}

.search-popup-body button:active {
    transform: translateY(0);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animação de loading para página de pesquisa */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== PÁGINA MENU ===== */
.menu-page {
    padding: 0px 0px 25px 0px !important;
    min-height: calc(100vh - 200px);
}

.menu-header {
    text-align: center;
    margin-bottom: 3rem;
}

.menu-header h1 {
    color: #14446D;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.menu-header p {
    color: #666;
    font-size: 1rem;
}

.menu-sections {
    max-width: 100%;
    margin: 0 auto;
}

.menu-section {
    margin-bottom: 2.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: none !important;
    border: 1px #efefef solid !important;
    overflow: hidden;
}

.menu-section h2 {
    background: #14446D;
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-links {
    padding: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    gap: 1rem;
}

.menu-link:last-child {
    border-bottom: none;
}

.menu-link:hover {
    background-color: #f8f9fa;
    color: #14446D;
}

.menu-link i:first-child {
    color: #14446D;
    width: 20px;
    text-align: center;
}

.menu-link span {
    flex: 1;
    font-weight: 500;
}

.menu-link i:last-child {
    color: #ccc;
    font-size: 0.8rem;
}

.menu-link:hover i:last-child {
    color: #14446D;
}

/* Responsividade para Menu */
@media (max-width: 768px) {
    .menu-page {
        padding: 1rem 0 6rem 0;
    }
    
    .menu-header h1 {
        font-size: 1.5rem;
    }
    
    .menu-sections {
        margin: 0 !important;
    }
    
    .menu-section {
        margin-bottom: 1.5rem;
    }
    
    .menu-link {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .menu-header {
        margin-bottom: 2rem;
    }
    
    .menu-link {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* ===== MENU MOBILE ESTILO APLICATIVO ===== */
.mobile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    display: none;
    z-index: 1000;
    box-shadow: none !important;
}

.mobile-menu-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    max-width: 100%;
}

.mobile-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 60px;
    position: relative;
}

.mobile-menu-item:hover {
    color: #14446D;
    background-color: rgba(20, 68, 109, 0.1);
}

.mobile-menu-item.active {
    color: #14446D;
}

.mobile-menu-item i {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.mobile-menu-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

.mobile-menu-item .badge {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 699px) {
    /* Truncar títulos dos itens do carrinho a partir de 10 caracteres em mobile */
    #cartModal .item-info h4,
    .cart-item .item-info h4 {
        display: inline-block;
        max-width: 10ch;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* Ocultar cabeçalho e rodapé padrão */
    .header,
    .footer {
        display: none !important;
    }
    
    /* Mostrar menu mobile */
    .mobile-menu {
        display: block;
    }
    
    /* Ajustar margem do main para compensar o menu fixo - removido pois será padronizado */
    
    /* Ajustar pop-ups para não ficarem atrás do menu */
    .modal,
    .search-popup {
        padding-bottom: 70px;
    }
    
    /* Padronizar margens para mobile: 25px top, 10px laterais, 50px bottom */
    main {
        margin: 25px 10px 50px 10px !important;
    }
    
    /* Adicionar margens laterais de 12.5px para outros elementos */
    .container,
    .hero,
    .products-section,
    .about-section,
    .contact-section,
    .favorites-section,
    .product-grid,
    .content-section {
        margin-left: 12.5px !important;
        margin-right: 12.5px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Remover apenas padding-top da seção de produtos em mobile */
    section[style*="padding: 4rem 0"] {
        padding-top: 0 !important;
        padding-bottom: 4rem !important;
    }
    
    /* Ajustar largura dos containers para compensar as margens */
    .container {
        max-width: calc(100% - 25px) !important;
        width: calc(100% - 25px) !important;
    }
    
    /* Garantir que elementos específicos também respeitem as margens */
    .hero-content,
    .section-content,
    .product-card,
    .contact-form,
    .about-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Ajustar modais e pop-ups para também terem margens */
    .modal-content,
    .search-popup-content {
        margin-left: 12.5px !important;
        margin-right: 12.5px !important;
        width: calc(100% - 25px) !important;
        max-width: calc(100% - 25px) !important;
    }
    
    /* Centralizar e ajustar grid de produtos em mobile */
    .produtos-grid,
    div[style*="display: grid"],
    div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding: 0 !important;
        margin: 0 auto !important;
        grid-template-columns: none !important;
        min-width: auto !important;
    }
    
    /* Garantir margens laterais para elementos filhos dos grids */
    .contact-section div[style*="display: grid"] > div,
    section[style*="padding: 4rem 0"] div[style*="display: grid"] > div {
        margin-left: 12.5px !important;
        margin-right: 12.5px !important;
        width: calc(100% - 25px) !important;
        max-width: calc(100% - 25px) !important;
        box-sizing: border-box !important;
    }
    
    /* Ajustar cards de produtos para mobile */
    .product-card {
        width: 100% !important;
        max-width: calc(100vw - 25px) !important;
        min-width: auto !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
}

@media (min-width: 700px) {
    /* Mostrar cabeçalho e rodapé padrão */
    .header,
    .footer {
        display: block !important;
    }
    
    /* Ocultar menu mobile */
    .mobile-menu {
        display: none !important;
    }
}

/* Estilos específicos para a página menu */
.desktop-warning {
    display: none;
    background: linear-gradient(135deg, #14446D, #1a5a8a);
    color: white;
    padding: 4rem 0;
    text-align: center;
    min-height: 60vh;
    align-items: center;
    justify-content: center;
    margin-top: 100px !important;
}

.warning-content {
    max-width: 600px;
    margin: 0 auto;
}

.warning-content i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.warning-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.warning-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Media queries para página menu */
@media (min-width: 769px) {
    /* Em telas maiores, mostrar aviso e ocultar main */
    .desktop-warning {
        display: flex !important;
    }
    
    .main-content {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Em telas menores, ocultar aviso e mostrar main */
    .desktop-warning {
        display: none !important;
    }
    
    .main-content {
        display: block !important;
    }
    
    .search-popup {
        align-items: flex-start;
        padding-top: 1rem;
    }
    
    .search-popup-content {
        width: 95%;
        margin: 0 1rem;
    }
    
    .search-popup-header {
        padding: 1rem;
    }
    
    .search-popup-header h3 {
        font-size: 1.1rem;
    }
    
    .search-popup-body {
        padding: 1rem;
    }
}

/* ===== THEME TOGGLE STYLES ===== */
.theme-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 1rem !important;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.theme-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.theme-slider {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.theme-checkbox:checked + .theme-label {
    background-color: #14446D;
}

.theme-checkbox:checked + .theme-label .theme-slider {
    transform: translateX(26px);
}

/* ===== DARK THEME STYLES ===== */
.dark-theme {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-theme {
    background-color: #1a1a1a !important;
}

html.dark-theme {
    background-color: #1a1a1a !important;
}

/* Header styles for dark theme */
.dark-theme header,
.dark-theme .header {
    background-color: #2d2d2d;
    border-bottom-color: #444;
}

.dark-theme .nav a {
    color: #ffffff;
}

.dark-theme .nav a:hover {
    color: #ffffff;
}

.dark-theme .nav a:focus {
    color: #ffffff;
}

/* Underline dos links do menu branco no modo escuro */
.dark-theme .nav a::after {
    background-color: #ffffff;
}

.dark-theme .header-icons .search-icon,
.dark-theme .header-icons .favorites-icon,
.dark-theme .header-icons .menu-icon,
.dark-theme .header-icons .cart-icon,
.dark-theme .header-icons .profile-icon {
    color: #ffffff;
}

.dark-theme .header-icons .search-icon:hover,
.dark-theme .header-icons .favorites-icon:hover,
.dark-theme .header-icons .menu-icon:hover {
    color: #14446D;
}

/* Tornar cor do ícone de coração branca no modo escuro */
.dark-theme .fas.fa-heart {
    color: #ffffff;
}

/* Tornar cor do ícone de busca branca no modo escuro */
.dark-theme .fas.fa-search {
    color: #ffffff;
}

/* Main content styles for dark theme */
.dark-theme main {
    background-color: #1a1a1a !important;
}

/* Inline styles override for dark theme */
.dark-theme main section[style*="background-color: #ffffff"] {
    background-color: #1a1a1a !important;
}

.dark-theme main section[style*="background-color: #f1f1f1"] {
    background-color: #1a1a1a !important;
}

.dark-theme .product-card[style*="background-color: #ffffff"] {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
}

.dark-theme .product-card h3[style*="color: #14446D"] {
    color: #ffffff !important;
}

.dark-theme .product-card p[style*="color: #14446D"] {
    color: #ffffff !important;
}

.dark-theme .product-card .price[style*="color: #14446D"] {
    color: #14446D !important;
}

.dark-theme .product-card div[style*="background-color: #f8f9fa"] {
    background-color: #3d3d3d !important;
}

.dark-theme .product-card div[style*="background-color: #e8f5e8"] {
    background-color: #2d4a2d !important;
}

.dark-theme .product-card button[style*="background-color: #14446D"] {
    background-color: #14446D !important;
}

/* Additional inline styles override for dark theme */
.dark-theme div[style*="background-color: #f8f9fa"] {
    background-color: #2d2d2d !important;
}

.dark-theme h2[style*="color: #14446D"] {
    color: #ffffff !important;
}

.dark-theme h3[style*="color: #14446D"] {
    color: #ffffff !important;
}

.dark-theme p[style*="color: #14446D"] {
    color: #ffffff !important;
}

.dark-theme a[style*="color: #14446D"] {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.dark-theme i[style*="color: #14446D"] {
    color: #ffffff !important;
}

.dark-theme .hero {
    background-color: #2d2d2d;
}

.dark-theme .hero h1,
.dark-theme .hero p {
    color: #ffffff;
}

.dark-theme .products-section,
.dark-theme .about-section,
.dark-theme .contact-section,
.dark-theme .favorites-section,
.dark-theme .search-results {
    background-color: #1a1a1a;
}

.dark-theme .products-section h2,
.dark-theme .about-section h2,
.dark-theme .contact-section h2,
.dark-theme .favorites-section h2,
.dark-theme .search-results h2 {
    color: #ffffff;
}

.dark-theme .product-card {
    background-color: #2d2d2d;
    border-color: #444;
}

.dark-theme .product-card h3,
.dark-theme .product-card p {
    color: #ffffff;
}

.dark-theme .product-card .price {
    color: #ffffff !important;
}

.dark-theme .product-card .price[style*="color: #14446D"] {
    color: #ffffff !important;
}

/* Form styles for dark theme */
.dark-theme .contact-form {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
}

.dark-theme .form-group label {
    color: #ffffff !important;
}

.dark-theme label[style*="color: #14446D"] {
    color: #ffffff !important;
}

.dark-theme .form-group input,
.dark-theme .form-group textarea,
.dark-theme .form-group select {
    background-color: #3f3e3e !important;
    border: none !important;
    color: #ffffff;
}

.dark-theme input[style],
.dark-theme textarea[style],
.dark-theme select[style],
.dark-theme button[style]:not(.payment-info-btn):not(.add-to-cart) {
    background-color: #3f3e3e !important;
    color: white !important;
    border: none !important;
}

.dark-theme .form-group input:focus,
.dark-theme .form-group textarea:focus,
.dark-theme .form-group select:focus {
    border-color: #14446D;
}

/* Button styles for dark theme */
.dark-theme .btn-primary {
    background-color: #14446D;
    border-color: #14446D;
}

.dark-theme .btn-primary:hover {
    background-color: #0f3a5a;
    border-color: #0f3a5a;
}

.dark-theme .btn-secondary {
    background-color: #444;
    border-color: #444;
    color: #ffffff;
}

.dark-theme .btn-secondary:hover {
    background-color: #555;
    border-color: #555;
}

/* Search popup styles for dark theme */
.dark-theme .search-popup {
    background-color: rgba(0, 0, 0, 0.8);
}

.dark-theme .modal-content {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
}

.dark-theme .modal-content h2 {
    color: #ffffff;
}

.dark-theme .close {
    color: #ffffff;
}

/* Dark theme - Card Payment Modal */
.dark-theme #card-payment-modal {
    background: rgba(0, 0, 0, 0.6) !important;
}
.dark-theme #card-payment-modal .modal-content {
    color: #e0e0e0 !important;
}
.dark-theme #card-payment-modal h3 {
    color: #ffffff !important;
}
.dark-theme #card-payment-modal button {
    color: #e0e0e0 !important;
}
.dark-theme #card-payment-modal #card-modal-message {
    background: #2a2a2a !important;
    color: #f0c674 !important;
    border: 1px solid #3a3a3a !important;
}
.dark-theme #card-payment-modal .selection-list {
    background: transparent !important;
}
.dark-theme #card-payment-modal .option-card {
    background-color: #3d3d3d !important;
    color: #ffffff !important;
    border-color: #555 !important;
}
.dark-theme #card-payment-modal .option-card:hover {
    border-color: #666 !important;
}
.dark-theme #card-payment-modal .option-radio:checked + .option-card {
    border-color: #14446D !important;
}
.dark-theme #card-payment-modal .option-radio:checked + .option-card .option-slider {
    background-color: #14446D !important;
}
.dark-theme #card-payment-modal .option-text {
    color: #ffffff !important;
}
.dark-theme #card-payment-modal select {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}

.dark-theme .cart-total strong,
.dark-theme #cart-total {
    color: #ffffff;
}

.dark-theme .item-controls span {
    color: #ffffff;
}

/* Garantir botões brancos dentro de item-controls no modo escuro */
.dark-theme .item-controls button {
    color: #ffffff;
    border-color: #ffffff;
}

.dark-theme .item-controls button:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.dark-theme .search-popup-content {
    background-color: #2d2d2d;
    border-color: #444;
}

.dark-theme .search-popup-header h3 {
    color: #ffffff;
}

.dark-theme .close-search {
    color: #ffffff;
}

.dark-theme .close-search:hover {
    color: #14446D;
}

.dark-theme #search-input {
    background-color: #3d3d3d;
    border-color: #555;
    color: #ffffff;
}

.dark-theme #search-btn {
    background-color: #14446D;
    color: #ffffff;
}

.dark-theme #search-btn:hover {
    background-color: #0f3a5a;
}

/* Payment popup: largura e altura fixas em tablet/desktop */
@media (min-width: 700px) {
    .payment-popup-content {
        width: 500px !important;
        height: 500px !important;
        max-width: 500px !important;
        max-height: 500px !important;
    }
}

/* Newsletter escuro no modo dark */
.dark-theme .newsletter-section {
    background-color: #2d2d2d !important;
    border-bottom-color: #444 !important;
}
.dark-theme .newsletter-text {
    color: #ffffff !important;
}
.dark-theme .newsletter-input {
    background-color: #3f3e3e !important;
    border-color: #555 !important;
    color: #ffffff !important;
}
.dark-theme .newsletter-input::placeholder {
    color: #bbbbbb !important;
}
.dark-theme .newsletter-btn {
    background-color: #14446D !important;
    color: #ffffff !important;
}

/* Cart count badge em modo escuro */
.dark-theme .cart-count {
    background-color: #e74c3c;
}
/* Spans de payment-methods brancos no modo escuro */
.dark-theme .payment-methods span {
    color: #ffffff !important;
}
/* Ícones de payment-icons brancos no modo escuro */
.dark-theme .payment-icons i {
    color: rgba(255, 255, 255, 0.99) !important;
}

/* Menu page specific styles for dark theme */
.dark-theme .menu-section h2 {
    color: #ffffff;
    border-bottom-color: #444;
}

.dark-theme .menu-link {
    background-color: #2d2d2d;
    color: #ffffff;
    border-color: #444;
}

/* Escurecer containers com fundo branco no modo escuro */
.dark-theme .menu-section {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
}

.dark-theme .favorites-empty {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
}

.dark-theme .menu-link:hover {
    background-color: #3d3d3d;
}

/* Manter cor escura somente para o bloco theme-toggle no modo dark */
.dark-theme .menu-link.theme-toggle {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border-color: #444 !important;
}
.dark-theme .menu-link.theme-toggle:hover,
.dark-theme .menu-link.theme-toggle:focus,
.dark-theme .menu-link.theme-toggle:active {
    background-color: #2d2d2d !important;
}

.dark-theme .menu-link i {
    color: #ffffff;
}

.dark-theme .desktop-warning {
    background-color: #2d2d2d;
    color: #ffffff;
    border-color: #444;
}

/* Mobile menu styles for dark theme */
.dark-theme .mobile-menu {
    background-color: #2d2d2d;
    border-top-color: #444;
}

.dark-theme .mobile-menu a {
    color: #ffffff;
}

.dark-theme .mobile-menu a.active {
    color: #ffffff;
}

.dark-theme .mobile-menu-item {
    color: #ffffff;
}

/* Footer styles for dark theme */
.dark-theme footer {
    background-color: #2d2d2d;
    border-top-color: #444;
}

.dark-theme footer p {
    color: #ffffff;
}
.dark-theme .footer-column a {
    color: #ffffff !important;
}
/* Escurecer footer-bottom no modo escuro */
.dark-theme .footer-bottom {
    background-color: #2d2d2d !important;
}
/* Escurecer footer-main no modo escuro */
.dark-theme .footer-main {
    background-color: #2d2d2d !important;
}

/* Content section styles for dark theme */
.dark-theme .content-section {
    background-color: #1a1a1a;
}

.dark-theme .content-section h1,
.dark-theme .content-section h2,
.dark-theme .content-section h3,
.dark-theme .content-section p {
    color: #ffffff;
}

/* Account section escuro no modo dark */
.dark-theme .account-section {
    background-color: #1a1a1a !important;
}

/* Account card escuro no modo dark */
.dark-theme .account-card {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
}

/* Título da conta branco no modo escuro */
.dark-theme .account-card h2 {
    color: #ffffff !important;
}

/* Auth section escuro no modo dark */
.dark-theme .auth-section {
    background-color: #1a1a1a !important;
}

/* Auth card escuro no modo dark */
.dark-theme .auth-card {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
}

/* Título da autenticação branco no modo escuro */
.dark-theme .auth-card h2 {
    color: #ffffff !important;
}

/* Labels e inputs escuros no modo dark para autenticação */
.dark-theme .auth-card label {
    color: #ffffff !important;
}
.dark-theme .auth-card input[type="email"],
.dark-theme .auth-card input[type="password"],
.dark-theme .auth-card input[type="text"] {
    background-color: #3f3e3e !important;
    border: none !important;
    color: #ffffff !important;
}

/* Card styles for dark theme */
.dark-theme .card {
    background-color: #2d2d2d;
    border-color: #444;
}

.dark-theme .card-header {
    background-color: #3d3d3d;
    border-bottom-color: #444;
}

.dark-theme .card-body {
    color: #ffffff;
}

/* Pop-up de Forma de Pagamento */
.payment-popup {
    display: none;
    position: fixed!important;
    top: 0!important;
    left: 0!important;
    width: 100%!important;
    height: 100%!important;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999!important;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.payment-popup.show {
    display: flex!important;
}

.payment-popup-content {
    background-color: #ffffff;
    border-radius: 0;
    padding: 2rem;
    width: 100%!important;
    height: 100%!important;
    overflow-y: auto;
    position: relative;
    box-shadow: none;
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.payment-popup-close {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    border: none;
    font-size: 1.2rem;
    color: #ffffff;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    font-weight: bold;
    box-shadow: none!important;
    background-color: #14446D!important;
    color: white!important;
    width: 40px!important;
    height: 40px!important;
    z-index: 10002 !important;
}

.payment-popup-close:hover {
    background: linear-gradient(135deg, #ff3742, #ff2d3a);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}
}

.payment-method {
    transition: transform 0.2s ease;
}

.payment-method:hover {
    transform: translateY(-2px);
}

/* Layout horizontal para os métodos de pagamento no pop-up */
.payment-popup .payment-methods {
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: flex-start;
}

/* Forçar layout de mobile para payment-methods em todas as larguras */
.payment-popup .payment-methods {
    flex-direction: column !important;
    gap: 1rem !important;
    justify-content: flex-start !important;
}

.payment-popup .payment-method {
    flex: 1;
    margin-bottom: 0 !important;
    width: 100%;
}

.credit-options {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.credit-options > div {
    padding: 0.3rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    transition: background-color 0.2s ease;
    width: 100%;
}

.credit-options > div:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Responsividade do Pop-up */
@media (max-width: 768px) {
    .payment-popup-content {
        padding: 1.2rem;
    }
    
    .payment-popup .payment-methods {
        flex-direction: column;
        gap: 1rem;
    }
    
    .payment-popup .payment-method {
        margin-bottom: 0 !important;
    }
    
    .credit-options {
        grid-template-columns: 1fr !important;
        gap: 0.3rem;
        font-size: 0.75rem;
    }
    
    .payment-method {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .payment-popup-content h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .payment-popup-content {
        padding: 1rem;
    }
    
    .payment-popup .payment-methods {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .payment-popup .payment-method {
        margin-bottom: 0 !important;
    }
    
    .payment-popup-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .credit-options {
        grid-template-columns: 1fr !important;
        gap: 0.25rem;
        font-size: 0.7rem;
    }
    
    .credit-options > div {
        padding: 0.3rem;
    }
    
    .payment-method {
        padding: 0.7rem;
        margin-bottom: 0.7rem;
    }
}

/* Botão de Forma de Pagamento */
.payment-info-btn {
    background-color: #28a745;
    color: #ffffff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0.5rem;
    width: 100%;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.payment-info-btn:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.payment-info-btn:active {
    transform: translateY(0);
}

/* Dark Theme para Pop-up */
.dark-theme .payment-popup-content {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

.dark-theme .payment-popup-content h3 {
    color: #ffffff !important;
}

.dark-theme .payment-popup-close:hover {
    background-color: #444;
    color: #ffffff;
}

/* ===== Formulários de Autenticação ===== */
.auth-section, .account-section {
    padding: 0;
    background-color: #f1f1f1;
}

.auth-card, .account-card {
    max-width: 420px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: none !important;
}

.auth-card h2, .account-card h2 {
    margin-bottom: 1rem;
    color: #14446D;
}

.auth-card label {
    display: block;
    margin: 0.5rem 0 0.25rem 0;
    color: #333;
    font-weight: 500;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
    font-size: 0.95rem;
}


.primary-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: #14446D;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
}

.secondary-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: #e74c3c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
}

.auth-alt {
    margin-top: 1rem;
    text-align: center;
}

/* Link 'Cadastrar' branco no modo escuro */
.dark-theme .auth-alt a[href="../cadastrar/"] {
    color: #ffffff !important;
}
.dark-theme .auth-alt a[href="../cadastrar/"]:visited {
    color: #ffffff !important;
}

/* Link 'Entrar' branco no modo escuro */
.dark-theme .auth-alt a[href="../entrar/"] {
    color: #ffffff !important;
}
.dark-theme .auth-alt a[href="../entrar/"]:visited {
    color: #ffffff !important;
}

.form-message {
    display: none;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.form-message.error {
    background-color: #fdecea;
    color: #d93025;
}

.form-message.success {
    background-color: #e6f4ea;
    color: #137333;
}

@media (max-width: 699px) {
    .auth-section, .account-section {
        padding: 0 !important;
    }
    .auth-card, .account-card {
    }
}
/* Manter cor única no modo claro para menu-link theme-toggle */
.menu-link.theme-toggle {
    background-color: #ffffff !important;
    color: #14446D !important;
    border-color: #e0e0e0 !important;
}
.menu-link.theme-toggle:hover,
.menu-link.theme-toggle:focus,
.menu-link.theme-toggle:active {
    background-color: #ffffff !important;
}

/* ===== Finalização de Compra - Modo Escuro ===== */
.dark-theme .checkout-section {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
}
.dark-theme .checkout-section h3 {
    color: #ffffff !important;
}
.dark-theme .checkout-section .option-card {
    background-color: #3d3d3d !important;
    border-color: #555 !important;
    color: #ffffff !important;
}
.dark-theme .checkout-section .option-card:hover {
    border-color: #666 !important;
}
.dark-theme .checkout-section .option-slider {
    background-color: #555 !important;
}
.dark-theme .checkout-section .option-radio:checked + .option-card {
    border-color: #14446D !important;
}
.dark-theme .checkout-section .option-radio:checked + .option-card .option-slider {
    background-color: #14446D !important;
}
.dark-theme .checkout-section .option-text {
    color: #ffffff !important;
}
.dark-theme .checkout-section .order-header {
    color: #ffffff !important;
    border-bottom-color: #444 !important;
}
.dark-theme .checkout-section .order-summary {
    border-top-color: #444 !important;
}
.dark-theme .checkout-section .order-summary-row {
    color: #ffffff !important;
}
.dark-theme .checkout-section .order-summary-separator {
    border-top-color: #444 !important;
}
.dark-theme .checkout-section .order-summary-total strong {
    color: #ffffff !important;
}
.dark-theme .checkout-section .order-actions button {
    background-color: #14446D !important;
    color: #ffffff !important;
    border-color: #14446D !important;
}
