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

body {
    font-family: 'Playfair Display', 'Georgia', serif;
    background: #fafafa;
    color: #2c2c2c;
    line-height: 1.6;
}

/* Header com gradiente luxuoso */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2c1810 15%, #d4af37 30%, #b8860b 45%, #ffd700 60%, #d4af37 75%, #1a1a2e 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    background-size: 400% 400%;
    animation: luxuryGradient 8s ease-in-out infinite;
}

@keyframes luxuryGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.5) 0%, transparent 60%),
        radial-gradient(circle at 40% 80%, rgba(255, 223, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(184, 134, 11, 0.4) 0%, transparent 50%);
    animation: luxuryShimmer 6s ease-in-out infinite;
}

@keyframes luxuryShimmer {
    0%, 100% { opacity: 0.6; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.9; transform: scale(1.1) rotate(2deg); }
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="diamonds" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><polygon points="20,5 25,15 20,25 15,15" fill="rgba(255,215,0,0.15)" transform="rotate(45 20 20)"/><circle cx="10" cy="30" r="1.2" fill="rgba(255,215,0,0.8)"><animate attributeName="opacity" values="0.4;1;0.4" dur="2s" repeatCount="indefinite"/></circle><circle cx="30" cy="10" r="1" fill="rgba(212,175,55,0.7)"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="3s" repeatCount="indefinite"/></circle><circle cx="35" cy="35" r="0.8" fill="rgba(255,223,0,0.6)"><animate attributeName="opacity" values="0.2;0.8;0.2" dur="2.5s" repeatCount="indefinite"/></circle><polygon points="15,20 18,23 15,26 12,23" fill="rgba(184,134,11,0.5)" transform="rotate(30 15 23)"><animate attributeName="opacity" values="0.3;0.7;0.3" dur="4s" repeatCount="indefinite"/></polygon></pattern></defs><rect width="200" height="200" fill="url(%23diamonds)"/></svg>') repeat;
    animation: sparkleMove 15s linear infinite;
}

@keyframes sparkleMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-40px) translateY(-40px); }
}

.header-content {
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 3.5rem;
    margin: 0;
    font-weight: 300;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header .subtitle {
    font-size: 1.3rem;
    margin: 1rem 0 0 0;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Banners Container */
.banners-container {
    display: flex;
    min-height: 100vh;
}

.banner-sidebar {
    width: 300px;
    min-width: 300px;
    background: #f8f9fa;
    padding: 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.banner-left {
    border-right: 1px solid #e9ecef;
}

.banner-right {
    border-left: 1px solid #e9ecef;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.banner-top {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.banner-bottom {
    background: #f8f9fa;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

/* Estilos dos banners */
.banner-item {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: white;
}

.banner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px 8px 0 0;
}

.banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.banner-content {
    display: block;
}

.banner-info {
    padding: 1rem;
}

.banner-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
    font-size: 1rem;
}

.banner-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Tamanhos de banner */
.banner-size-small { max-width: 250px; }
.banner-size-medium { max-width: 300px; }
.banner-size-large { max-width: 350px; }

/* Container principal */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.section-intro h2 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-weight: 300;
}

.section-intro p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Sistema de Pesquisa */
.search-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    border: 1px solid #f0f0f0;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: #d4af37;
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #666;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.clear-search:hover {
    background: #d4af37;
}

.search-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.7rem 1.2rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.filter-btn.active {
    background: #d4af37;
    border-color: #d4af37;
    color: white;
}

.search-results {
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    border-radius: 10px;
    font-weight: 500;
}

/* Grid de Produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.product-card.hidden {
    display: none;
}

/* Imagem do produto */
.product-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-image:hover {
    transform: scale(1.02);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,215,0,0.05), transparent 70%);
}

/* Informações do produto */
.product-info {
    padding: 2rem;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.product-category {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-code {
    font-size: 0.8rem;
    color: #d4af37;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 400;
    color: #1a1a2e;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.product-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 600;
    color: #d4af37;
    margin: 1.5rem 0;
    text-align: center;
}

/* Seção de contato */
.contact-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1.5rem;
}

.contact-title {
    text-align: center;
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-weight: 500;
}

.contact-buttons {
    display: flex;
    gap: 0.8rem;
}

.contact-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: scale(1.02);
}

.email-btn {
    background: #1a1a2e;
    color: white;
}

.email-btn:hover {
    background: #0f3460;
    transform: scale(1.02);
}

/* Zoom overlay - ATUALIZADO */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.zoom-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zoom-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 300px;
}

.zoom-image {
    width: 100%;
    height: 100%;
    max-width: 80vw;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
}

.zoom-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.zoom-title {
    font-size: 1.5rem;
    color: #1a1a2e;
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 500;
    padding: 0 1rem;
}

.close-zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #1a1a2e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
}

.close-zoom:hover {
    background: #d4af37;
    transform: scale(1.1);
}

/* Mensagens de estado */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Loading */
.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d4af37;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Footer */
.footer {
    background: #1a1a2e;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.footer p {
    opacity: 0.8;
    margin: 0.5rem 0;
}

.footer a {
    color: #d4af37;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.8;
}

/* Responsividade */
@media (max-width: 1200px) {
    .banner-sidebar {
        width: 250px;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .header {
        padding: 3rem 1rem;
    }
    
    .container {
        padding: 2rem 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-image {
        height: 300px;
        font-size: 3rem;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .section-intro h2 {
        font-size: 2rem;
    }

    .search-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }

    .search-section {
        padding: 1.5rem;
    }
    
    .product-name {
        font-size: 1.2rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .zoom-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .zoom-image {
        max-width: 95vw;
        max-height: 60vh;
        font-size: 6rem;
    }

    .zoom-title {
        font-size: 1.2rem;
        margin-top: 1rem;
    }

    /* Banners Mobile */
    .banners-container {
        flex-direction: column;
    }
    
    .banner-sidebar {
        width: 100%;
        height: auto;
        position: static;
        order: 2;
    }
    
    .banner-left {
        border-right: none;
        border-top: 1px solid #e9ecef;
    }
    
    .banner-right {
        border-left: none;
        border-top: 1px solid #e9ecef;
    }
    
    .main-content {
        order: 1;
    }

    .banner-top,
    .banner-bottom {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .product-info {
        padding: 1.5rem;
    }
    
    .product-image {
        height: 250px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header .subtitle {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }

    .banner-sidebar {
        padding: 0.8rem;
    }

    .banner-item {
        margin-bottom: 1rem;
    }

    .zoom-content {
        padding: 1rem;
        margin: 0.5rem;
    }

    .zoom-image {
        font-size: 4rem;
        max-height: 50vh;
    }

    .zoom-title {
        font-size: 1.1rem;
    }
}

/* Animações suaves para transições */
.product-card,
.banner-item,
.contact-btn,
.filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Foco visível para acessibilidade */
button:focus-visible,
a:focus-visible,
.search-input:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}