/* --- NOVO LAYOUT HOME PAGE --- */
.home-block-wrapper {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.home-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fdfdfd;
}

.home-block-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-block-subcats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.home-block-subcat-link {
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}

.home-block-subcat-link:hover {
    color: var(--orbe-laranja);
}

.home-block-body {
    display: flex;
    flex-wrap: wrap;
}

.home-block-main {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 1.5rem;
    border-right: 1px solid #e5e7eb;
}

@media(min-width: 992px) {
    .home-block-main {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

.home-block-sidebar {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 1.5rem;
    background: #fdfdfd;
}

@media(min-width: 992px) {
    .home-block-sidebar {
        flex: 0 0 25%;
        max-width: 25%;
        display: flex;
        flex-direction: column;
    }
}

.home-block-banner {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.home-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
}

.home-carousel-tabs {
    display: flex;
    gap: 20px;
}

.home-carousel-tab {
    font-size: 0.9rem;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    position: relative;
}

.home-carousel-tab.active {
    color: #111;
}

.home-carousel-tab.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--orbe-laranja);
}

.home-carousel-controls button {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.home-carousel-controls button:hover {
    background: #f3f4f6;
    color: #111;
}

.home-carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.home-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 15px;
}

.home-carousel-item {
    flex: 0 0 100%;
    max-width: 100%;
}

@media(min-width: 768px) {
    .home-carousel-item {
        flex: 0 0 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
    }
}

@media(min-width: 1200px) {
    .home-carousel-item {
        flex: 0 0 calc(25% - 11.25px);
        max-width: calc(25% - 11.25px);
    }
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
}

.sidebar-products {
    display: flex;
    flex-direction: column;
}

@media(min-width: 992px) {
    .sidebar-products {
        max-height: 674px;
        /* Limite reduzido para garantir que não estique a div principal */
        overflow-y: auto;
        padding-right: 5px;
        /* Hide scrollbar */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .sidebar-products::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }
}

/* --- BRAND MARQUEE (INFINITE LOOP) --- */
.brand-marquee-section {
    background: #fff;
}

.marquee-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    text-align: left;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 0;
    color: #111;
    text-transform: uppercase;
    font-size: 1.25rem;
}

.marquee-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--orbe-laranja);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee-scroll 60s linear infinite;
    align-items: center;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 60px;
    /* Consistência no espaçamento para loop infinito */
}

.marquee-item img {
    height: 70px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.marquee-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Com 4 sets, -50% é o ponto de reset perfeito (mostra 2 sets) */
    }
}

/* Ajustes Mobile */
@media (max-width: 768px) {
    .marquee-content {
        animation-duration: 20s;
        gap: 40px;
    }

    .marquee-item img {
        height: 70px;
        /* Aumentado */
        max-width: 120px;
    }

    .brand-marquee-section {
        padding: 2.5rem 0 !important;
    }

    .marquee-title {
        font-size: 1.1rem;
    }
}

/* --- SLIDER SUAVE & ZOOM --- */
#mainSlider .carousel-item {
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Brands Mobile Slider Smooth Transition */
#brandsMobileSlider .carousel-item {
    transition: transform 1.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

#brandsMobileSlider .carousel-item img {
    transition: transform 1.0s ease-in-out, opacity 1.0s ease-in-out;
    opacity: 0.7;
    transform: scale(0.96);
}

#brandsMobileSlider .carousel-item.active img {
    opacity: 1;
    transform: scale(1);
}

#mainSlider .carousel-item.active .hero-img {
    animation: smoothZoom 5s ease-out forwards;
}

@keyframes smoothZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* --- REVEAL ANIMATION --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- SLIDER OVERLAY --- */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
}

.slider-overlay-content {
    pointer-events: auto;
    padding-left: 6% !important;
}

.slider-title {
    font-size: 2.5rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-desc {
    font-size: 1.1rem;
    max-width: 500px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slider-btn-outline {
    border: 2px solid var(--orbe-laranja);
    color: white;
    background: transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.slider-btn-outline:hover {
    background: var(--orbe-laranja);
    color: white;
}

.home-slider-nav {
    width: 6%;
}

/* Ícones de navegação do slider (Ajuste Mobile) */
.home-slider-icon {
    padding: 1rem !important;
    /* Equivalente a p-3 */
}

@media (max-width: 768px) {
    .home-slider-icon {
        padding: 0 !important;
    }

    .carousel-control-prev .home-slider-icon {
        margin-left: 15px;
    }

    .carousel-control-next .home-slider-icon {
        margin-right: 15px;
    }
}

/* Vanilla CSS Keyframe Animations */
@keyframes sliderFadeIn {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes sliderZoomIn {
    from {
        opacity: 0;
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        opacity: 1;
        transform: scale(1);
        opacity: 1;
    }
}

.slider-animated {
    opacity: 0;
}

.carousel-item.active .slider-animated {
    animation: sliderFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.carousel-item.active .slider-animated.zoom {
    animation: sliderZoomIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Delays */
.delay-1 {
    animation-delay: 0.3s !important;
}

.delay-2 {
    animation-delay: 0.5s !important;
}

.delay-3 {
    animation-delay: 0.7s !important;
}

.delay-4 {
    animation-delay: 1.0s !important;
}

@media (max-width: 768px) {

    .slider-title {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        font-size: 1.3rem;
        margin-bottom: 0.3rem !important;
        /* Aproximado da linha */
        line-height: 1.2;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }

    .slider-desc {
        background: rgba(0, 0, 0, 0.2);
        /* Opacidade reduzida */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 12px 18px;
        border-radius: 12px;
        width: fit-content;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.3), 0 0 5px rgba(255, 255, 255, 0.05);
        /* Outer glow */
        font-size: 0.85rem;
        max-width: 100%;
        margin-bottom: 0.4rem !important;
        /* Mais próximo do botão */
        line-height: 1.3;
        margin-left: -5px;
    }

    .slider-btn-outline {
        background: rgba(0, 0, 0, 0.2) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        padding: 0.4rem 1rem !important;
        /* Botão menor */
        font-size: 0.7rem !important;
        /* Fonte menor */
        border: 2px solid var(--orbe-laranja) !important;
        border-radius: 12px !important;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2) !important;
    }

    .slider-overlay {
        background: transparent !important;
        /* Remove o gradiente geral no mobile */
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
        top: 0 !important;
    }

    .slider-overlay-content {
        padding-left: 35px !important;
        padding-right: 50px !important;
        text-align: left;
        width: 100% !important;
        max-width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }


    .slider-animated[style*="height: 4px"] {
        height: 2px !important;
        width: 30px !important;
        margin-bottom: 0.5rem !important;
    }
}

.slider-title-line {
    width: 60px;
    height: 4px;
    background-color: var(--orbe-laranja);
    border-radius: 2px;
}

.home-block-title-mobile-font {
    font-size: 1.1rem;
}

/* Mobile adjustments for Marcas Representadas */
@media (max-width: 768px) {
    .container.reveal.mb-5 {
        margin-bottom: 2rem !important;
        margin-top: 1rem !important;
    }

    #brandsMobileSlider {
        margin-bottom: -150px;
    }
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.8s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

.transition-hover {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.transition-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12) !important;
}