/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais - serão sobrescritas pelo config.js */
    --primary-color: #1a1a1a;
    --secondary-color: #f8f9fa;
    --accent-color: #6eb400;
    --accent-hover: #5ba300;
    --text-primary: #2c2c2c;
    --text-secondary: #6c757d;
    --text-light: #ffffff;
    --border-color: #e9ecef;
    --background-color: #ffffff;
    --card-background: rgba(255, 255, 255, 0.95);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    --gradient-accent: linear-gradient(135deg, #6eb400 0%, #6eb400 100%);
    --gradient-hero: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);

    /* Tipografia */
    --font-primary: 'Inter', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Espaçamentos */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header Elegante */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-normal);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-home-btn {
    background: var(--accent-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    font-size: var(--font-size-base);
    font-weight: 600;
}

.nav-home-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
    background: var(--accent-hover);
}

.nav-filter-btn {
    background: var(--accent-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    font-size: var(--font-size-base);
}

.nav-filter-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.nav-filter-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 300px;
    padding: var(--spacing-sm) var(--spacing-lg);
    padding-right: 50px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: var(--font-size-base);
    transition: var(--transition-fast);
    background: var(--secondary-color);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--text-light);
}

.search-btn {
    position: absolute;
    right: 5px;
    background: var(--accent-color);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-btn:hover {
    transform: scale(1.05);
}

.view-controls {
    display: flex;
    gap: var(--spacing-xs);
    background: var(--secondary-color);
    padding: var(--spacing-xs);
    border-radius: 8px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: var(--spacing-sm);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.view-btn.active,
.view-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-cart {
    position: relative;
    background: var(--accent-color);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 25px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Esconder botão do carrinho do nav-brand em desktop */
.nav-brand .btn-cart {
    display: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: var(--text-light);
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Ajustes para mobile - contador mais próximo do botão */
@media (max-width: 768px) {
    .cart-count {
        top: -6px;
        right: -6px;
        font-size: 10px;
        padding: 1px 4px;
        min-width: 16px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .cart-count {
        top: -4px;
        right: -4px;
        font-size: 9px;
        padding: 1px 3px;
        min-width: 14px;
        border-radius: 6px;
    }
}

/* Hero Section Automotivo */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
    background: #1a1a1a;
    overflow: hidden;
    margin-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background-image: url('assets/hero-top-car.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.9;
}

/* Fallback para dispositivos que não suportam vídeo */
@supports not (object-fit: cover) {
    .hero-video {
        width: 100%;
        height: auto;
        min-height: 100%;
    }
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(110, 180, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(110, 180, 0, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(110, 180, 0, 0.02) 50%, transparent 70%);
    animation: heroPatternMove 20s ease-in-out infinite;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 3;
}

@keyframes heroPatternMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-5px); }
    50% { transform: translateX(10px) translateY(5px); }
    75% { transform: translateX(-5px) translateY(10px); }
}

.hero-visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 4;
    text-align: center;
}

.hero-text {
    /* background: rgba(255, 255, 255, 0.05); */
    /* backdrop-filter: blur(20px); */
    padding: var(--spacing-3xl);
    /* border-radius: 32px; */
    /* box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1); */
    display: inline-block;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: var(--spacing-2xl);
}

.hero-logo img {
    width: 355px;
    height: 170px;
    border-radius: 5%;
    /* border: 4px solid rgba(255, 255, 255, 0.8); */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    display: block;
    object-fit: cover;
    background-color: transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, #6eb400 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTitleGlow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #6eb400;
    margin-bottom: var(--spacing-lg);
    line-height: 1.4;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.5rem;
    color: #6eb400;
    margin-bottom: var(--spacing-2xl);
    line-height: 1.4;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes heroTitleGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.1); }
}

/* Brands Carousel */
.brands-carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    /* backdrop-filter: blur(10px); */
    padding: var(--spacing-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: var(--spacing-lg);
    width: max-content;
}

.brand-item {
    flex: 0 0 auto;
    width: 140px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 35px;
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}

.brand-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.brand-logo {
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    border-radius: 10px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.brand-item:hover .brand-logo img {
    filter: grayscale(0);
}


.carousel-controls {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn i {
    font-size: 0.9rem;
}


/* Seção de Contato WhatsApp */
.whatsapp-contact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: var(--spacing-4xl) 0;
    border-top: 1px solid #e9ecef;
}

.whatsapp-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.whatsapp-info h3 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.whatsapp-info p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

.contact-features {
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--text-light);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.contact-feature i {
    font-size: var(--font-size-lg);
    color: #6eb400;
}

.contact-feature span {
    font-weight: 600;
    color: var(--text-primary);
}

.whatsapp-action {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: 50px;
    font-size: var(--font-size-lg);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-whatsapp::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: left 0.5s;
}

.btn-whatsapp:hover::before {
    left: 100%;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    color: white;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-showcase {
    position: relative;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: var(--transition-slow);
}

.product-showcase:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(2deg) scale(1.05);
}

.product-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: var(--spacing-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-heavy);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card.featured {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.product-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--gradient-accent);
    color: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-image {
    flex: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    max-height: 300px;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.product-info h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.product-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--accent-color);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(208, 182, 157, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}


/* Seção de Produtos */
.products {
    padding: var(--spacing-2xl) 0;
    background: var(--secondary-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.results-info {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
    transition: var(--transition-normal);
}

.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

/* Visualização em Filas por Categoria */
.products-grid.category-rows-view {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

.category-row {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.category-row-header {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
}

.category-row-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.category-row-count {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    font-weight: 500;
}

.category-products-container {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
}

.category-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    flex: 1;
}

.btn-view-more-category {
    width: 80px;
    height: 140px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border: none;
    color: var(--text-light);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 25px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 2px 8px rgba(110, 180, 0, 0.25);
    align-self: center;
    position: relative;
    overflow: hidden;
}

.btn-view-more-category::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: left 0.5s ease;
}

.btn-view-more-category:hover::before {
    left: 100%;
}

.btn-view-more-category i {
    font-size: var(--font-size-sm);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-view-more-category:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 180, 0, 0.35);
}

.btn-view-more-category:hover i {
    transform: translateX(3px);
}

.btn-view-more-category:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(110, 180, 0, 0.3);
}

.remaining-count {
    font-weight: 700;
    color: inherit;
    opacity: 0.95;
}

.category-row.expanded {
    animation: expandCategory 0.4s ease;
}

@keyframes expandCategory {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

/* Visualização de Categoria (Cards Mais Largos) */
.category-view-header {
    margin-bottom: var(--spacing-3xl);
}

.category-view-title-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

.btn-back-categories {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.btn-back-categories:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    transform: translateX(-3px);
}

.category-view-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.category-view-count {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    font-weight: 500;
}

.category-view-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
}

body.category-view-mode .products-grid {
    display: block;
}

body.category-view-mode .products-grid.category-rows-view {
    display: block;
}

/* Cards de Produto Elegantes */
.product-card {
    background: var(--text-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
}

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

.product-image {
    position: relative;
    height: 280px;
    max-height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-slow);
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
    /* Garantir que imagens muito grandes não quebrem o layout */
    min-width: 0;
    min-height: 0;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.15) saturate(1.2);
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-normal);
    pointer-events: none;
}

.product-badges {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    z-index: 2;
}

.product-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 15px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-new {
    background: var(--gradient-accent);
    color: var(--primary-color);
}

.badge-sale {
    background: #e74c3c;
    color: var(--text-light);
}

.badge-featured {
    background: var(--primary-color);
    color: var(--text-light);
}

.product-actions-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    opacity: 0;
    transition: var(--transition-normal);
    border-radius: 15px 15px 0 0;
}

.product-card:hover .product-actions-overlay {
    opacity: 1;
}

.quick-action-btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    font-size: var(--font-size-lg);
}

.quick-action-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.15);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.product-info {
    padding: var(--spacing-xl);
}

.product-category {
    font-size: var(--font-size-xs);
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
}

.product-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary) !important;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.product-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.product-price-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.current-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--accent-color);
}

.discounted-price {
    color: #e74c3c !important;
}

.discount-indicator {
    background: #e74c3c;
    color: var(--text-light);
    font-size: var(--font-size-xs);
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
    margin-left: var(--spacing-xs);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
}

.original-price {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-right: var(--spacing-xs);
}

.discount-percentage {
    background: var(--gradient-accent);
    color: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 12px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.discount-badge {
    background: #e74c3c;
    color: var(--text-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 10px;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.product-card-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-direction: row;
}

.product-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-direction: row;
}

.btn {
    padding: var(--spacing-md) var(--spacing-2xl);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.btn-add-cart {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.btn-favorite {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-secondary);
    padding: var(--spacing-sm);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-normal);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
}

.btn-favorite:hover,
.btn-favorite.active {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Visualização em Lista */
.product-card.list-view {
    display: flex;
    height: 200px;
}

.product-card.list-view .product-image {
    width: 200px;
    max-width: 200px;
    height: 100%;
    max-height: 200px;
    flex-shrink: 0;
}

.product-card.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card.list-view .product-actions {
    align-self: flex-end;
}

/* Modal de Produto */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.product-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

@media (max-width: 768px) {
    .modal-overlay {
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
    }
}

.modal-content {
    position: relative;
    background: var(--text-light);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    padding: var(--spacing-2xl);
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

/* Indicadores de interação */
.modal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}

.modal-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.main-image {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    background: var(--secondary-color);
    cursor: pointer;
    transition: opacity 0.3s ease;
    position: relative;
}

.main-image:hover:not(.zoomed):not(.video-mode) {
    opacity: 0.95;
}

.main-image:hover:not(.zoomed):not(.video-mode)::before {
    content: '🔍 Clique para ver em tela cheia';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 25px;
    font-size: var(--font-size-sm);
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
    animation: fadeIn 0.3s ease;
}

.main-image.zoomed {
    cursor: default;
}

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

.product-details h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

/* Botão de compartilhamento (substitui o favoritar) - herda estilos do .btn-secondary */

/* Modal de Imagem em Tela Cheia */
.image-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-fullscreen-modal.active {
    display: flex;
    opacity: 1;
}

.fullscreen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.fullscreen-close:hover {
    background: var(--text-light);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.fullscreen-image-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-out;
    transform-origin: center center;
    cursor: grab;
    user-select: none;
}

.fullscreen-image-container:active {
    cursor: grabbing;
}

.fullscreen-image-container img {
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.fullscreen-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-md);
    z-index: 2001;
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.fullscreen-zoom-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fullscreen-zoom-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    transform: scale(1.1);
}

.fullscreen-zoom-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .fullscreen-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }

    .fullscreen-controls {
        bottom: 20px;
        padding: var(--spacing-xs) var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .fullscreen-zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .fullscreen-image-container {
        max-width: 100vw;
        max-height: 100vh;
    }

    .fullscreen-image-container img {
        max-height: 100vh;
    }
}

@media (max-width: 480px) {
    .fullscreen-close {
        width: 35px;
        height: 35px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }

    .fullscreen-controls {
        bottom: 15px;
        gap: var(--spacing-xs);
    }

    .fullscreen-zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

.product-price-container {
    margin-bottom: var(--spacing-lg);
}

.product-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    word-wrap: break-word;
}

/* Estilo para descrição no card (limitada) */
.product-card .product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    max-height: 3.2em;
}

/* Container da descrição no modal */
.modal-content .product-description-container {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

/* Estilo para descrição no modal (com altura limitada) */
.modal-content .product-description {
    display: block;
    max-height: 120px;
    overflow: hidden;
    white-space: pre-line;
    transition: max-height 0.3s ease;
    position: relative;
    text-overflow: ellipsis;
}

/* Gradiente no final do texto quando limitado */
.modal-content .product-description:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
    pointer-events: none;
}

.modal-content .product-description.expanded {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar personalizada para a descrição */
.modal-content .product-description::-webkit-scrollbar {
    width: 6px;
}

.modal-content .product-description::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.modal-content .product-description::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.modal-content .product-description::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Botão Ver mais */
.ver-mais-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    padding: var(--spacing-xs) 0;
    margin-top: var(--spacing-sm);
    transition: all 0.3s ease;
    position: relative;
}

.ver-mais-btn:hover {
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.ver-mais-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.ver-mais-btn.expanded .ver-mais-icon {
    transform: rotate(180deg);
}


.product-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.qty-btn {
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.qty-input {
    width: 80px;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.qty-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Carrinho Lateral */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--text-light);
    box-shadow: var(--shadow-heavy);
    z-index: 1000;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    overflow: hidden;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    cursor: pointer;
    transition: var(--transition-fast);
}

.cart-close:hover {
    color: var(--primary-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--spacing-lg);
    max-height: calc(100vh - 200px);
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--border-color);
}

/* Estilização da barra de rolagem para WebKit */
.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Indicador de rolagem quando há muitos itens */
.cart-items::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, var(--text-light));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-items.scrollable::after {
    opacity: 1;
}

.cart-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--secondary-color);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: 600;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.qty-control {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
}

.qty-control:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.cart-item-qty input {
    width: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: var(--spacing-xs);
    font-size: var(--font-size-sm);
}

.cart-footer {
    padding: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    background: var(--text-light);
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.cart-total {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.btn-checkout {
    width: 100%;
    padding: var(--spacing-lg);
    font-size: var(--font-size-lg);
}

/* Carrinho vazio */
.empty-cart {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    color: var(--text-secondary);
}

.empty-cart i {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-lg);
    color: var(--border-color);
}

.empty-cart h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.empty-cart p {
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* Controles de quantidade do carrinho */
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.qty-control {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
}

.qty-control:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.cart-item-qty input {
    width: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: var(--spacing-xs);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.cart-item-qty input:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Botão remover item */
.cart-item-remove {
    background: #e74c3c;
    border: none;
    color: var(--text-light);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    margin-left: auto;
}

.cart-item-remove:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Layout do item do carrinho */
.cart-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--secondary-color);
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-sm);
    line-height: 1.3;
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

/* Responsividade */
@media (max-width: 1024px) {
    .hero-content {
        gap: var(--spacing-2xl);
        padding: 0 var(--spacing-md);
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .product-showcase {
        transform: perspective(900px) rotateY(-12deg) rotateX(4deg);
        max-width: 320px;
    }

    .product-modal {
        padding: var(--spacing-lg);
    }

    .modal-content {
        max-width: 90%;
        max-height: 90vh;
    }

    .modal-body {
        gap: var(--spacing-xl);
        padding: var(--spacing-xl);
    }

    .main-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .nav {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }

    .nav-actions {
        flex-direction: column;
        gap: var(--spacing-md);
        width: 100%;
    }

    .search-input {
        width: 100%;
        max-width: none;
    }

    .view-controls {
        align-self: center;
    }

    .hero {
        min-height: 100vh;
        padding: var(--spacing-xl) 0;
    }

    .hero-logo img {
        width: 300px;
        height: 150px;
    }

    .hero-text {
        padding: var(--spacing-xl);
        border-radius: 20px;
        margin: 0 auto;
        max-width: 90%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .brands-carousel {
        max-width: 100%;
        margin: var(--spacing-lg) auto var(--spacing-xl);
        padding: 0 var(--spacing-sm);
    }

    .carousel-container {
        padding: var(--spacing-sm);
        overflow: hidden;
    }

    .brand-item {
        width: 120px;
        height: 90px;
        flex-shrink: 0;
    }

    .brand-logo {
        width: 100px;
        height: 50px;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
    }

    .carousel-btn i {
        font-size: 0.7rem;
    }

    .hero-feature span {
        font-size: var(--font-size-xs);
    }


    .whatsapp-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .contact-features {
        justify-content: center;
        gap: var(--spacing-md);
    }

    .products {
        padding: var(--spacing-xl) 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
        padding: 0 var(--spacing-md);
    }

    .hero-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
    }

    .hero-visual {
        order: -1;
        margin-bottom: var(--spacing-lg);
    }

    .product-showcase {
        transform: perspective(800px) rotateY(-10deg) rotateX(3deg);
        max-width: 280px;
        margin: 0 auto;
    }


    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-lg);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: var(--spacing-md);
    }

    .products-grid.category-rows-view {
        gap: var(--spacing-2xl);
    }

    .category-row {
        gap: var(--spacing-md);
    }

    .category-row-title {
        font-size: var(--font-size-xl);
    }

    .category-products-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .category-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }

    .category-view-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .category-view-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .category-view-title {
        font-size: var(--font-size-2xl);
    }

    .product-card {
        padding: var(--spacing-sm);
    }

    .product-image {
        height: 160px;
        max-height: 160px;
        border-radius: 12px 12px 0 0;
    }

    .product-info {
        padding: var(--spacing-sm);
    }

    .product-category {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .product-name {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-xs);
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        overflow: hidden;
    }

    .product-description {
        font-size: 11px;
        color: var(--text-secondary);
        line-height: 1.3;
        margin-bottom: var(--spacing-xs);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        overflow: hidden;
    }

    .product-price-container {
        margin-bottom: var(--spacing-sm);
    }

    .current-price {
        font-size: var(--font-size-sm);
        font-weight: 700;
    }

    .discount-indicator {
        font-size: 9px;
        padding: 1px 4px;
        min-width: 14px;
        height: 14px;
        margin-left: 3px;
    }

    .product-actions {
        gap: var(--spacing-xs);
        flex-direction: column;
    }

    .btn-add-cart {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 11px;
        font-weight: 600;
        border-radius: 8px;
        min-height: 32px;
    }

    .btn-favorite {
        width: 32px;
        height: 32px;
        padding: 0;
        align-self: center;
        border-radius: 8px;
    }

    .btn-favorite i {
        font-size: 12px;
    }

    .product-badges {
        top: 6px;
        left: 6px;
        gap: 3px;
    }

    .product-badge {
        padding: 2px 6px;
        font-size: 9px;
        border-radius: 8px;
    }

    .product-modal {
        padding: var(--spacing-md);
    }

    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 15px;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
    }

    .modal-close {
        top: var(--spacing-md);
        right: var(--spacing-md);
        width: 35px;
        height: 35px;
    }

    .product-gallery {
        order: 1;
    }

    .product-details {
        order: 2;
    }

    .main-image {
        height: 300px;
    }

    .product-details h2 {
        font-size: var(--font-size-2xl);
    }

    .product-actions {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .btn-add-to-cart,
    .btn-favorite {
        /* width: 100%; */
        justify-content: center;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
        z-index: 1003;
    }

    .cart-header {
        padding: var(--spacing-lg);
        border-bottom: 2px solid var(--border-color);
    }

    .cart-header h3 {
        font-size: var(--font-size-lg);
    }

    .cart-close {
        font-size: var(--font-size-xl);
    }

    .cart-items {
        padding: var(--spacing-lg);
        max-height: calc(100vh - 180px);
    }

    .cart-item {
        padding: var(--spacing-lg) 0;
        border-bottom: 1px solid var(--border-color);
    }

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

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-item-name {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xs);
    }

    .cart-item-price {
        font-size: var(--font-size-lg);
        font-weight: 700;
    }

    .cart-footer {
        padding: var(--spacing-lg);
        border-top: 2px solid var(--border-color);
    }

    .cart-total {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-lg);
    }

    .btn-checkout {
        width: 100%;
        padding: var(--spacing-lg);
        font-size: var(--font-size-lg);
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
        padding: var(--spacing-lg) 0;
    }

    .products {
        padding: var(--spacing-lg) 0;
    }

    .hero-content {
        padding: 0 var(--spacing-sm);
        gap: var(--spacing-lg);
    }

    .hero-text {
        padding: var(--spacing-lg);
        border-radius: 16px;
        margin: 0 auto;
        max-width: 95%;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: var(--spacing-md);
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }

    .brands-carousel {
        max-width: 100%;
        margin: var(--spacing-md) auto var(--spacing-lg);
        padding: 0 var(--spacing-xs);
    }

    .carousel-container {
        padding: var(--spacing-xs);
        overflow: hidden;
    }

    .brand-item {
        width: 100px;
        height: 80px;
        flex-shrink: 0;
    }

    .brand-logo {
        width: 80px;
        height: 40px;
    }

    .carousel-btn {
        width: 28px;
        height: 28px;
    }

    .carousel-btn i {
        font-size: 0.6rem;
    }

    .hero-feature span {
        font-size: 10px;
    }


    .product-showcase {
        transform: perspective(600px) rotateY(-5deg) rotateX(2deg);
        max-width: 240px;
    }

    .product-card {
        padding: var(--spacing-lg);
    }

    .product-info h3 {
        font-size: var(--font-size-base);
    }

    .product-price {
        font-size: var(--font-size-lg);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--spacing-sm);
    }

    .products-grid.category-rows-view {
        gap: var(--spacing-xl);
    }

    .category-row {
        gap: var(--spacing-sm);
    }

    .category-row-header {
        margin-top: 50px;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
        padding-bottom: var(--spacing-sm);
    }

    .category-row-title {
        font-size: var(--font-size-lg);
    }

    .category-row-count {
        font-size: var(--font-size-sm);
    }

    .category-products-container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .category-view-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .category-view-title {
        font-size: var(--font-size-xl);
    }

    .btn-back-categories {
        width: 100%;
        justify-content: center;
    }

    .btn-view-more-category {
        width: 100%;
        height: auto;
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-xs);
        flex-direction: row;
        justify-content: center;
        border-radius: 20px;
    }

    .btn-view-more-category:hover {
        transform: translateY(-1px);
    }

    .btn-view-more-category:hover i {
        transform: translateX(2px);
    }

    .product-card {
        padding: 6px;
    }

    .product-image {
        height: 195px;
        max-height: 195px;
        border-radius: 8px 8px 0 0;
    }

    .product-info {
        padding: 6px;
    }

    .product-category {
        font-size: 9px;
        margin-bottom: 3px;
    }

    .product-name {
        font-size: 11px;
        margin-bottom: 4px;
        line-height: 1.1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        overflow: hidden;
    }

    .product-description {
        font-size: 9px;
        color: var(--text-secondary);
        line-height: 1.2;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        overflow: hidden;
    }

.product-price-container {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.current-price {
    font-size: 12px;
    font-weight: 700;
}

.discount-indicator {
    font-size: 8px;
    padding: 2px 4px;
    min-width: 16px;
    height: 16px;
    margin-left: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    line-height: 1;
}

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

    .btn-add-cart {
        padding: 4px 6px;
        font-size: 10px;
        font-weight: 600;
        border-radius: 6px;
        min-height: 28px;
        width: 100%;
    }

    .btn-favorite {
        width: 28px;
        height: 28px;
        padding: 0;
        align-self: center;
        border-radius: 6px;
    }

    .btn-favorite i {
        font-size: 10px;
    }

    .product-badges {
        top: 4px;
        left: 4px;
        gap: 2px;
    }

    .product-badge {
        padding: 1px 4px;
        font-size: 8px;
        border-radius: 6px;
    }

    .product-card.list-view {
        flex-direction: column;
        height: auto;
    }

    .product-card.list-view .product-image {
        width: 100%;
        max-width: 100%;
        height: 200px;
        max-height: 200px;
    }

    .product-modal {
        padding: var(--spacing-sm);
    }

    .modal-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 10px;
        width: 100%;
    }

    .modal-body {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }

    .modal-close {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        width: 30px;
        height: 30px;
        font-size: var(--font-size-sm);
    }

    .main-image {
        height: 250px;
        border-radius: 10px;
    }

    .product-details h2 {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-sm);
    }

    .product-description {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-md);
    }

    .product-price-container {
        margin-bottom: var(--spacing-md);
    }

    .current-price {
        font-size: var(--font-size-lg);
    }

    .quantity-selector {
        justify-content: center;
        margin-bottom: var(--spacing-sm);
    }

    .qty-btn {
        width: 35px;
        height: 35px;
    }

    .qty-input {
        width: 60px;
    }

    .btn-add-to-cart,
    .btn-favorite {
        padding: var(--spacing-md);
        font-size: var(--font-size-sm);
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-header {
        padding: var(--spacing-md);
    }

    .cart-items {
        padding: var(--spacing-md);
        max-height: calc(100vh - 160px);
    }

    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .btn-checkout {
        padding: var(--spacing-md);
        font-size: var(--font-size-base);
    }

    /* Ajustes específicos para o contador do carrinho em telas muito pequenas */
    .nav-brand .btn-cart .cart-count {
        top: -4px;
        right: -4px;
        font-size: 9px;
        padding: 1px 3px;
        min-width: 14px;
        border-radius: 6px;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Melhorias de acessibilidade */
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Estados vazios */
.empty-state {
    text-align: center;
    padding: var(--spacing-3xl);
    color: var(--text-secondary);
}

.empty-state i {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-lg);
    color: var(--border-color);
}

.empty-state h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.empty-state p {
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* Menu Lateral Mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition-normal);
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    transition: var(--transition-normal);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: var(--transition-normal);
}

.mobile-menu.active .mobile-menu-overlay {
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--text-light);
    box-shadow: var(--shadow-heavy);
    transform: translateX(-100%);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    background: var(--accent-color);
    color: var(--primary-color);
}

.mobile-menu-header h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.mobile-menu-close:hover {
    background: rgba(26, 26, 26, 0.1);
}

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

.mobile-home {
    margin-bottom: var(--spacing-lg);
}

.mobile-home-btn {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 12px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-light);
}

.mobile-home-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.mobile-search {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.mobile-search-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    padding-right: 50px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: var(--font-size-base);
    background: var(--secondary-color);
    transition: var(--transition-fast);
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--text-light);
}

.mobile-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-search-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

.mobile-menu-section {
    margin-bottom: var(--spacing-xl);
}

.mobile-menu-section h3 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
    width: 100%;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.mobile-menu-link i {
    font-size: var(--font-size-base);
    width: 20px;
    text-align: center;
}

.mobile-view-controls {
    display: flex;
    gap: var(--spacing-sm);
}

.mobile-view-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-view-btn:hover,
.mobile-view-btn.active {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.mobile-sort-select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--text-light);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-sort-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Sidebar Desktop */
.desktop-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--text-light);
    box-shadow: var(--shadow-heavy);
    z-index: 1002;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.desktop-sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    background: var(--accent-color);
    color: var(--primary-color);
}

.sidebar-header h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: var(--font-size-base);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.sidebar-toggle:hover {
    background: rgba(26, 26, 26, 0.1);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

.sidebar-section {
    margin-bottom: var(--spacing-xl);
}

.sidebar-section h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.sidebar-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
    width: 100%;
    font-size: var(--font-size-sm);
}

.sidebar-btn:hover,
.sidebar-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.sidebar-view-controls {
    display: flex;
    gap: var(--spacing-sm);
}

.sidebar-view-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: var(--font-size-sm);
}

.sidebar-view-btn:hover,
.sidebar-view-btn.active {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.sidebar-sort-select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--text-light);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.sidebar-sort-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Ajustar layout quando sidebar estiver ativa */
body.sidebar-active {
    margin-left: 300px;
}

/* Mostrar botão hamburger apenas em mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-actions {
        display: none;
    }

    .nav-brand {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 35px;
        width: 100%;
        justify-content: space-between;
    }

    /* Esconder tagline "Catálogo Digital" em mobile */
    .nav-brand .tagline {
        display: none;
    }

    /* Mostrar botão do carrinho no lugar da tagline */
    .nav-brand .btn-cart {
        display: flex;
        position: relative;
        background: var(--gradient-accent);
        border: none;
        padding: var(--spacing-sm) var(--spacing-md);
        border-radius: 25px;
        color: var(--primary-color);
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-medium);
        z-index: auto;
        min-width: 50px;
        height: 40px;
        align-items: center;
        justify-content: center;
    }

    .nav-brand .btn-cart:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-heavy);
    }

    /* Ajustes adicionais para o contador em mobile */
    .nav-brand .btn-cart .cart-count {
        top: -6px;
        right: -6px;
        font-size: 10px;
        padding: 1px 4px;
        min-width: 16px;
        border-radius: 8px;
    }

    /* Esconder botão do carrinho do nav-actions em mobile */
    .nav-actions .btn-cart {
        display: none;
    }

    .desktop-sidebar,
    .nav-filter-btn {
        display: none;
    }
}


/* Estilos para logomarca com efeito Liquid Morphing */
.client-logo-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    backdrop-filter: blur(20px);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    min-height: 200px;
    width: 100%;
    max-width: 300px;
    cursor: pointer;
    overflow: hidden;
}

/* Efeito de gradiente animado na borda */
.client-logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(45deg,
            #6eb400,
            #6eb400,
            #6eb400,
            #6eb400,
            #6eb400);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.client-logo-container:hover::before {
    opacity: 1;
}

/* Ondas de energia */
.client-logo-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(208, 182, 157, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
}

.client-logo-container:hover::after {
    width: 400px;
    height: 400px;
    opacity: 1;
}

.client-logo {
    position: relative;
    max-width: 150px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(1.1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    margin-bottom: var(--spacing-md);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
}

.client-logo-container:hover .client-logo {
    transform: scale(1.1) rotate(2deg);
    filter:
        brightness(1.3) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
}

.client-name {
    position: relative;
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
}

.client-logo-container:hover .client-name {
    transform: translateY(-5px);
    text-shadow:
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(212, 175, 55, 0.3);
    color: #ffd700;
}

/* Partículas flutuantes */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #6eb400;
    border-radius: 50%;
    pointer-events: none;
    animation: float 3s ease-in-out infinite;
    opacity: 0;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 0.5s;
}

.particle:nth-child(3) {
    bottom: 25%;
    left: 20%;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    bottom: 35%;
    right: 10%;
    animation-delay: 1.5s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 2s;
}

.particle:nth-child(6) {
    top: 60%;
    right: 5%;
    animation-delay: 2.5s;
}

.client-logo-container:hover .particle {
    opacity: 1;
    animation: floatActive 2s ease-in-out infinite;
}

/* Animações */
@keyframes gradientShift {

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

    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.7;
    }
}

@keyframes floatActive {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-30px) rotate(360deg) scale(1.2);
        opacity: 1;
    }
}

/* Efeito de hover no container */
.client-logo-container:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}


/* Responsividade para logomarca */
@media (max-width: 768px) {
    .client-logo-container {
        padding: var(--spacing-lg);
        min-height: 150px;
        max-width: 250px;
    }

    .client-logo {
        max-width: 120px;
        max-height: 100px;
    }

    .client-name {
        font-size: var(--font-size-lg);
    }

    /* Reduzir intensidade do efeito 3D em mobile */
    .client-logo-container:hover {
        transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
    }
}

/* ===== ESTILOS DO WHATSAPP ===== */
.whatsapp-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.whatsapp-preview-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.whatsapp-preview-content {
    position: relative;
    background: var(--card-background);
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: fadeInUp 0.3s ease-out;
}

.whatsapp-preview-content .modal-header {
    background: var(--gradient-accent);
    color: var(--primary-color);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.whatsapp-preview-content .modal-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.whatsapp-preview-content .modal-header h3 i {
    color: #25D366;
    font-size: var(--font-size-2xl);
}

.whatsapp-preview-content .modal-close {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-preview-content .modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.whatsapp-preview-content .modal-body {
    padding: var(--spacing-lg);
    max-height: 60vh;
    overflow-y: auto;
}

.whatsapp-preview {
    background: #f0f0f0;
    border-radius: 15px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: 2px solid #e0e0e0;
}

.whatsapp-message-preview {
    background: #ffffff;
    border-radius: 10px;
    padding: var(--spacing-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #25D366;
}

.whatsapp-message-preview pre {
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    flex-wrap: wrap;
}

.modal-actions .btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-sm);
}

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

.modal-actions .btn-whatsapp-send:hover {
    background: #1ea952;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.modal-actions .btn-secondary {
    background: var(--secondary-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.modal-actions .btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

/* Formulário de Informações do Cliente */
.client-info-form {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.client-info-form h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

/* Opções de Entrega/Retirada */
.delivery-options {
    margin: var(--spacing-lg) 0;
}

.delivery-options h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.radio-option {
    position: relative;
    cursor: pointer;
    display: block;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-custom {
    position: absolute;
    top: 4px;
    left: 4px;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.radio-option input:checked~.radio-custom {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.radio-option input:checked~.radio-custom:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%);
}

.radio-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    padding-left: 35px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.radio-option:hover .radio-content {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.05);
}

.radio-option input:checked~.radio-content {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.1);
}

.radio-content i {
    font-size: var(--font-size-lg);
    color: var(--accent-color);
}

.radio-content span {
    font-weight: 600;
    color: var(--text-primary);
}

/* Responsividade do modal WhatsApp */
@media (max-width: 768px) {
    .whatsapp-preview-modal {
        padding: var(--spacing-sm);
    }

    .whatsapp-preview-content {
        max-height: 90vh;
    }

    .whatsapp-preview-content .modal-header {
        padding: var(--spacing-md);
    }

    .whatsapp-preview-content .modal-header h3 {
        font-size: var(--font-size-lg);
    }

    .whatsapp-preview-content .modal-body {
        padding: var(--spacing-md);
    }

    .whatsapp-preview {
        padding: var(--spacing-md);
    }

    .whatsapp-message-preview {
        padding: var(--spacing-md);
    }

    .whatsapp-message-preview pre {
        font-size: var(--font-size-xs);
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }
}

/* Melhorias para o botão de checkout com WhatsApp */
.btn-checkout {
    position: relative;
    overflow: hidden;
}

.btn-checkout::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: left 0.5s;
}

.btn-checkout:hover::before {
    left: 100%;
}

/* Ícone do WhatsApp no botão de checkout */
.btn-checkout.whatsapp-enabled::after {
    content: '📱';
    margin-left: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

/* Opções de Pagamento */
.payment-options {
    margin: var(--spacing-lg) 0;
}

.payment-options h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.payment-options .radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

/* Responsividade para opções de pagamento */
@media (max-width: 768px) {
    .payment-options .radio-group {
        grid-template-columns: 1fr;
    }
}

/* Estado Vazio */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-4xl) var(--spacing-2xl);
    background: var(--text-light);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    border: 2px dashed var(--border-color);
}

.empty-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xl);
    opacity: 0.7;
}

.empty-state h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.empty-state p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Paginação */
.pagination-container {
    margin-top: var(--spacing-3xl);
    padding: 10px;
    border-top: 1px solid var(--border-color);
    background: var(--text-light);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.pagination-info {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.pagination {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--text-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    min-width: 120px;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-btn:disabled:hover {
    background: var(--text-light);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: none;
}

.pagination-numbers {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.pagination-number {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.pagination-number:hover {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.pagination-number.active {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.pagination-number.ellipsis {
    cursor: default;
    background: transparent;
    border: none;
    color: var(--text-secondary);
}

.pagination-number.ellipsis:hover {
    background: transparent;
    color: var(--text-secondary);
    transform: none;
    box-shadow: none;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.items-per-page label {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.items-per-page select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--text-light);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    min-width: 80px;
}

.items-per-page select:hover {
    border-color: var(--primary-color);
}

.items-per-page select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsividade da Paginação */
@media (max-width: 768px) {
    .pagination-container {
        margin-top: var(--spacing-2xl);
        padding: var(--spacing-lg) 0;
        border-radius: 16px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }

    .pagination-btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-xs);
        min-width: 100px;
    }

    .pagination-btn span {
        display: none;
    }

    .pagination-numbers {
        gap: 4px;
    }

    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: var(--font-size-xs);
    }

    .pagination-controls {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .items-per-page {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .pagination-btn {
        min-width: 80px;
        padding: var(--spacing-xs);
    }

    .pagination-number {
        width: 32px;
        height: 32px;
    }
}

/* Homepage Styles */
.homepage-main {
    min-height: 100vh;
    background: #fff;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: var(--spacing-4xl) 0 var(--spacing-2xl);
    background: var(--gradient-primary);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-subtitle {
    font-size: var(--font-size-base);
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

/* Categories Section */
.categories-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    margin-top: 100px;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.categories-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-3xl);
    position: relative;
}

.categories-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    text-align: center;
    margin-top: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Category Cards */
.category-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(208, 182, 157, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 300px;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(208, 182, 157, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 24px;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(208, 182, 157, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(208, 182, 157, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.category-card.view-all {
    background: linear-gradient(135deg, rgba(208, 182, 157, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-color: rgba(208, 182, 157, 0.2);
    position: relative;
}

.category-card.view-all::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #6eb400, #7cc400, #6eb400);
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card.view-all:hover::after {
    opacity: 1;
}

.category-card.view-all:hover {
    box-shadow:
        0 25px 50px rgba(208, 182, 157, 0.15),
        0 0 0 1px rgba(208, 182, 157, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.category-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #6eb400 0%, #6eb400 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.35);
}

.category-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
}

.category-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    opacity: 0.8;
}

.category-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6eb400 0%, #6eb400 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    z-index: 2;
}

.category-card:hover .category-arrow {
    transform: translateX(4px) scale(1.1);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .category-card {
        min-height: 280px;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .categories-section {
        padding: 4rem 0;
        min-height: calc(100vh - 100px);
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .category-card {
        min-height: 260px;
        padding: 1.5rem;
    }

    .category-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .category-name {
        font-size: 1.4rem;
    }

    .category-description {
        font-size: 0.9rem;
    }
}

/* Legacy styles removed - using new modern category-card styles */

/* All legacy styles removed - using new modern design */

/* All legacy category styles removed - using new modern design above */

/* Featured Section */
.featured-section {
    background: var(--gradient-accent);
    padding: var(--spacing-4xl) 0;
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    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 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(26,26,26,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-4xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-2xl);
    position: relative;
    z-index: 2;
}

.featured-text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.featured-text p {
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    opacity: 0.8;
    line-height: 1.6;
}

.featured-stats {
    display: flex;
    gap: var(--spacing-2xl);
}

.featured-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-lg);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.featured-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.featured-stat .stat-label {
    font-size: var(--font-size-sm);
    color: var(--primary-color);
    font-weight: 500;
    opacity: 0.8;
}


/* Responsividade da Homepage */
@media (max-width: 768px) {
    .categories-section {
        padding: var(--spacing-3xl) 0;
        margin-top: 80px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        padding: 0 var(--spacing-md);
    }

    .category-card {
        padding: var(--spacing-xl);
        min-height: 160px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .category-name {
        font-size: var(--font-size-base);
    }

    .category-description {
        font-size: var(--font-size-xs);
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid #e2e8f0;
    padding: 2rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #cbd5e1 50%, transparent 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-text {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    letter-spacing: 0.025em;
}

.footer-brand {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-company {
    color: #3b82f6;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s ease;
}

.footer-company:hover {
    color: #2563eb;
}

.footer-company::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.footer-company:hover::after {
    width: 100%;
}

/* Responsividade do Footer */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
        margin-top: 3rem;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .footer-text {
        font-size: 0.8rem;
    }

    .footer-brand,
    .footer-company {
        font-size: 0.85rem;
    }
}

.product-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.carousel-prev,
.carousel-next {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.gallery-container {
    position: relative;
    width: 100%;
}

.main-image {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--secondary-color);
    cursor: zoom-in;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    will-change: transform;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.main-image.zoomed {
    cursor: zoom-out;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Feedback visual para interações */
.main-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(208, 182, 157, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.main-image.interacting::after {
    width: 100px;
    height: 100px;
    opacity: 1;
}

.main-image.zoomed img {
    transform: scale(2.5);
    cursor: move;
    object-fit: cover;
}

/* Estilos para vídeo no modal */
.main-image.video-mode {
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.main-image.video-mode video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.main-image.video-mode video::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.7);
}

.main-image.video-mode video::-webkit-media-controls-play-button,
.main-image.video-mode video::-webkit-media-controls-timeline,
.main-image.video-mode video::-webkit-media-controls-current-time-display,
.main-image.video-mode video::-webkit-media-controls-time-remaining-display,
.main-image.video-mode video::-webkit-media-controls-mute-button,
.main-image.video-mode video::-webkit-media-controls-volume-slider {
    color: white;
}

/* Estilo da lupa */
.zoom-lens {
    position: absolute;
    border: 2px solid var(--accent-color);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}

.main-image:hover .zoom-lens {
    opacity: 1;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    z-index: 2;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: var(--accent-hover);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Responsividade do carrossel */
@media (max-width: 768px) {
    .main-image {
        height: 300px;
    }

    .carousel-prev,
    .carousel-next {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .carousel-dots {
        bottom: 15px;
        gap: 6px;
        padding: 6px;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .main-image {
        height: 250px;
    }

    .carousel-prev,
    .carousel-next {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

}

.product-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image img {
    width: 100%;
    height: 25 0px;
    object-fit: cover;
    border: 2px solid #ccc;
    border-radius: 6px;
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.product-badge {
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 6px;
    color: #fff;
}

.badge-new {
    background: #28a745;
}

.badge-sale {
    background: #ffc107;
}

.badge-featured {
    background: #17a2b8;
}

.product-info {
    padding: 10px;
}

.product-price-container {
    margin: 5px 0;
    font-size: 14px;
}

.product-actions {
    margin-top: 5px;
}

.product-actions .btn,
.product-actions .btn-favorite {
    flex: 1;
    padding: 6px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn-add-cart {
    background-color: #007bff;
    color: #fff;
}

.btn-favorite {
    background-color: #f1f1f1;
    color: #333;
}

