/* CORREÇÕES FINAIS - EFEITO HOVER PARA TODOS OS PRODUTOS */

:root {
    --cor-primaria: #4361ee;
    --cor-secundaria: #3a0ca3;
    --cor-desconto: #dc3545;
    --cor-texto: #2b2d42;
    --cor-texto-claro: #666;
    --cor-fundo: #f8f9fa;
    --cor-branco: #ffffff;
    --sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.08);
    --sombra-hover: 0 8px 20px rgba(0, 0, 0, 0.12);
    --transicao: all 0.3s ease;
}

/* BOTÃO BUSCAR (MANTIDO) */
.hero__search__form {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    position: relative !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    border: 2px solid #e9ecef !important;
}

.hero__search__form input {
    flex: 1 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    height: 48px !important;
    outline: none !important;
}

.hero__search__form button {
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria)) !important;
    border: none !important;
    border-radius: 0 !important;
    border-left: 2px solid #e9ecef !important;
    padding: 12px 24px !important;
    height: 48px !important;
    color: var(--cor-branco) !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: var(--transicao) !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.hero__search__form button:hover {
    opacity: 0.9 !important;
}

/* PRODUTOS COM DESCONTO - PREÇO VERMELHO E NEGRITO (MANTIDO) */
.product__discount__item__text .product__item__price {
    font-weight: 700 !important;
    color: var(--cor-desconto) !important;
}

.product__discount__item__text .product__item__price span {
    color: #6c757d !important;
    text-decoration: line-through !important;
    font-weight: 500 !important;
    margin-right: 8px !important;
}

/* PRODUTOS SEM DESCONTO - PREÇO PRETO NEGRITO (MANTIDO) */
.product__item__text h5,
.featured__item__text h5 {
    color: var(--cor-texto) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    margin-bottom: 0 !important;
}

/* EFEITO HOVER PARA TODOS OS PRODUTOS - COM E SEM DESCONTO */
.product__item,
.featured__item,
.product__discount__item {
    transition: var(--transicao) !important;
    overflow: hidden !important;
}

.product__item:hover,
.featured__item:hover,
.product__discount__item:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--sombra-hover) !important;
}

/* ANIMAÇÃO DAS IMAGENS PARA TODOS OS PRODUTOS */
.product__item__pic set-bg,
.featured__item__pic set-bg,
.product__discount__item__pic set-bg {
    transition: transform 0.5s ease !important;
}

.product__item:hover .product__item__pic set-bg,
.featured__item:hover .featured__item__pic set-bg,
.product__discount__item:hover .product__discount__item__pic set-bg {
    transform: scale(1.05) !important;
}

/* OVERLAY NAS IMAGENS PARA TODOS OS PRODUTOS */
.product__item__pic:after,
.featured__item__pic:after,
.product__discount__item__pic:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        transparent 50%, 
        rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: var(--transicao);
    pointer-events: none;
    z-index: 5;
}

.product__item:hover .product__item__pic:after,
.featured__item:hover .featured__item__pic:after,
.product__discount__item:hover .product__discount__item__pic:after {
    opacity: 1;
}

/* BOTÕES DE AÇÃO PARA TODOS OS PRODUTOS */
.product__item__pic__hover,
.featured__item__pic__hover,
.product__discount__item .product__item__pic__hover {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: absolute !important;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 20 !important;
    gap: 10px !important;
}

.product__item__pic__hover li a,
.featured__item__pic__hover li a {
    width: 42px !important;
    height: 42px !important;
    background: var(--cor-branco) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: var(--sombra-suave) !important;
    transition: var(--transicao) !important;
    border: 1px solid #f0f0f0 !important;
}

.product__item__pic__hover li a:hover,
.featured__item__pic__hover li a:hover {
    background: var(--cor-primaria) !important;
    transform: scale(1.1) !important;
    box-shadow: var(--sombra-hover) !important;
}

.product__item__pic__hover li a:hover i,
.featured__item__pic__hover li a:hover i {
    color: var(--cor-branco) !important;
}

/* CORES DOS TEXTOS PERMANECEM NO HOVER */
.product__item:hover .product__item__text h6,
.featured__item:hover .featured__item__text h6,
.product__discount__item:hover .product__discount__item__text h6 {
    color: var(--cor-texto) !important;
}

.product__item:hover .product__item__text h5,
.featured__item:hover .featured__item__text h5 {
    color: var(--cor-texto) !important; /* Mantém preto no hover */
}

.product__discount__item:hover .product__discount__item__text .product__item__price {
    color: var(--cor-desconto) !important; /* Mantém vermelho no hover */
}

/* SELEÇÃO DE CARACTERÍSTICAS - MOBILE FIRST */
.selecao-olho {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.selecao-olho h5 {
    color: #2b2d42;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 18px;
}

.opcoes-olho .form-check {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.opcoes-olho .form-check:hover {
    border-color: #4361ee;
}

.opcoes-olho .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.opcoes-olho .form-check-label {
    font-weight: 600;
    color: #2b2d42;
    margin-left: 10px;
}

.form-check-input:checked {
    background-color: #4361ee;
    border-color: #4361ee;
}

.form-check-input:checked ~ .form-check-label {
    color: #4361ee;
}

/* CONTAINER DE CARACTERÍSTICAS - MOBILE */
.secao-olho {
    background: white;
    border-radius: 12px;
    border: 2px solid #f1f3f4;
    margin-bottom: 20px;
}

.secao-olho h6 {
    color: #2b2d42;
    font-weight: 700;
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

/* SELECTS MOBILE-OPTIMIZED */
.secao-olho .form-control {
    height: 50px !important;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: white;
    transition: all 0.3s ease;
}

.secao-olho .form-control:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.secao-olho label {
    font-weight: 600;
    color: #2b2d42;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

/* BOTÃO MOBILE */
#btn-add-car {
    width: 100%;
    height: 55px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border: none;
    margin-top: 20px;
    transition: all 0.3s ease;
}

#btn-add-car:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

/* AVISO MOBILE */
#aviso-mesmo-grau {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    font-size: 14px;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .selecao-olho {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .selecao-olho h5 {
        font-size: 16px;
    }
    
    .opcoes-olho .form-check {
        padding: 12px;
    }
    
    .secao-olho {
        padding: 15px !important;
    }
    
    .secao-olho .row {
        margin: 0;
    }
    
    .secao-olho .col-md-4 {
        padding: 0;
        width: 100%;
        margin-bottom: 0;
    }
    
    .secao-olho .form-control {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .selecao-olho {
        padding: 12px;
    }
    
    .opcoes-olho .form-check-label {
        font-size: 14px;
    }
    
    .secao-olho h6 {
        font-size: 15px;
    }
}

/* ===== CORREÇÃO FORÇADA MOBILE - SOBRESCREVE TUDO ===== */
@media (max-width: 768px) {
    /* FORÇAR UMA COLUNA NO MOBILE */
    .secao-olho .row {
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .secao-olho .col-md-4,
    .secao-olho [class*="col-"] {
        width: 100% !important;
        float: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        flex: none !important;
    }
    
    /* FORÇAR TAMANHO DOS SELECTS NO MOBILE */
    .secao-olho .form-control {
        height: 55px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        padding: 12px 15px !important;
    }
    
    /* FORÇAR BOTÃO GRANDE NO MOBILE */
    #btn-add-car {
        height: 60px !important;
        font-size: 18px !important;
        border-radius: 12px !important;
        display: block !important;
        width: 100% !important;
        padding: 15px !important;
    }
    
    /* FORÇAR ESPAÇAMENTO NO MOBILE */
    .secao-olho {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
    }
    
    .selecao-olho {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
}

/* MOBILE MUITO PEQUENO */
@media (max-width: 480px) {
    .secao-olho .form-control {
        height: 50px !important;
        font-size: 16px !important;
    }
    
    #btn-add-car {
        height: 55px !important;
        font-size: 16px !important;
    }
}

/* ===== BOTÃO COMPRAR MODERNO ===== */
.comprar__btn__container {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.featured__item:hover .comprar__btn__container,
.product__discount__item:hover .comprar__btn__container {
    opacity: 1;
    transform: translateY(0);
}

.comprar__btn {
    display: inline-block;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
    border: none;
}

.comprar__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    color: white !important;
    text-decoration: none;
}

.comprar__btn i {
    margin-right: 8px;
}

/* MOBILE: Mostrar botão sempre */
@media (max-width: 768px) {
    .comprar__btn__container {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .comprar__btn {
        padding: 14px 20px;
        font-size: 13px;
    }
}

/* EFEITO HOVER NOS PRODUTOS */
.featured__item:hover .featured__item__pic,
.product__discount__item:hover .product__discount__item__pic {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

/* ===== CORREÇÃO BOTÃO COMPRAR VISÍVEL ===== */
.comprar__btn__container {
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: block !important;
    visibility: visible !important;
}

.comprar__btn {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* MOBILE: Botão sempre visível e maior */
@media (max-width: 768px) {
    .comprar__btn__container {
        opacity: 1 !important;
        transform: translateY(0) !important;
        bottom: 15px !important;
    }
    
    .comprar__btn {
        background: linear-gradient(135deg, #4361ee, #3a0ca3) !important;
        color: white !important;
        padding: 14px 20px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(67, 97, 238, 0.4) !important;
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* DESKTOP: Botão visível no hover mas com fundo mais suave */
@media (min-width: 769px) {
    .comprar__btn__container {
        opacity: 0.9 !important;
        transform: translateY(0) !important;
    }
    
    .featured__item:hover .comprar__btn__container,
    .product__discount__item:hover .comprar__btn__container,
    .product__item:hover .comprar__btn__container {
        opacity: 1 !important;
        transform: translateY(-5px) !important;
    }
}

/* ===== SLIDER DE BANNERS ===== */
.hero-slider.owl-carousel {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-slider__item {
    height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    margin: 0;
}

.hero-slider .owl-prev,
.hero-slider .owl-next {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-slider .owl-prev:hover,
.hero-slider .owl-next:hover {
    background: #7fad39 !important;
    color: #fff;
    transform: scale(1.1);
}

.hero-slider .owl-prev {
    left: 25px;
}

.hero-slider .owl-next {
    right: 25px;
}

.hero-slider .owl-dots {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
    margin: 0;
}

.hero-slider .owl-dot {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 50%;
    margin: 0 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-slider .owl-dot.active {
    background: #7fad39 !important;
    transform: scale(1.2);
    border-color: #fff;
}

.hero-slider .owl-dot:hover {
    background: #7fad39 !important;
}

/* Animações */
.hero-slider__item .hero__text {
    animation: slideFadeInUp 1s ease-out;
}

@keyframes slideFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo */
@media (max-width: 1200px) {
    .hero-slider__item {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .hero-slider__item {
        height: 400px;
        text-align: center;
    }
    
    .hero-slider .owl-prev,
    .hero-slider .owl-next {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    .hero-slider .owl-prev {
        left: 15px;
    }
    
    .hero-slider .owl-next {
        right: 15px;
    }
    
    .hero-slider .owl-dots {
        bottom: 15px;
    }
    
    .hero-slider .owl-dot {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .hero-slider__item {
        height: 350px;
    }
    
    .hero__text h2 {
        font-size: 1.8rem;
    }
    
    .hero__text p {
        font-size: 0.9rem;
    }
}