/* Estilos personalizados */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover .card-img-top {
    transform: scale(1.03);
}

footer {
    background-color: #212529;
    color: white;
    padding: 40px 0;
}

/* Estilo para os ícones sem moldura */
.nav-icon {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin: 0 10px;
    position: relative;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-icon:hover {
    color: var(--primary-color);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 0.6rem;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilo para o botão do carrinho nos cards */
.btn-cart-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s;
}

.btn-cart-icon:hover {
    transform: scale(1.1);
}

/* Estilo para o carrossel */
.carousel-item img {
    cursor: pointer;
    transition: opacity 0.3s;
}

.carousel-item img:hover {
    opacity: 0.9;
}

/* Preços */
.price {
    font-weight: bold;
    color: var(--primary-color);
}

.old-price {
    text-decoration: line-through;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Links do carrossel */
.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* Modal do carrinho */
.modal-content {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Cards de produtos */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Botões */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* ============================================= */
/* COMPONENTE: Login */
/* ============================================= */
 .login-container {
            max-width: 400px;
            margin: 2rem auto;
            padding: 2rem;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .login-title {
            text-align: center;
            margin-bottom: 1.5rem;
            color: #4a00e0;
        }
        
        .form-group {
            margin-bottom: 1rem;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }
        
        .form-group input {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 1rem;
        }
        
        .submit-btn {
            background-color: #4a00e0;
            color: white;
            border: none;
            padding: 1rem;
            font-size: 1rem;
            border-radius: 4px;
            cursor: pointer;
            width: 100%;
            font-weight: bold;
            transition: background-color 0.3s;
            margin-top: 1rem;
        }
        
        .submit-btn:hover {
            background-color: #3700b3;
        }
        
        .signup-link {
            text-align: center;
            margin-top: 1.5rem;
        }
        
        .error-message {
            color: #dc3545;
            margin-bottom: 1rem;
            text-align: center;
        }
		
/* ============================================= */
/* COMPONENTE: cadstro */
/* ============================================= */		
		
		.signin-container {
            max-width: 600px;
            margin: 2rem auto;
            padding: 2rem;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .signin-title {
            text-align: center;
            margin-bottom: 1.5rem;
            color: #4a00e0;
        }
        
        .form-group {
            margin-bottom: 1rem;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }
        
        .form-group input, 
        .form-group select {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 1rem;
        }
        
        .form-row {
            display: flex;
            gap: 1rem;
        }
        
        .form-row .form-group {
            flex: 1;
        }
        
        .submit-btn {
            background-color: #4a00e0;
            color: white;
            border: none;
            padding: 1rem;
            font-size: 1rem;
            border-radius: 4px;
            cursor: pointer;
            width: 100%;
            font-weight: bold;
            transition: background-color 0.3s;
            margin-top: 1rem;
        }
        
        .submit-btn:hover {
            background-color: #3700b3;
        }
        
        .login-link {
            text-align: center;
            margin-top: 1.5rem;
        }
        
        .error-message {
            color: #dc3545;
            margin-bottom: 1rem;
            text-align: center;
        }
        
        .success-message {
            color: #28a745;
            margin-bottom: 1rem;
            text-align: center;
        }
        
        /* Estilo para o autocomplete */
		.pac-container {
			font-family: Arial, sans-serif;
			box-shadow: 0 2px 6px rgba(0,0,0,0.3);
			z-index: 2000 !important; /* Garante que apareça acima de outros elementos */
		}
        
        #endereco {
            padding-right: 30px;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23777" width="18px" height="18px"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 18px;
        }
		
		 .senha-valida {
        border: 2px solid #4CAF50 !important;
		}
		.senha-invalida {
			border: 2px solid #F44336 !important;
		}
		.mensagem-senha {
			color: #F44336;
			font-size: 0.8em;
			margin-top: 5px;
			display: none;
		}
		 .confirmacao-container {
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
        background: #f9f9f9;
        border-radius: 8px;
		}
		
		.metodo-confirmacao {
			margin-top: 20px;
		}
		
		.metodo-confirmacao h3 {
			color: #333;
			border-bottom: 1px solid #ddd;
			padding-bottom: 10px;
		}
		
		/* Estilo para o dropdown de categorias */
		.navbar .dropdown-menu {
			border: none;
			box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
		}

		.dropdown-item {
			padding: 0.5rem 1.5rem;
			transition: all 0.2s;
		}

		.dropdown-item:hover {
			background-color: #f8f9fa;
			color: var(--primary-color);
			padding-left: 1.75rem;
		}

		/* Responsividade */
		@media (max-width: 992px) {
			.navbar .dropdown-menu {
				box-shadow: none;
				border: 1px solid rgba(0, 0, 0, 0.1);
			}
			
			.dropdown-item {
				padding: 0.5rem 1rem;
			}
		}
		
		/* Estilo para o dropdown do usuário */
		.navbar .dropdown-menu {
			min-width: 200px;
		}

		.dropdown-header {
			font-size: 0.875rem;
			font-weight: 600;
			color: #495057;
		}

		.dropdown-item {
			padding: 0.5rem 1rem;
			transition: all 0.2s;
		}

		.dropdown-item i {
			width: 20px;
			text-align: center;
		}

		.dropdown-item:hover {
			background-color: #f8f9fa;
			padding-left: 1.25rem;
		}

		/* Ícone do usuário quando logado */
		.nav-icon.dropdown-toggle::after {
			display: none;
		}

		/* Responsividade */
		@media (max-width: 992px) {
			.dropdown-menu {
				border: none;
				box-shadow: none;
			}
			
			.dropdown-item {
				padding: 0.5rem 0.75rem;
			}
		}
		
		.nav-icon.dropdown-toggle {
			cursor: pointer;
		}

		.dropdown-menu {
			min-width: 200px;
		}

		.dropdown-item {
			transition: all 0.2s;
		}

		.dropdown-item:hover {
			background-color: #f8f9fa;
			padding-left: 1.25rem;
		}