/**
 * Vida Saudável BR - Stylesheet
 * Design moderno e responsivo com CSS3 (Flexbox e Grid)
 */

/* ============================================
   VARIABLES E RESET
   ============================================ */
:root {
    --primary-color: #27AE60;
    --secondary-color: #16A085;
    --dark-color: #1B4332;
    --light-color: #D4F1D4;
    --gray-color: #555555;
    --white-color: #FFFFFF;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    
    --border-radius: 12px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    --transition: all 0.3s ease;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: #F8F9FA;
    color: var(--dark-color);
    line-height: 1.6;
}

/* ============================================
   CONTAINER E LAYOUT GERAL
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white-color);
    padding: 20px 0;
    box-shadow: var(--shadow);
    text-align: center;
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.logo-image:hover {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transform: scale(1.02);
}

.tagline {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 300;
    margin: 0;
}

@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .tagline {
        font-size: 0.85rem;
    }
}

/* ============================================
   FEATURED HERO SECTION (Produto Destaque)
   ============================================ */
.featured-hero {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white-color) 100%);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
    overflow: hidden;
}

.featured-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .featured-hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-hero {
        padding: 20px;
    }
}

.featured-hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
}

.featured-hero-info h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.featured-hero-description {
    font-size: 1.05rem;
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

.featured-hero-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.featured-hero-benefits {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.featured-hero-benefits h4 {
    color: var(--dark-color);
    margin-bottom: 12px;
    font-size: 1rem;
}

.featured-hero-benefits ul {
    list-style: none;
    padding: 0;
}

.featured-hero-benefits li {
    padding: 6px 0;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.featured-hero-benefits li:before {
    content: '✓';
    color: var(--success-color);
    font-weight: 700;
    margin-right: 10px;
    font-size: 1.1rem;
}

.featured-hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-featured {
    flex: 1;
    min-width: 200px;
    padding: 15px 25px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.btn-featured-primary {
    background: linear-gradient(135deg, #FF6B6B 0%, #E55555 100%);
    color: white;
}

.btn-featured-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #E55555 0%, #CC3333 100%);
}

.btn-featured-secondary {
    background: white;
    color: #FF6B6B;
    border: 2px solid #FF6B6B;
}

.btn-featured-secondary:hover {
    background: var(--light-color);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .featured-hero-cta {
        flex-direction: column;
    }
    
    .btn-featured {
        min-width: auto;
    }
    
    .featured-hero-info h2 {
        font-size: 1.8rem;
    }
    
    .featured-hero-price {
        font-size: 1.6rem;
    }
}

/* ============================================
   DISCLAIMER BANNER
   ============================================ */
.disclaimer-banner {
    background-color: #FFF3CD;
    border: 2px solid #F39C12;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 30px;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
}

.disclaimer-banner strong {
    color: #F39C12;
    font-weight: 700;
}

/* ============================================
   HERO SECTION
   ============================================ */
.breadcrumb {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* ============================================
   FILTERS
   ============================================ */
.filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--light-color);
    background-color: var(--white-color);
    color: var(--dark-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

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

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 220px;
    background-color: var(--light-color);
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Badge de Mais Vendido */
.badge-bestseller {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--warning-color);
    color: var(--white-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow);
    z-index: 1;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-description {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #E55555;
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #D5DBDB;
}

.btn-success {
    background-color: var(--success-color);
    color: var(--white-color);
}

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

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-detail {
        padding: 20px;
    }
}

.product-detail-image {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--light-color);
}

.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-info h1 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.product-detail-info .product-price {
    font-size: 2rem;
    margin: 20px 0;
}

.product-detail-description {
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.product-specs {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.product-specs h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.spec-label {
    font-weight: 600;
    color: var(--dark-color);
}

.spec-value {
    color: var(--gray-color);
}

.benefits-list {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.benefits-list h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.benefits-list ul {
    list-style: none;
}

.benefits-list li {
    padding: 8px 0;
    color: var(--gray-color);
    display: flex;
    align-items: center;
}

.benefits-list li:before {
    content: '✓';
    color: var(--success-color);
    font-weight: 700;
    margin-right: 10px;
    font-size: 1.2rem;
}

.product-actions-detail {
    display: flex;
    gap: 15px;
}

.product-actions-detail .btn {
    padding: 15px 30px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .product-actions-detail {
        flex-direction: column;
    }
}

/* ============================================
   PRODUCT VARIATIONS
   ============================================ */
.product-variations {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.product-variations h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1rem;
}

.variations-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.variation-option {
    cursor: pointer;
    transition: var(--transition);
}

.variation-option input[type="radio"] {
    display: none;
}

.variation-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 12px;
    border: 2px solid #CCC;
    border-radius: 8px;
    background-color: var(--white-color);
    text-align: center;
    transition: var(--transition);
    min-height: 80px;
    gap: 5px;
}

.variation-label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.variation-badge {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.variation-option.selected .variation-button {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white-color);
}

.variation-option.selected .variation-label {
    color: var(--white-color);
}

.variation-option.selected .variation-badge {
    color: var(--white-color);
}

.variation-option:hover .variation-button {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #34495E 100%);
    color: var(--white-color);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--white-color);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

.disclaimer {
    background-color: rgba(39, 174, 96, 0.2);
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.85rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.affiliate-notice {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ============================================
   LOADING E EMPTY STATE
   ============================================ */
.loading {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1rem;
    color: var(--gray-color);
}

.loading::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.empty-state p {
    font-size: 1.2rem;
    color: var(--gray-color);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .logo-image {
        height: 60px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.products-section {
    position: relative;
    min-height: 300px;
}

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

.mt-5 {
    margin-top: 50px;
}

.mb-5 {
    margin-bottom: 50px;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E55555;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .filters {
        display: none;
    }
}
