:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --accent: #3498db;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --text: #333333;
    --text-light: #777777;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--primary);
    color: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #4a6b8a 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Comparison Tool */
.comparison-tool {
    padding: 60px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    display: inline-block;
}

.section-title h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary);
    margin: 10px auto;
}

.comparison-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.phone-selector {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.phone-selector h3 {
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.phone-list {
    max-height: 400px;
    overflow-y: auto;
}

.phone-item {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.phone-item:hover {
    background-color: #e0e0e0;
}

.phone-item.selected {
    background-color: var(--accent);
    color: white;
}

.compare-btn {
    display: block;
    width: 200px;
    margin: 30px auto;
    padding: 15px;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.compare-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.comparison-result {
    display: none;
    margin-top: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.result-header {
    display: flex;
    background: var(--primary);
    color: white;
}

.result-header > div {
    flex: 1;
    padding: 20px;
    text-align: center;
}

.result-header h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.result-header img {
    max-width: 120px;
    height: auto;
    margin: 0 auto;
}

.result-details {
    display: flex;
}

.result-details > div {
    flex: 1;
    padding: 20px;
    border-right: 1px solid #eee;
}

.result-details > div:last-child {
    border-right: none;
}

.spec-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.spec-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary);
}

.spec-value {
    color: var(--text);
}

.amazon-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #FF9900;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 15px;
}

.amazon-btn:hover {
    background: #e68a00;
    transform: translateY(-2px);
}

/* Offers Section */
.offers {
    padding: 60px 0;
    background-color: var(--light);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.offer-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.offer-image {
    height: 200px;
    overflow: hidden;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.offer-card:hover .offer-image img {
    transform: scale(1.05);
}

.offer-content {
    padding: 20px;
}

.offer-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.offer-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
}

.offer-original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
}

.offer-discount {
    display: inline-block;
    padding: 3px 8px;
    background: var(--success);
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.offer-specs {
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.offer-specs span {
    display: block;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .comparison-container {
        flex-direction: column;
    }
    
    .result-header, .result-details {
        flex-direction: column;
    }
    
    .result-details > div {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .result-details > div:last-child {
        border-bottom: none;
    }
}

/* Adicione ao seu style.css */
.result-details {
    padding: 15px; /* Aumente o padding se necessário */
}

.spec-item {
    margin-bottom: 12px; /* Ajuste o espaçamento entre itens */
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.amazon-btn {
    margin-top: 20px; /* Mais espaço acima do botão */
}



/* Ajustes para mobile - Comparação */
@media (max-width: 768px) {
    .comparison-result {
        overflow-x: auto;
    }
    
    .result-header {
        flex-direction: row;
        min-width: 600px;
    }
    
    .result-header > div {
        flex: 1;
        min-width: 280px;
    }
    
    .result-details {
        flex-direction: row;
        min-width: 600px;
    }
    
    .result-details > div {
        flex: 1;
        min-width: 280px;
        border-right: 1px solid #eee;
        border-bottom: none;
    }
    
    .result-details > div:last-child {
        border-right: none;
    }
    
    /* Melhorias de visualização mobile */
    .result-header h3 {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .result-header img {
        max-width: 100px;
    }
    
    .spec-item {
        padding: 10px 0;
    }
    
    .spec-name {
        font-size: 0.9rem;
    }
    
    .spec-value {
        font-size: 0.95rem;
    }
}

/* Melhorias adicionais para mobile */
@media (max-width: 480px) {
    .comparison-container {
        gap: 15px;
    }
    
    .phone-selector {
        min-width: 100%;
    }
    
    .compare-btn {
        width: 90%;
        margin: 20px auto;
    }
    
    .result-header > div {
        padding: 15px 10px;
    }
    
    .result-details > div {
        padding: 15px 10px;
    }
}

/* Scroll horizontal suave */
.comparison-result {
    -webkit-overflow-scrolling: touch;
}


/* Estilos para ofertas - apenas desconto */
.offer-discount-container {
    margin: 15px 0;
    text-align: center;
}

.offer-discount {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--secondary) 0%, #ff6b6b 100%);
    color: white;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

/* Remova estas classes antigas de preço */
.offer-price, .offer-original-price {
    display: none;
}

/* Ajuste o espaçamento */
.offer-content h3 {
    margin-bottom: 10px;
}

.offer-specs {
    margin: 15px 0;
}

/* Adicione ao seu arquivo CSS */
.amazon-disclosure {
    font-size: 0.85rem;
    color: #ccc;
    font-style: italic;
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    line-height: 1.4;
}