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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a5e20 0%, #2e7d32 50%, #388e3c 100%);
    color: white;
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Scrolled header state */
.header.scrolled {
    padding: 0.6rem 0;
    background: linear-gradient(135deg, #0d4d12 0%, #1a5e20 50%, #2e7d32 100%);
    box-shadow: 0 4px 25px rgba(0,0,0,0.25);
}

.header.scrolled .logo img {
    width: 36px;
    height: 36px;
}

.header.scrolled .logo-text {
    font-size: 1.4rem;
}

.header.scrolled .nav-link {
    height: 38px;
}

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

.header-left, .header-right {
    display: flex;
    align-items: center;
}

.header-right {
    justify-content: flex-end;
    gap: 15px;
}


.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo:hover {
    transform: scale(1.02);
    color: white;
}

.logo-text {
    transition: all 0.3s ease;
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
}

.logo img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.logo:hover img {
    border-color: rgba(255,255,255,0.6);
    transform: rotate(5deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: rgba(255,255,255,0.1);
    min-width: 100px;
    text-align: center;
    height: 40px;
    gap: 8px;
}

.nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: white;
}

.nav-link:hover i {
    transform: scale(1.2);
}

.nav-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.nav-link:hover::after {
    width: 70%;
    opacity: 1;
}

/* Active state for current page */
.nav-link.active {
    background-color: rgba(255,255,255,0.25);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-weight: 600;
}

.nav-link.active::after {
    width: 70%;
    opacity: 1;
}

.nav-link.active i {
    color: #ffeb3b;
    text-shadow: 0 0 5px rgba(255, 235, 59, 0.5);
}

/* Icon-only nav link style for Admin button */
.icon-only-nav-link {
    padding: 0.5rem;
    min-width: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
}

.icon-only-nav-link i {
    margin: 0;
}

.menu-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.menu-toggle:hover::before {
    left: 100%;
}

.menu-toggle i {
    transition: all 0.3s ease;
}

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

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

/* Campo de busca */
.search-section {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4caf50;
}

.search-button {
    padding: 12px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #43a047;
}

/* Cabeçalho dos produtos */
.products-header {
    text-align: center;
    margin-bottom: 30px;
}

.products-header h1 {
    margin-bottom: 15px;
    color: #2e7d32;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.products-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #1a5e20, #388e3c);
    border-radius: 3px;
}

.products-header p {
    color: #555;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 8px 16px;
    background-color: rgba(46, 125, 50, 0.08);
    border-radius: 30px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.5px;
}

/* Grid de produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 30px 0;
    position: relative;
    animation: fadeInGrid 0.6s ease-out;
}

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

/* Card de produto */
.product-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05), 0 6px 6px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 450px; /* Altura reduzida para formato mais compacto */
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 8px 8px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.08);
}

.product-card:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 70%, rgba(255,255,255,0.8) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover:after {
    opacity: 0; /* Changed from 1 to 0 to prevent the white glow from appearing on hover */
}

.product-link {
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Imagem do produto */
.product-image {
    position: relative;
    height: 220px; /* Altura aumentada para melhor visualização */
    overflow: hidden;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    margin-top: 10px; /* Adicionada margem superior para não colar no topo */
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0) 20%);
    z-index: 1;
    pointer-events: none;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantém a exibição da imagem completa */
    object-position: center;
    background: white;
    transition: transform 0.5s ease;
}

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

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    color: #6c757d;
    font-size: 48px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-placeholder {
    transform: scale(1.05);
}

/* Informações do produto */
.product-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    position: relative;
}

.product-info h3 {
    margin: 0 0 10px 0;
    font-size: 17px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.2px;
    transition: color 0.3s ease;
}

.product-card:hover .product-info h3 {
    color: #2e7d32; /* Cor verde que combina com o header */
}

.product-info p {
    margin: 0 0 15px 0;
    font-size: 14.5px;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    transition: color 0.3s ease;
}

/* Indicadores na base do card */
.product-indicators {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto; /* Empurra para o final do card */
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
    position: relative;
}

.product-indicators::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 1px;
    background: #2e7d32;
    transition: width 0.3s ease;
}

.product-card:hover .product-indicators::before {
    width: 100px;
}

.video-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 500;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 3px 6px rgba(255, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover .video-indicator {
    transform: scale(1.1);
    box-shadow: 0 5px 10px rgba(255, 0, 0, 0.3);
}

.video-indicator::before {
    content: '▶'; /* Ícone de play */
    font-size: 10px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.video-indicator span {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #333;
    color: white;
    border-radius: 50%;
    padding: 2px 4px;
    font-size: 8px;
    line-height: 1;
    min-width: 14px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.affiliate-indicators {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
}

.affiliate-link-card {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.2px;
    border: 1px solid transparent;
}

.affiliate-link-card:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.affiliate-link-card.amazon {
    background: linear-gradient(135deg, #ffb700 0%, #ff9900 100%);
    color: white;
    border-color: rgba(255, 153, 0, 0.3);
}

.affiliate-link-card.amazon:hover {
    background: linear-gradient(135deg, #ffc233 0%, #ffb700 100%);
    border-color: rgba(255, 153, 0, 0.5);
}

.affiliate-link-card.mercadolivre {
    background: linear-gradient(135deg, #fff980 0%, #fff159 100%);
    color: #333;
    border-color: rgba(255, 241, 89, 0.5);
}

.affiliate-link-card.mercadolivre:hover {
    background: linear-gradient(135deg, #fffa94 0%, #fff980 100%);
    border-color: rgba(255, 241, 89, 0.7);
}

.affiliate-link-card.shopee {
    background: linear-gradient(135deg, #ff6347 0%, #ee4d2d 100%);
    color: white;
    border-color: rgba(238, 77, 45, 0.3);
}

.affiliate-link-card.shopee:hover {
    background: linear-gradient(135deg, #ff7a63 0%, #ff6347 100%);
    border-color: rgba(238, 77, 45, 0.5);
}

.affiliate-link-card.aliexpress {
    background: linear-gradient(135deg, #ff7043 0%, #ff5722 100%);
    color: white;
    border-color: rgba(255, 87, 34, 0.3);
}

.affiliate-link-card.aliexpress:hover {
    background: linear-gradient(135deg, #ff8a66 0%, #ff7043 100%);
    border-color: rgba(255, 87, 34, 0.5);
}

/* Página de detalhes do produto */
.product-detail {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 20px;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.product-detail-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.product-detail-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

.affiliate-links-section {
    margin-bottom: 25px;
}

.affiliate-links-section h3 {
    margin-bottom: 10px;
    color: #333;
}

.affiliate-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.affiliate-button {
    display: block;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.affiliate-button.amazon {
    background-color: #ff9900;
    color: white;
}

.affiliate-button.amazon:hover {
    background-color: #e68900;
}

.affiliate-button.mercadolivre {
    background-color: #fff159;
    color: #333;
}

.affiliate-button.mercadolivre:hover {
    background-color: #ffeb3b;
}

.affiliate-button.shopee {
    background-color: #ee4d2d;
    color: white;
}

.affiliate-button.shopee:hover {
    background-color: #d73502;
}

.affiliate-button.aliexpress {
    background-color: #ff5722;
    color: white;
}

.affiliate-button.aliexpress:hover {
    background-color: #e64a19;
}

/* Seção de vídeos */
.videos-section {
    margin-top: 25px;
}

.videos-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.video-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

.video-item h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.4;
}

.youtube-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.youtube-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-error {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.video-error p {
    margin-bottom: 10px;
    color: #6c757d;
}

.video-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.video-link:hover {
    background-color: #cc0000;
}

/* Botão voltar */
.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #5a6268;
}

/* Indicadores de carregamento */
.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #666;
}

.end-of-results {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

/* Mensagem de produtos não encontrados */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Responsividade */
/* Large screens to medium screens */
@media (max-width: 1200px) {
    .nav-link {
        font-size: 0.95rem;
        padding: 0.7rem 1rem;
        min-width: 100px;
    }
}

/* Intermediate screens - half window mode */
@media (max-width: 1100px) {
    .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
        min-width: 90px;
    }
    
    .nav-link span {
        white-space: nowrap;
    }
}

/* Medium screens */
@media (max-width: 992px) {
    .nav-menu {
        gap: 0.8rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
}

/* Small screens */
@media (max-width: 768px) {
    .header-content {
        padding: 10px 15px;
        position: relative;
    }
    
    .header-right {
        position: static;
    }
    
    
    .logo {
        font-size: 1.4rem;
    }
    
    .logo img {
        width: 36px;
        height: 36px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .menu-toggle:hover {
        transform: scale(1.05);
        background: rgba(255,255,255,0.3);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #1a5e20 0%, #2e7d32 100%);
        padding-top: 80px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: -5px 0 25px rgba(0,0,0,0.2);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 0 20px;
    }
    
    .nav-menu li {
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }
    
    /* Animation for menu items when menu is active */
    .main-nav.active .nav-menu li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Staggered animation for menu items */
    .main-nav.active .nav-menu li:nth-child(1) {
        transition-delay: 0.1s;
    }
    
    .main-nav.active .nav-menu li:nth-child(2) {
        transition-delay: 0.2s;
    }
    
    .main-nav.active .nav-menu li:nth-child(3) {
        transition-delay: 0.3s;
    }
    
    .main-nav.active .nav-menu li:nth-child(4) {
        transition-delay: 0.4s;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px;
        border-radius: 12px;
        justify-content: flex-start;
        background: rgba(255,255,255,0.1);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        height: auto;
        min-height: 50px;
        font-size: 1.1rem;
        gap: 15px;
    }
    
    .nav-link i {
        font-size: 1.3rem;
        width: 24px;
        text-align: center;
    }
    
    .nav-link:hover {
        background: rgba(255,255,255,0.2);
        transform: translateY(-2px);
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Overlay for mobile menu */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .search-container {
        flex-direction: column;
    }

    .search-input,
    .search-button {
        width: 100%;
    }

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

    .product-card {
        height: auto;
        min-height: 420px;
    }

    .product-image {
        height: 180px;
        margin-top: 10px; /* Mantém a mesma margem superior em dispositivos móveis */
    }

    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .affiliate-links-grid {
        grid-template-columns: 1fr;
    }

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

    .product-info {
        padding: 15px;
    }
}

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

    .search-section {
        padding: 15px 0;
    }
}

/* Mensagens de feedback */
.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4caf50;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #43a047;
}

.btn.btn-danger {
    background-color: #dc3545;
}

.btn.btn-danger:hover {
    background-color: #c82333;
}

.btn.btn-success {
    background-color: #28a745;
}

.btn.btn-success:hover {
    background-color: #218838;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #4caf50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #43a047;
}



.affiliate-link-card.temu {
    background: linear-gradient(135deg, #7e57c2 0%, #673AB7 100%);
    color: white;
    border-color: rgba(103, 58, 183, 0.3);
}

.affiliate-link-card.temu:hover {
    background: linear-gradient(135deg, #9575cd 0%, #7e57c2 100%);
    border-color: rgba(103, 58, 183, 0.5);
}

.affiliate-link-card.magalu {
    background: linear-gradient(135deg, #29b6f6 0%, #00a8f3 100%);
    color: white;
    border-color: rgba(0, 168, 243, 0.3);
}

.affiliate-link-card.magalu:hover {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    border-color: rgba(0, 168, 243, 0.5);
}



.affiliate-button.temu {
    background-color: #673AB7;
    color: white;
}

.affiliate-button.temu:hover {
    background-color: #5e35b1;
}

.affiliate-button.magalu {
    background-color: #00a8f3;
    color: white;
}

.affiliate-button.magalu:hover {
    background-color: #008ed6;
}

/* Estilos do Rodapé */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 5px 0; /* Reduzido para 5px */
    margin-top: 60px;
    font-size: 12px;
}

/* Estilo específico para a página inicial (index.php) */
body.home-page .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

/* Adicionar padding ao body na página inicial para compensar o footer fixo */
body.home-page {
    padding-bottom: 40px; /* Valor reduzido para corresponder ao footer menor */
}

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

.footer-content {
    text-align: center;
    line-height: 1.2;
}

.footer-content a {
    color: #3498db;
    text-decoration: none;
}

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

.footer-content p {
    margin-bottom: 2px;
}

/* Estilos para a página de Aviso Legal */
.disclaimer-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.disclaimer-header {
    text-align: center;
    margin-bottom: 30px;
}

.disclaimer-header h1 {
    font-size: 2.5rem;
    color: #2e7d32;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.disclaimer-divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, #1a5e20, #4caf50);
    margin: 0 auto;
    border-radius: 2px;
}

.disclaimer-content {
    animation: fadeIn 0.8s ease-out;
}

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

.disclaimer-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.disclaimer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #1a5e20, #4caf50);
}

.disclaimer-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.disclaimer-legal-icon {
    font-size: 4rem;
    background: #f5f5f5;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 4px solid rgba(46, 125, 50, 0.2);
    text-align: center;
    line-height: 1;
}

.disclaimer-text {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.disclaimer-text h2 {
    color: #2e7d32;
    margin: 25px 0 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.disclaimer-text p {
    margin-bottom: 20px;
}

.disclaimer-text ul, .disclaimer-text ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.disclaimer-text li {
    margin-bottom: 10px;
}

.disclaimer-text a {
    color: #2e7d32;
    text-decoration: none;
    border-bottom: 1px dotted #2e7d32;
    transition: all 0.3s ease;
}

.disclaimer-text a:hover {
    color: #1a5e20;
    border-bottom: 1px solid #1a5e20;
}

/* Responsividade para a página de Aviso Legal */
@media (max-width: 768px) {
    .disclaimer-container {
        margin: 20px auto;
    }

    .disclaimer-header h1 {
        font-size: 2rem;
    }

    .disclaimer-card {
        padding: 30px 20px;
    }

    .disclaimer-legal-icon {
        font-size: 3rem;
        width: 80px;
        height: 80px;
    }

    .disclaimer-text {
        font-size: 1rem;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .site-footer {
        padding: 5px 0; /* Reduzido para 5px */
    }
}
