:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #1f2937;
    line-height: 1.6;
}

.navbar {
    background: var(--dark-color) !important;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.carousel {
    margin-bottom: 0;
}

.carousel-item {
    height: 500px;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    bottom: 50px;
}

.carousel-caption h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

.btn-primary {
    background: var(--gradient-1);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-1);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.product-card, .blog-card, .testimonial-card, .category-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.product-card:hover, .blog-card:hover, .category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.product-card .card-img-top, .blog-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-card:hover .card-img-top, .blog-card:hover .card-img-top {
    transform: scale(1.05);
}

.testimonial-card {
    border-left: 4px solid var(--primary-color);
}

.category-card:hover {
    background: var(--gradient-1);
    color: white;
}

.category-card:hover .card-title,
.category-card:hover .card-text {
    color: white;
}

.category-card i {
    transition: all 0.3s ease;
}

.category-card:hover i {
    transform: rotate(360deg) scale(1.2);
}

.bg-primary {
    background: var(--gradient-1) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

.card {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-md);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
}

.table {
    border-radius: 10px;
    overflow: hidden;
}

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-radius: 20px 20px 0 0;
    background: var(--gradient-1);
    color: white;
}
/* Corrige o nível de sobreposição do modal e do fundo escurecido */
.modal-backdrop.show {
    opacity: 0.45 !important; /* deixa o fundo visível, mas leve */
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

.modal-dialog {
    z-index: 1060 !important;
}

.modal-content {
    position: relative;
    z-index: 1070 !important;
}

footer {
    background: var(--dark-color);
    margin-top: auto;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: var(--primary-color) !important;
}

.alert {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-md);
}

.pagination .page-link {
    border-radius: 10px;
    margin: 0 5px;
    border: 2px solid #e5e7eb;
    color: var(--dark-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-1);
    border-color: transparent;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
}

.breadcrumb {
    background: transparent;
    padding: 1rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--primary-color);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
}

.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-left: none;
}

.list-group-item.active {
    background: var(--gradient-1);
    border-color: transparent;
}

.list-group-item {
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f3f4f6;
    transform: translateX(5px);
}

.bg-light {
    background-color: #f9fafb !important;
}

.text-muted {
    color: #6b7280 !important;
}

img.rounded {
    border-radius: 15px !important;
}

.shadow {
    box-shadow: var(--shadow-lg) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}