/* ==================================== */
/* 1. PALETA E VARIÁVEIS GLOBAIS */
/* ==================================== */
* a {
    text-decoration: none;
}
/* Paleta de Cores Base */
.bg_paleta {
    background-color: #023e74 !important; /* Cor principal da sua paleta */
}
.color1_paleta {
    color: #023e74 !important; /* Cor principal da sua paleta */
}

/* Efeito Hover na Paleta (Geral) */
.bg_paleta_hover:hover {
    background-color: #022340 !important; /* Cor de hover (um tom mais escuro da paleta) */
}
/* CORREÇÃO DO CARRINHO (Botão usa .bg_paleta) */
.bg_paleta:hover {
    background-color: #045dad !important; /* Aplica o hover escuro na cor base, corrigindo o problema */
    color: #ffff!important;
}

/* Efeito de escala/zoom para elementos interativos (carrinho e ícones sociais) */
.scale-on-hover {
    transition: transform 0.2s ease-in-out;
}
.scale-on-hover:hover {
    transform: scale(1.1); /* Aumenta 10% no hover */
}


/* ==================================== */
/* 2. BARRA SUPERIOR E NAVEGAÇÃO (HEADER) */
/* ==================================== */

/* Opcional: Efeito hover para os ícones sociais (Topo da Página) */
.top-bar a:hover i {
    color: #f0f0f0;
    transform: scale(1.2);
}

/* Estilo para links de navegação (Menu: Início, Loja, Sobre, Contato) */
.nav-link:hover {
    color: #023e74 !important;
}

/* Estilo para o link "checado" (ativo/selecionado) */
.nav-link.active-link {
    color: #023e74 !important;
    border-bottom: 2px solid #023e74;
}

/* Classes de outline/hover para o botão de Login/Cadastro */
.btn-outline-paleta_hover {
    color: #023e74;
    /*border-color: #023e74;*/
}
.btn-outline-paleta_hover:hover {
    color: #ffff!important;
    background-color: #023e74;
    border-color: #023e74;
}

/* Correção do padding no botão de pesquisa (desktop) */
.btn-search-icon {
    padding: 0rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Garante que o ícone do carrinho no menu mobile também tenha o efeito */
/* Nota: Se o botão mobile usar .bg_paleta, essa regra não é mais necessária */
.offcanvas-body .btn-cart-mobile:hover {
    background-color: #022340 !important;
}
/* Opcional: Aumenta a área de toque/visibilidade no mobile */
.offcanvas-body .nav-link:hover {
    background-color: #f3f4f6;
    border-radius: 4px;
}


/* ==================================== */
/* 3. LAYOUT E PÁGINA DE PRODUTOS (FILTROS) */
/* ==================================== */
.topo-produtos {
    background-color: #ffffff;
    color: #333;
    padding: 1em;
    border-radius: 3px 3px 0px 0px;
}
.filter-sidebar {
    background: white;
    border-radius: 3px;
    position: sticky;
    top: 20px;
    height: fit-content;
}
.filter-group {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.category-badge {
    color: #4b5563;
    padding: 0px 7px 0px 0px;
    font-size: 0.75rem;
    border-bottom: 1px solid #ccc;
}
.sort-btn {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}
.sort-btn:hover {
    background: #f3f4f6;
}

/* Estilo para range input (Slider de Preço) */
.form-range::-webkit-slider-thumb {
    background-color: #023e74;
}
.form-range::-moz-range-thumb {
    background-color: #023e74;
}
.form-range::-ms-thumb {
    background-color: #023e74;
}
.form-range::-webkit-slider-runnable-track {
    background: #e0e0e0;
    border-radius: 5px;
    height: 8px;
}
.form-range::-moz-range-track {
    background: #e0e0e0;
    border-radius: 5px;
    height: 8px;
}


/* ==================================== */
/* 4. CARDS DE PRODUTO */
/* ==================================== */
.product-card {
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.product-image {
    height: 200px;
    object-fit: contain;
    border-radius: 3px 12px 0 0;
}
.price {
    color: #2563eb;
    font-weight: 700;
}
.discount-badge {
    position: absolute;
    top: 50px;
    right: 10px;
    background: #dc2626;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.875rem;
}

/* Botão Carrinho dentro do Card */
.cart-btn {
    background: #2563eb;
    color: white;
    border: none;
    transition: all 0.2s;
}
.cart-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
    color: #ffff;
    font-size: 1rem;
}

/* Wishlist/Curtir (Ícone dentro do Card) */
.wishlist-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    color: #0d47a1;
    z-index: 10;
    font-size: 1em;
}
.wishlist-btn:hover {
    color: #dc2626;
    border: 1px solid #d63384;
    font-size: 1.1rem;
}
.badge-curtidas-left {
    position: absolute;
    top: 23px;
    right: 0px;
    color: #6d5f5f;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}
.rating-stars {
    color: #fbbf24;
}
.color-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}
.color-option.selected::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 2px solid #2563eb;
    border-radius: 50%;
}

.contact-item {
    display: flex; /* ESSENCIAL para alinhar o ícone e o texto lado a lado */
    align-items: flex-start; /* Alinha o conteúdo ao topo */
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.contact-icon {
    min-width: 40px; 
    height: 40px;
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 50%;
    display: flex; /* ESSENCIAL para centralizar o ícone dentro da bolha */
    align-items: center;
    justify-content: center;
    margin-right: 15px; /* Espaço entre a bolha e o texto */
    font-size: 1.2rem;
}

/*ÍCONES SOCIAIS DA PÁGINA DE CONTATO*/
.social-icon {
    color: #023e74!important;
}
.social-icon:hover{
    color: #ffff;
}
/* Badges para tipos de produto */
.type-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

/* Ajustes para botões responsivos */
@media (max-width: 768px) {
    .add-to-cart .d-none.d-md-inline {
        display: none !important;
    }
    
/* Garantir que o botão do carrinho mantenha tamanho consistente */
.add-to-cart {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
/* Manter alinhamento dos preços */
.price-section {
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
}

/* ==================================== */
/* 5. SISTEMA DE CURTIDAS/FAVORITOS */
/* ==================================== */

/* Estados do botão de favorito */
.wishlist-btn.favorited {
    background: #fff0f0;
    border-color: #dc3545;
}

.wishlist-btn.favorited i {
    color: #dc3545;
}

.wishlist-btn.favorited:hover {
    background: #ffe0e0;
}

/* Loading state para favoritos */
.wishlist-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.wishlist-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Botão de favorito na página do produto */
.wishlist-btn-fixed.favorited {
    color: #dc3545;
}

.wishlist-btn-fixed.favorited i {
    color: #dc3545;
}

.wishlist-btn-fixed:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Container para toasts */
.toast-container {
    z-index: 9999;
}

/* ==================================== */
/* 5. SISTEMA DE CURTIDAS/FAVORITOS - VERSÃO CORRIGIDA */
/* ==================================== */

/* Estados do botão de favorito - CORREÇÃO PRINCIPAL */
.wishlist-btn.favorited {
    background: #fff0f0 !important;
    border-color: #dc3545 !important;
}

.wishlist-btn.favorited i {
    color: #dc3545 !important;
}

.wishlist-btn.favorited:hover {
    background: #ffe0e0 !important;
    border-color: #dc3545 !important;
}

.wishlist-btn.favorited:hover i {
    color: #dc3545 !important;
}

/* ✅ CORREÇÃO: Estado padrão do botão de favorito */
.wishlist-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ffff !important;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    color: #6c757d !important; /* Cor padrão do ícone */
    z-index: 10;
    font-size: 1em;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    color: #dc2626 !important;
    border: 1px solid #d63384;
    font-size: 1.1rem;
}

.wishlist-btn i {
    transition: color 0.3s ease;
}

/* ✅ CORREÇÃO: Loading state para favoritos */
.wishlist-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.wishlist-btn.loading i {
    animation: spin 1s linear infinite;
    color: #6c757d !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ✅ CORREÇÃO: Botão de favorito na página do produto */
.wishlist-btn-fixed {
    background: none;
    border: 1px solid #ccc;
    padding: 8px 16px;
    color: #6c757d;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.wishlist-btn-fixed:hover {
    background: none;
    color: #dc2626;
    border: 1px solid #d63384;
}

.wishlist-btn-fixed i {
    font-size: 1.2em;
    margin-right: 8px;
    transition: color 0.3s ease;
}

.wishlist-btn-fixed.favorited {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.wishlist-btn-fixed.favorited i {
    color: #dc3545 !important;
}

.wishlist-btn-fixed:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ✅ CORREÇÃO: Container para toasts */
.toast-container {
    z-index: 9999;
}

/* ✅ CORREÇÃO: Badge de contador de curtidas */
.badge-curtidas-left {
    position: absolute;
    top: 23px;
    right: 0px;
    color: #6d5f5f;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
}

/* ✅ CORREÇÃO: Estados responsivos */
@media (max-width: 768px) {
    .wishlist-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9em;
    }
    
    .wishlist-btn.favorited i {
        font-size: 0.9em;
    }
    
    .badge-curtidas-left {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}

/* ✅ CORREÇÃO: Animações suaves */
.wishlist-btn, .wishlist-btn-fixed {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efeito de pulso para novos favoritos */
@keyframes pulse-favorite {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.wishlist-btn.favorited {
    animation: pulse-favorite 0.6s ease;
}

/* ==================================== */
/* 6. ESTILOS ESPECÍFICOS PARA GIFT CARDS */
/* ==================================== */

/* Badge para Gift Card */
.giftcard-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
}

/* Efeito especial para cards de gift card */
.product-card {
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: #023e74;
    box-shadow: 0 8px 25px rgba(2, 62, 116, 0.15);
}

/* Indicadores de tipo de gift card */
.giftcard-type-fixed {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.giftcard-type-variable {
    background: #e3f2fd;
    color: #1565c0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

/* Destaque para preços de gift cards */
.price.giftcard-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #023e74;
}

/* Badge de desconto especial para gift cards */
.discount-badge.giftcard-discount {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    font-weight: 700;
}

/* Responsividade para gift cards */
@media (max-width: 768px) {
    .giftcard-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .product-card:hover {
        transform: translateY(-3px);
    }
}

/* Efeito de brilho para gift cards em destaque */
.product-card.destaque {
    position: relative;
    overflow: hidden;
}

.product-card.destaque::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}