/* Estilos gerais */
.card-produto {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}
.card-produto:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.img-produto {
    height: 200px;
    object-fit: contain;
    padding: 10px;
}
.categoria-ativa {
    font-weight: bold;
    color: #0d6efd !important;
}

/* Estilos dos carrosséis */
.categoria-carrossel {
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.categoria-carrossel:last-child {
    border-bottom: none;
}
.categoria-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.categoria-titulo h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-left: 15px;
}
.categoria-titulo h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: #007bff;
    border-radius: 5px;
}
.categoria-titulo .btn-link {
    font-size: 1.1rem;
    text-decoration: none;
    color: #007bff;
    transition: all 0.3s;
}
.categoria-titulo .btn-link:hover {
    transform: translateX(5px);
    color: #0056b3;
}

/* Estilos do Swiper */
.swiper {
    padding: 20px 10px 40px 10px;
    margin: 0 -10px;
}
.swiper-slide {
    height: auto;
}
.swiper-button-prev,
.swiper-button-next {
    background-color: #007bff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}
.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 18px;
    font-weight: bold;
}
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
}
.swiper-pagination-bullet-active {
    background-color: #007bff;
    width: 25px;
    border-radius: 5px;
}

@media (max-width: 640px) {
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
    .categoria-titulo h2 {
        font-size: 1.4rem;
    }
}

/* Mensagem quando não há produtos */
.alert-info {
    border-radius: 10px;
    border: none;
    background: #f8f9fa;
    color: #666;
    padding: 20px;
    text-align: center;
}

/* ===== ESTILOS DO HEADER ===== */
.navbar-logo {
    width: 180px;
    height: auto;
}

.btn-search {
    background-color: #e42323;
    color: white;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-search:hover {
    background-color: #e42323;
    color: white;
}
.btn-search img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
}

.header-top {
    background-color: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

/* Desktop (>=992px) */
@media (min-width: 992px) {
    .desktop-layout {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        width: 100%;
    }
    .logo-link {
        flex-shrink: 0;
    }
    .search-form {
        flex-grow: 1;
        max-width: 500px;
    }
    .search-form .input-group {
        width: 100%;
    }
    .mobile-layout {
        display: none;
    }
}

/* Mobile (<992px) */
@media (max-width: 991.98px) {
    .desktop-layout {
        display: none;
    }
    .mobile-layout {
        display: block;
        width: 100%;
    }
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .search-toggle-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }
    .search-toggle-btn:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
    .search-mobile-container {
        display: none;
        margin-top: 1rem;
        animation: slideDown 0.3s ease;
    }
    .search-mobile-container.show {
        display: block;
    }
    .search-form-mobile {
        width: 100%;
    }
    .navbar-logo {
        width: 120px;
    }
}

/* Ajustes para telas pequenas */
@media (max-width: 768px) {
    .navbar-logo {
        width: 300px;
    }
    .form-control {
        font-size: 0.9rem;
    }
}

/* Efeito de foco */
.form-control:focus {
    border-color: #e42323;
    box-shadow: 0 0 0 0.2rem rgba(50, 205, 50, 0.25);
}

/* Animação */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}