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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 0.2rem;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.nav a:hover::before {
    left: 100%;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav a i {
    font-size: 1rem;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    align-items: center;
}

.cart-icon {
    position: relative;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Botões de Autenticação */
.header-actions .auth-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-right: 25px !important;
}

.header-actions .auth-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.header-actions .auth-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s !important;
}

.header-actions .auth-btn:hover::before {
    left: 100% !important;
}

.header-actions .auth-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.header-actions .auth-btn:active {
    transform: translateY(0) !important;
}

.header-actions .login-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.header-actions .login-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1) !important;
}

.header-actions .register-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 700 !important;
}

.header-actions .register-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2)) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15) !important;
}

/* Menu do usuário logado - Dropdown */
.header-actions .user-menu {
    display: flex !important;
    align-items: center !important;
    margin-right: 25px !important;
}

.user-profile-dropdown {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.profile-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.profile-btn i {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
}

.dropdown-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.dropdown-header i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.dropdown-header span {
    font-weight: 600;
    font-size: 0.9rem;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #667eea;
}

.dropdown-item i {
    font-size: 1rem;
    width: 16px;
    opacity: 0.7;
}

.dropdown-item.logout-item {
    color: #dc3545;
    border-top: 1px solid #f0f0f0;
    margin-top: 5px;
}

.dropdown-item.logout-item:hover {
    background: #fff5f5;
    color: #dc3545;
}

.logout-btn::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;
}

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

.logout-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.logout-btn:active {
    transform: translateY(0);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* Banner Carousel */
.banner-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    text-decoration: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-hero {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-shadow: none;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Estilos de navegação do banner removidos - apenas indicadores */

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    border-color: white;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-primary {
    background: #ff4757;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: #ff3742;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.products-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.products-section.favorites {
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

/* Container do carrossel de produtos */
.products-carousel {
    position: relative;
    overflow: visible; /* Mudado para visible para permitir que as setas sejam clicáveis */
    margin: 0 auto;
    touch-action: manipulation; /* Permite apenas tap e pinch-zoom */
    -webkit-overflow-scrolling: auto; /* Remove scroll suave */
    padding: 0 40px 0 50px; /* Aumentando ainda mais o padding esquerdo */
}

/* Ajuste específico para desktop - mover carrossel para a esquerda */
@media (min-width: 1201px) {
    .products-carousel {
        margin-left: -60px; /* Diminuindo ainda mais para mover menos para a esquerda */
        max-width: calc(100% + 60px); /* Compensa a largura */
        padding: 0 80px 0 60px; /* Padding esquerdo ainda maior */
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .products-carousel {
        margin-left: -40px; /* Diminuindo ainda mais para mover menos para a esquerda */
        max-width: calc(100% + 40px); /* Compensa a largura */
        padding: 0 60px 0 55px; /* Padding esquerdo ainda maior */
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .products-carousel {
        margin-left: -20px; /* Diminuindo ainda mais para mover menos para a esquerda */
        max-width: calc(100% + 20px); /* Compensa a largura */
        padding: 0 40px 0 50px; /* Padding esquerdo ainda maior */
    }
}

/* Media queries para ajustar padding do carrossel */
@media (max-width: 768px) {
    .products-carousel {
        padding: 0 65px 0 65px; /* Padding igual dos dois lados para mobile */
    }
}

@media (max-width: 480px) {
    .products-carousel {
        padding: 0 60px 0 60px; /* Padding igual dos dois lados para telas pequenas */
    }
}

.products-grid {
    display: flex;
    /* Transição removida para evitar auto-slide */
    gap: 1.5rem;
    width: 100%;
    overflow: hidden; /* Mantém o conteúdo controlado */
    touch-action: manipulation; /* Permite apenas tap e pinch-zoom */
    user-select: none; /* Previne seleção de texto */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 280px;
    max-width: calc(25% - 1.125rem);
    height: 500px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* Controles do carrossel removidos - navegação manual apenas */

/* Indicadores do carrossel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: #6c5ce7;
}

/* Responsividade */
@media (max-width: 1200px) {
    .product-card {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
        height: 480px;
    }
}

@media (max-width: 768px) {
    .product-card {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
        min-width: 250px;
        height: 450px;
    }
    
    .products-grid {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        flex: 0 0 calc(100% - 1rem);
        max-width: calc(100% - 1rem);
        min-width: 280px;
        height: 420px;
    }
    
    .products-grid {
        gap: 1rem;
    }
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.product-info h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    line-height: 1.3;
    flex-grow: 0;
}

.price {
    margin-bottom: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.4;
}

.price {
    margin-bottom: 1.5rem;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.3rem;
}

.current-price {
    color: #ff4757;
    font-size: 1.3rem;
    font-weight: 700;
}

.btn-add-cart {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-top: auto;
    flex-shrink: 0;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* WhatsApp CTA */
.whatsapp-cta {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-content i {
    font-size: 3rem;
}

.cta-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    max-width: 600px;
}

.btn-whatsapp {
    background: white;
    color: #25d366;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-selo {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.selo-seguro-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #ecf0f1;
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

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

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section a:hover {
    color: white;
}

.footer-section a i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    color: #bdc3c7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    opacity: 0.8;
}

/* Modal do Carrinho */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.cart-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.cart-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-close:hover {
    color: #f1f1f1;
}

.cart-modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

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

.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #333;
}

.cart-item-size {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.cart-item-price {
    margin: 0 0 10px 0;
    font-weight: bold;
    color: #667eea;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-quantity button {
    background: #667eea;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.cart-item-quantity button:hover {
    background: #5a6fd8;
}

.cart-item-quantity span {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    background: #ff4757;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.remove-item:hover {
    background: #ff3742;
}

.empty-cart {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

.cart-modal-footer {
    background: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #333;
}

.cart-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-continue-shopping,
.btn-checkout {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-continue-shopping {
    background: #6c757d;
    color: white;
}

.btn-continue-shopping:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-checkout {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Modal de Seleção de Tamanho */
.size-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.size-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.size-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.size-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.size-close:hover {
    color: #f1f1f1;
}

.size-modal-body {
    padding: 20px;
}

.product-info-modal {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.product-info-modal img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.product-details h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #333;
}

.product-details .price {
    margin: 0;
    font-weight: bold;
    color: #667eea;
    font-size: 1.1rem;
}

.size-selection h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1rem;
}

.size-options {
    margin-bottom: 20px;
}

.size-dropdown {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 45px;
}

.size-dropdown:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.size-dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.size-dropdown option {
    padding: 10px;
    font-size: 1rem;
}

.size-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-cancel {
    padding: 12px 24px;
    border: 2px solid #ddd;
    background: white;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    border-color: #999;
    color: #333;
}

.btn-add-to-cart {
    padding: 12px 24px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-add-to-cart:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav ul {
        gap: 0.5rem;
        flex-wrap: nowrap;
        justify-content: flex-start;
        display: none; /* Hide navigation on mobile to save space */
    }
    
    .nav a {
        padding: 6px 10px;
        font-size: 0.9rem;
        gap: 6px;
    }
    
    .nav a i {
        font-size: 0.9rem;
    }
    
    .header-actions {
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }
    
    .auth-buttons {
        margin-right: 0;
        gap: 6px;
        flex-wrap: nowrap;
        display: flex;
        align-items: center;
    }
    
    .auth-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
        border-radius: 15px;
        letter-spacing: 0.2px;
        min-width: 65px;
        justify-content: center;
        white-space: nowrap;
    }
    
    .auth-btn span {
        display: block;
    }
    
    .user-menu {
        margin-right: 0;
        gap: 12px;
        padding: 6px 12px;
        border-radius: 20px;
        flex-wrap: wrap;
    }
    
    .user-greeting {
        font-size: 0.8rem;
        letter-spacing: 0.3px;
    }
    
    .logout-btn {
        width: 32px;
        height: 32px;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .banner-slide {
        padding: 80px 0 40px;
        min-height: 500px;
        background-size: contain;
    }
    
    .products-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .cta-content h3 {
        font-size: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
        gap: 8px;
    }
    
    .footer-logo-img {
        height: 35px;
    }
    
    .selo-seguro-img {
        height: 50px;
    }
    
    .cart-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cart-item-info {
        order: 1;
    }
    
    .cart-item-image {
        order: 2;
        align-self: center;
    }
    
    .remove-item {
        order: 3;
        align-self: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .banner-slide {
        padding: 80px 0 30px;
        min-height: 400px;
        background-size: contain;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Estilos de setas removidos - navegação manual apenas */
    
    .carousel-indicators {
        bottom: 20px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    
    .nav a {
        padding: 4px 8px;
        font-size: 0.8rem;
        gap: 4px;
        border-radius: 15px;
    }
    
    .nav a i {
        font-size: 0.8rem;
    }
    
    .auth-buttons {
        gap: 4px;
        flex-direction: row;
        width: auto;
        flex-wrap: nowrap;
    }
    
    .auth-btn {
        padding: 4px 8px;
        font-size: 0.65rem;
        min-width: 60px;
        border-radius: 12px;
        white-space: nowrap;
    }
    
    .user-menu {
        gap: 8px;
        padding: 4px 10px;
        border-radius: 18px;
        flex-direction: column;
        align-items: center;
    }
    
    .user-greeting {
        font-size: 0.75rem;
        text-align: center;
    }
    
    .logout-btn {
        width: 28px;
        height: 28px;
    }
}

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

.product-card {
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3) {
    animation-delay: 0.2s;
}

.product-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Navegação inferior para mobile */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px 0;
    z-index: 9998;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.mobile-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Responsividade para navegação mobile */
@media (max-width: 768px) {
    /* Esconder navegação principal no mobile */
    .nav {
        display: none !important;
    }
    
    /* Mostrar navegação inferior no mobile */
    .mobile-bottom-nav {
        display: flex !important;
    }
    
    /* Ajustar header para mobile - FORÇAR LAYOUT HORIZONTAL */
    .header .container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }
    
    .logo {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .logo h1 {
        font-size: 1.2rem !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }
    
    .logo-img {
        height: 35px !important;
        max-width: 100px !important;
        object-fit: contain !important;
    }
    
    .header-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.3rem !important;
        flex: 0 0 auto !important;
        flex-wrap: nowrap !important;
    }
    
    /* Ajustar botões de autenticação para mobile */
    .auth-buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.3rem !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    
    .auth-btn {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
        min-width: 70px !important;
        white-space: nowrap !important;
        border-radius: 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
    }
    
    .auth-btn span {
        display: inline !important;
        font-size: 0.7rem !important;
    }
    
    .auth-btn i {
        font-size: 0.8rem !important;
    }
    
    /* Ajustar carrinho para mobile */
    .cart-icon {
        padding: 6px !important;
        min-width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .cart-icon i {
        font-size: 1.1rem !important;
    }
    
    .cart-count {
        font-size: 0.7rem !important;
    }
    
    /* Adicionar padding bottom para compensar navegação inferior */
    body {
        padding-bottom: 70px;
    }
    
    /* CSS adicional para forçar layout horizontal no header mobile */
    .header .container > * {
        flex-shrink: 0 !important;
    }
    
    .header .container .logo,
    .header .container .header-actions {
        display: flex !important;
        align-items: center !important;
    }
    
    .header .container .header-actions > * {
        display: flex !important;
        align-items: center !important;
    }
}

/* Estilos para setas de navegação do carrossel */
.products-carousel {
    position: relative !important;
    overflow: visible !important;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.95);
    border: 3px solid rgba(255, 255, 255, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 1.4rem;
    color: white;
    visibility: visible !important;
    opacity: 1 !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -ms-touch-action: manipulation;
}

.carousel-arrow i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    pointer-events: none;
    transform: translateY(1px); /* Ajuste fino para centralização perfeita */
}

.carousel-arrow:hover {
    background: rgba(102, 126, 234, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%) scale(1.1);
    border-color: white;
}

/* Efeito hover/touch para dispositivos móveis */
@media (hover: none) and (pointer: coarse) {
    .carousel-arrow:hover {
        transform: translateY(-50%) scale(1);
    }
    
    .carousel-arrow:active {
        transform: translateY(-50%) scale(0.95) !important;
        background: rgba(102, 126, 234, 0.8) !important;
    }
}

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

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

.carousel-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        background: rgba(102, 126, 234, 1);
        border: 2px solid white;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        z-index: 10000;
    }
    
    .carousel-arrow i {
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        transform: translateY(1px); /* Ajuste fino para centralização perfeita */
    }
    
    .carousel-arrow.prev {
        left: 10px;
    }
    
    .carousel-arrow.next {
        right: 10px;
    }
    
    .carousel-arrow:active {
        transform: translateY(-50%) scale(0.95);
        background: rgba(102, 126, 234, 0.8);
    }
}

@media (max-width: 480px) {
    .carousel-arrow {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        background: rgba(102, 126, 234, 1);
        border: 2px solid white;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        z-index: 10000;
    }
    
    .carousel-arrow i {
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        transform: translateY(1px); /* Ajuste fino para centralização perfeita */
    }
    
    .carousel-arrow.prev {
        left: 8px;
    }
    
    .carousel-arrow.next {
        right: 8px;
    }
    
    .carousel-arrow:active,
    .carousel-arrow:focus {
        transform: translateY(-50%) scale(0.95);
        background: rgba(102, 126, 234, 0.9);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    }
    

}

@media (max-width: 480px) {
    .mobile-nav-item {
        padding: 6px 8px;
        min-width: 50px;
    }
    
    .mobile-nav-item i {
        font-size: 1.1rem;
    }
    
    .mobile-nav-item span {
        font-size: 0.65rem;
    }
    
    /* Ajustes específicos para telas muito pequenas */
    .header .container {
        gap: 0.3rem;
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 35px;
        max-width: 100px;
    }
    
    .auth-btn {
        padding: 4px 8px !important;
        font-size: 0.65rem !important;
        min-width: 65px !important;
        border-radius: 12px !important;
        gap: 3px !important;
    }
    
    .auth-btn span {
        display: inline !important;
        font-size: 0.65rem !important;
    }
    
    .auth-btn i {
        font-size: 0.7rem !important;
    }
    
    .cart-icon {
        padding: 4px;
        min-width: 35px;
        height: 35px;
    }
    
    .cart-icon i {
        font-size: 1rem;
    }
    
    .cart-count {
        font-size: 0.65rem;
    }
}