/* ========================================
   MANGAI DISTRIBUIDORA - ESTILOS PRINCIPAIS
   ======================================== */

/* Cores baseadas na logo */
:root {
    --verde-principal: #1e6b4e;
    --verde-claro: #7cb342;
    --laranja: #f59e0b;
    --laranja-claro: #fbbf24;
    --branco: #ffffff;
    --cinza-claro: #f5f5f5;
    --cinza: #6b7280;
    --cinza-escuro: #374151;
    --preto: #1f2937;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--preto);
    background-color: var(--branco);
}

/* Navbar */
.navbar-custom {
    background: linear-gradient(135deg, var(--verde-principal) 0%, var(--verde-claro) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-custom .navbar-brand img {
    height: 60px;
}

.navbar-custom .nav-link {
    color: var(--branco) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.navbar-custom .nav-link:hover {
    color: var(--laranja-claro) !important;
    transform: translateY(-2px);
}

.navbar-custom .btn-login {
    background-color: var(--laranja);
    color: var(--branco);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.navbar-custom .btn-login:hover {
    background-color: var(--laranja-claro);
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--verde-principal) 0%, var(--verde-claro) 100%);
    color: var(--branco);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-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 1440 320"><path fill="%23ffffff10" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-section .btn-cta {
    background-color: var(--laranja);
    color: var(--branco);
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.hero-section .btn-cta:hover {
    background-color: var(--laranja-claro);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Search Bar */
.search-section {
    background-color: var(--cinza-claro);
    padding: 40px 0;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--verde-claro);
    border-radius: 50px;
    font-size: 1rem;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--verde-principal);
    border: none;
    color: var(--branco);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box button:hover {
    background-color: var(--verde-claro);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--branco);
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s;
    background: var(--branco);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-claro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--branco);
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background-color: var(--cinza-claro);
}

.product-card {
    background: var(--branco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

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

.product-image {
    height: 200px;
    background-color: var(--cinza-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--cinza);
}

.product-info {
    padding: 20px;
}

.product-info h5 {
    color: var(--verde-principal);
    margin-bottom: 10px;
}

.product-price {
    color: var(--laranja);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--branco);
}

.contact-info-card {
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-claro));
    color: var(--branco);
    padding: 30px;
    border-radius: 15px;
    height: 100%;
}

.contact-info-card i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--laranja-claro);
}

.contact-form input,
.contact-form textarea {
    border: 2px solid var(--cinza-claro);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--verde-claro);
    box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.1);
    outline: none;
}

.contact-form .btn-submit {
    background: linear-gradient(135deg, var(--laranja), var(--laranja-claro));
    color: var(--branco);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-form .btn-submit:hover {
    transform: scale(1.05);
}

/* Login/Register Forms */
.auth-section {
    padding: 80px 0;
    background-color: var(--cinza-claro);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.auth-card {
    background: var(--branco);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-card h3 {
    color: var(--verde-principal);
    margin-bottom: 30px;
    text-align: center;
}

.auth-form input {
    border: 2px solid var(--cinza-claro);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
}

.auth-form input:focus {
    border-color: var(--verde-claro);
    box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.1);
    outline: none;
}

.auth-form .btn-auth {
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-claro));
    color: var(--branco);
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-form .btn-auth:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(30, 107, 78, 0.3);
}

.auth-link {
    color: var(--verde-principal);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    color: var(--laranja);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--verde-principal) 0%, #0d4a35 100%);
    color: var(--branco);
    padding: 50px 0 20px;
}

.footer h5 {
    color: var(--laranja-claro);
    margin-bottom: 20px;
}

.footer a {
    color: var(--branco);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--laranja-claro);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-claro));
    color: var(--branco);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(30, 107, 78, 0.3);
}

.btn-secondary-custom {
    background: linear-gradient(135deg, var(--laranja), var(--laranja-claro));
    color: var(--branco);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary-custom:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

/* Utilities */
.section-title {
    color: var(--verde-principal);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--cinza);
    font-size: 1.1rem;
}

/* ========================================
   HERO BANNER - MANGAI DISTRIBUIDORA
   ======================================== */
.hero-banner {
    position: relative;
    height: 600px;
    background-image: url('https://images.unsplash.com/photo-1610832958506-aa56368176cf?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 107, 78, 0.7) 0%, rgba(124, 179, 66, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

/* Ícone do Banner */
.hero-icon-container {
    margin-bottom: 20px;
}

.hero-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

/* Botões do Banner */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.6);
    color: white;
    filter: brightness(1.1);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-btn-secondary:hover {
    background: white;
    color: var(--verde-principal);
    border-color: white;
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-icons span {
    display: inline-block;
    margin: 0 10px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.hero-title {
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-info {
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.8s both;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-banner {
        height: 500px;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .hero-info {
        font-size: 0.9rem !important;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 10px auto !important;
        width: 80%;
    }
    
    .hero-icons {
        font-size: 2rem !important;
    }
}

/* ========================================
   ANIMAÇÕES
   ======================================== */
@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);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   BADGE DE PROMOÇÃO
   ======================================== */
.badge-promocao {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.4);
}

.badge-estoque-baixo {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ffa502, #ff6348);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 10;
}

/* ========================================
   CARDS DE PRODUTOS MELHORADOS
   ======================================== */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.product-card:hover::before {
    left: 100%;
}

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

.product-image {
    transition: transform 0.5s ease;
    position: relative;
    overflow: hidden;
}

.product-card .btn-primary-custom {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .btn-primary-custom {
    transform: translateY(0);
    opacity: 1;
}

/* ========================================
   FEATURE CARDS MELHORADOS
   ======================================== */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--verde-principal), var(--laranja));
    transition: width 0.3s ease;
}

.feature-card:hover::after {
    width: 100%;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

.feature-icon {
    transition: transform 0.6s ease;
}

/* ========================================
   SEÇÃO DE PROMOÇÕES
   ======================================== */
.promo-section {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.promo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulse 4s infinite;
}

.promo-badge {
    display: inline-block;
    background: white;
    color: #ee5a24;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

/* ========================================
   BOTÃO VOLTAR AO TOPO
   ======================================== */
.btn-back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-claro));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.btn-back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .navbar-custom .navbar-brand img {
        height: 40px;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-item {
        height: 350px;
    }
    
    .product-card .btn-primary-custom {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Filtros - Garantir que funcionem corretamente */
.card .form-select,
.card .form-control {
    cursor: pointer;
}

.card .btn[type="submit"] {
    cursor: pointer;
    pointer-events: auto !important;
}

/* Garantir que selects sejam clicáveis */
select.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

/* Remover setas duplicadas do Firefox */
select.form-select::-ms-expand {
    display: none;
}

/* ========================================
   CARRINHO DE COMPRAS
   ======================================== */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.cart-btn {
    position: relative;
}

/* Toast Notification do Carrinho */
.cart-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-claro));
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.cart-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cart-toast i {
    margin-right: 8px;
}

/* Página do Carrinho */
.cart-section {
    padding: 60px 0;
    min-height: 60vh;
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--cinza-claro);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--cinza);
    overflow: hidden;
}

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

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

.quantity-control button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--verde-principal);
    background: white;
    color: var(--verde-principal);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-control button:hover {
    background: var(--verde-principal);
    color: white;
}

.quantity-control input {
    width: 60px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    font-weight: 600;
}

.cart-summary {
    background: var(--cinza-claro);
    border-radius: 15px;
    padding: 30px;
}

.cart-summary h4 {
    color: var(--verde-principal);
    margin-bottom: 20px;
}

.cart-summary .total-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--laranja);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-whatsapp:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-clear-cart {
    background: #ff4757;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-clear-cart:hover {
    background: #ff3344;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 6rem;
    color: var(--cinza-claro);
    margin-bottom: 20px;
}
