:root {
    --primary-color: #c5a059; /* Gold/Beige */
    --secondary-color: #2d2746; /* Deep Purple */
    --text-color: #333;
    --light-text: #666;
    --white: #fff;
    --bg-light: #f9f9f9;
    --bg-dark: #1a1a1a;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

/* Global Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text-color); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Layout Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: var(--font-heading); font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 15px; }
.divider { width: 60px; height: 3px; background-color: var(--primary-color); margin: 0 auto; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: #ccc; }

/* Buttons */
.btn-primary { display: inline-block; padding: 12px 30px; background-color: var(--secondary-color); color: var(--white); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-radius: 2px; border: 2px solid var(--secondary-color); }
.btn-primary:hover { background-color: var(--primary-color); border-color: var(--primary-color); color: var(--secondary-color); }

.btn-outline { display: inline-block; padding: 12px 30px; border: 2px solid var(--secondary-color); color: var(--secondary-color); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-radius: 2px; }
.btn-outline:hover { background-color: var(--secondary-color); color: var(--white); }

.btn-white { display: inline-block; padding: 12px 30px; background-color: var(--white); color: var(--secondary-color); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-radius: 2px; }
.btn-white:hover { background-color: var(--primary-color); color: var(--secondary-color); }

.btn-nav { padding: 8px 20px; background-color: var(--primary-color); color: var(--secondary-color) !important; border-radius: 2px; }
.btn-nav:hover { background-color: var(--white); }

/* Header */
#header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.top-bar { background-color: var(--secondary-color); color: var(--white); padding: 8px 0; text-align: center; font-size: 0.85rem; }
.main-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px; }
.logo-img { height: 40px; }
.nav-menu ul { display: flex; gap: 30px; }
.nav-menu a { font-weight: 600; color: var(--secondary-color); font-size: 0.95rem; }
.nav-menu a:hover { color: var(--primary-color); }
.header-icons { display: flex; gap: 20px; align-items: center; }
.header-icons i { font-size: 1.2rem; color: var(--secondary-color); cursor: pointer; }
.cart-icon { position: relative; }
.cart-count { position: absolute; top: -8px; right: -8px; background: var(--primary-color); color: var(--secondary-color); font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--secondary-color); }

/* Hero Slider */
.hero-slider { height: 600px; position: relative; overflow: hidden; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.slide.active { opacity: 1; }
.hero-overlay { background: rgba(0,0,0,0.3); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-content { color: var(--white); max-width: 800px; padding: 20px; }
.hero-content h1 { font-family: var(--font-heading); font-size: 4rem; margin-bottom: 20px; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); border: none; color: var(--white); padding: 15px; cursor: pointer; font-size: 1.5rem; transition: var(--transition); z-index: 10; }
.slider-btn:hover { background: rgba(255,255,255,0.5); }
.prev { left: 20px; }
.next { right: 20px; }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; }
.dot.active { background: var(--white); }

/* Features Section */
.features-section { padding: 40px 0; background: var(--bg-light); margin-top: -5px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.feature-card { padding: 30px 20px; background: var(--white); border-radius: 5px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); }
.feature-card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.feature-card h3 { color: var(--secondary-color); margin-bottom: 10px; font-size: 1.2rem; font-family: var(--font-heading); }
.feature-card p { font-size: 0.95rem; color: var(--light-text); }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card { border: 1px solid #eee; border-radius: 5px; overflow: hidden; transition: var(--transition); background: var(--white); position: relative; }
.product-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.1); transform: translateY(-5px); }
.product-image { position: relative; overflow: hidden; height: 320px; background: #f4f4f4; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--secondary-color); color: var(--white); padding: 5px 10px; font-size: 0.75rem; font-weight: 600; z-index: 2; text-transform: uppercase; }
.badge.sale { background: #e74c3c; }
.product-actions { position: absolute; bottom: -60px; left: 0; width: 100%; display: flex; justify-content: center; gap: 15px; padding: 15px; background: rgba(255,255,255,0.95); transition: bottom 0.3s ease; }
.product-card:hover .product-actions { bottom: 0; }
.product-actions button { width: 45px; height: 45px; border-radius: 50%; border: none; background: var(--secondary-color); color: var(--white); cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.product-actions button:hover { background: var(--primary-color); color: var(--secondary-color); }
.product-info { padding: 20px; text-align: center; }
.category { font-size: 0.75rem; text-transform: uppercase; color: #999; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.product-info h3 { font-size: 1.1rem; color: var(--secondary-color); margin-bottom: 10px; font-weight: 600; font-family: var(--font-heading); }
.rating { color: #f1c40f; font-size: 0.9rem; margin-bottom: 10px; }
.rating span { color: #999; margin-left: 5px; font-size: 0.8rem; }
.price-box { display: flex; justify-content: center; gap: 10px; align-items: baseline; }
.price { font-size: 1.3rem; font-weight: 700; color: var(--secondary-color); }
.old-price { text-decoration: line-through; color: #ccc; font-size: 0.9rem; }
.installments { font-size: 0.85rem; color: #999; margin-top: 5px; }
.cta-produtos { text-align: center; margin-top: 50px; }

/* Promo Banner */
.promo-banner { background-image: url('https://images.unsplash.com/photo-1616394584738-fc6e612e71b9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; padding: 100px 0; position: relative; margin: 40px 0; }
.promo-banner::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(45, 39, 70, 0.6); }
.promo-content { position: relative; z-index: 1; text-align: center; color: var(--white); max-width: 800px; margin: 0 auto; padding: 0 20px; }
.promo-text h2 { font-family: var(--font-heading); font-size: 3.5rem; margin-bottom: 20px; }
.promo-text p { font-size: 1.2rem; margin-bottom: 30px; }

/* About Section */
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image img { width: 100%; border-radius: 5px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.about-text h2 { font-family: var(--font-heading); font-size: 2.8rem; color: var(--secondary-color); margin-bottom: 15px; }
.divider-left { width: 60px; height: 3px; background-color: var(--primary-color); margin-bottom: 30px; }
.about-features { margin: 30px 0; }
.about-features li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; color: var(--secondary-color); font-weight: 600; }
.about-features i { color: var(--primary-color); }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.review-card { background: var(--white); padding: 30px; border-radius: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.review-text { font-style: italic; color: var(--light-text); margin: 20px 0; font-size: 0.95rem; }
.reviewer { display: flex; align-items: center; gap: 15px; }
.reviewer img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-color); }
.reviewer h4 { font-size: 1rem; color: var(--secondary-color); margin-bottom: 2px; font-weight: 700; }
.reviewer span { font-size: 0.8rem; color: #999; }

/* Footer */
.newsletter-box { text-align: center; max-width: 600px; margin: 0 auto 60px; padding: 40px; background: rgba(255,255,255,0.05); border-radius: 5px; border: 1px solid rgba(255,255,255,0.1); }
.newsletter-box h3 { color: var(--white); margin-bottom: 10px; font-family: var(--font-heading); font-size: 1.8rem; }
.newsletter-box p { margin-bottom: 20px; }
.newsletter-form { display: flex; gap: 10px; margin-top: 20px; }
.newsletter-form input { flex: 1; padding: 15px; border: none; border-radius: 2px; font-family: var(--font-body); }
.newsletter-form button { padding: 15px 30px; background: var(--primary-color); border: none; color: var(--secondary-color); font-weight: 700; cursor: pointer; border-radius: 2px; text-transform: uppercase; }
.newsletter-form button:hover { background: var(--white); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-logo-text { color: var(--white); font-family: var(--font-heading); font-size: 1.8rem; letter-spacing: 2px; margin-bottom: 20px; }
.footer-col h4 { color: var(--white); margin-bottom: 25px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #aaa; transition: var(--transition); }
.footer-col a:hover { color: var(--primary-color); padding-left: 5px; }
.social-links { display: flex; gap: 15px; margin-top: 25px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--white); transition: var(--transition); }
.social-links a:hover { background: var(--primary-color); color: var(--secondary-color); transform: translateY(-3px); }
.contact-list li { display: flex; gap: 15px; margin-bottom: 15px; color: #aaa; align-items: flex-start; }
.contact-list i { color: var(--primary-color); margin-top: 5px; }
.payment-icons { display: flex; gap: 15px; font-size: 2.5rem; color: #555; margin-top: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; font-size: 0.9rem; color: #666; }

/* Responsive Base */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .product-main-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-header { flex-direction: column; gap: 15px; }
    .nav-menu { display: none; } /* Mobile Menu Logic Needed */
    .header-icons { margin-top: 10px; }
    .hero-content h1 { font-size: 2.5rem; }
    .about-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .newsletter-form { flex-direction: column; }
    .hamburger { display: block; position: absolute; right: 20px; top: 25px; }
}

/* --- Página de Produto --- */

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 20px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.breadcrumbs a {
    color: var(--secondary-color);
    font-weight: 600;
}

.breadcrumbs i {
    font-size: 0.7rem;
    margin: 0 10px;
    color: #ccc;
}

/* Grid Principal */
.product-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

/* Galeria */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 5px;
    cursor: crosshair;
}

.main-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

.thumbnails-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail {
    width: 100px;
    height: 100px;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    flex-shrink: 0;
}

.thumbnail.active, .thumbnail:hover {
    opacity: 1;
    border-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Informações do Produto */
.product-details-info {
    padding: 10px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 10px 0 15px;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.review-count {
    color: var(--light-text);
    font-size: 0.9rem;
}

.product-price-container {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 5px;
}

.product-price-container .current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.product-price-container .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
}

.discount-badge {
    background-color: #E74C3C;
    color: var(--white);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.installments-info {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.product-description-short {
    font-size: 1.05rem;
    color: var(--light-text);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Variações e Opções */
.product-options {
    margin-bottom: 30px;
}

.product-options label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.option-buttons {
    display: flex;
    gap: 15px;
}

.option-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition);
    border-radius: 2px;
}

.option-btn:hover {
    border-color: var(--secondary-color);
}

.option-btn.selected {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Ações de Compra */
.purchase-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 2px;
    height: 50px;
}

.quantity-selector button {
    width: 40px;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: var(--transition);
}

.quantity-selector button:hover {
    background: #eee;
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    -moz-appearance: textfield;
}

.btn-add-cart, .btn-buy-now {
    padding: 0 30px;
    height: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 2px;
    transition: var(--transition);
    flex: 1;
    min-width: 200px;
}

.btn-add-cart {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-add-cart:hover {
    background-color: #f0f0f0;
}

.btn-buy-now {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: var(--white);
}

.btn-buy-now:hover {
    background-color: #4a4270;
    border-color: #4a4270;
}

/* Calculadora de Frete */
.shipping-calculator {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.shipping-calculator label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.shipping-input-group {
    display: flex;
    gap: 10px;
}

.shipping-input-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.shipping-input-group button {
    padding: 10px 20px;
    background-color: var(--text-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 2px;
}

.shipping-result {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.shipping-result.hidden {
    display: none;
}

/* Badges de Confiança */
.trust-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light-text);
    font-size: 0.9rem;
}

.trust-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Abas de Conteúdo */
.product-tabs-section {
    margin-bottom: 80px;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
    gap: 40px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-text);
    cursor: pointer;
    position: relative;
    font-family: var(--font-heading);
}

.tab-btn.active {
    color: var(--secondary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-content h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.tab-content p {
    margin-bottom: 15px;
    color: var(--light-text);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th, .specs-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.specs-table th {
    width: 30%;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Estilos de Reviews na Tab */
.reviews-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
}

.average-rating {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding: 30px 0;
}

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

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.review-author {
    font-size: 0.85rem;
    color: #999;
    display: block;
    margin-top: 10px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.toast.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Responsividade Página Produto */
@media (max-width: 768px) {
    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tabs-header {
        gap: 20px;
        overflow-x: auto;
    }
    
    .tab-btn {
        white-space: nowrap;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}