﻿.category-sidebar {
    background-color: #ffffff;
    overflow: hidden;
    border: 1px solid #e7e7e7;
}

.category-sidebar-header {
    padding: 18px 20px;
    background-color: var(--bs-dark);
    color: #ffffff;
}

    .category-sidebar-header h4 {
        font-size: 1.15rem;
        font-weight: 600;
        text-transform: none;
    }

.category-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    color: #333333;
    border-left: 4px solid transparent;
    transition: all 0.2s ease-in-out;
}

    .category-menu-item:hover {
        padding-left: 23px;
        background-color: #f7f7f7;
        color: #333333;
        border-left-color: #7b8d42;
    }

    .category-menu-item.active {
        color: #ffffff;
        background-color: #7b8d42;
        border-color: #7b8d42;
    }

        .category-menu-item.active:hover {
            color: #ffffff;
            background-color: #6d7e39;
        }

.products-carousel .owl-stage {
    display: flex;
}

.products-carousel .owl-item {
    display: flex;
}

.products-carousel .item {
    width: 100%;
}

.produto-card-cipo {
    width: 100%;
}

.products-section {
    overflow: hidden;
}

.products-section-title {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 600;
    text-transform: none;
}

/* Menu lateral desktop */

.category-sidebar {
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #e4e7eb;
}

.category-sidebar-header {
    padding: 18px 20px;
    color: #ffffff;
    background-color: var(--brand-primary, #173f73);
}

.category-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 12px 16px;
    border-left: 4px solid transparent;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

    .category-menu-item:hover {
        padding-left: 20px;
        background-color: #f5f7f9;
        border-left-color: var(--brand-primary, #173f73);
    }

    .category-menu-item.active {
        color: #ffffff;
        background-color: var(--brand-primary, #173f73);
        border-color: var(--brand-primary, #173f73);
    }

/* Categorias no mobile */

.category-mobile {
    width: 100%;
    padding-bottom: 4px;
}

.category-mobile-scroll {
    display: flex;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .category-mobile-scroll::-webkit-scrollbar {
        display: none;
    }

.category-mobile-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    max-width: 220px;
    padding: 8px 16px;
    overflow: hidden;
    color: #495057;
    background-color: #ffffff;
    border: 1px solid #dfe3e7;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    scroll-snap-align: start;
    font-size: 0.88rem;
    font-weight: 500;
}

    .category-mobile-item:hover {
        color: var(--brand-primary, #173f73);
        border-color: var(--brand-primary, #173f73);
    }

    .category-mobile-item.active {
        color: #ffffff;
        background-color: var(--brand-primary, #173f73);
        border-color: var(--brand-primary, #173f73);
    }

.category-clear-mobile {
    color: #6c757d;
    font-size: 0.82rem;
    text-decoration: none;
}

/* Cabeçalho dos produtos */

.products-header {
    min-height: 54px;
}

/* Card */

.product-carousel-item {
    height: 100%;
    padding: 6px;
}

.produto-card-cipo {
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .produto-card-cipo:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(22, 34, 51, 0.12) !important;
    }

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.88;
    overflow: hidden;
    background-color: #f5f6f7;
}

.produto-img-cipo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.product-card-content {
    min-height: 190px;
}

.produto-titulo {
    min-height: 48px;
    margin: 0;
    color: #2b3036;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
}

.product-category-badge {
    display: inline-block;
    max-width: 100%;
    padding: 4px 10px;
    overflow: hidden;
    color: #66717d;
    background-color: #f0f2f4;
    border-radius: 999px;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .product-price small {
        color: #6c757d;
        font-size: 0.74rem;
    }

    .product-price strong {
        color: #198754;
        font-size: 1.2rem;
    }

.empty-products {
    padding: 50px 20px;
}

    .empty-products > i {
        display: block;
        margin-bottom: 14px;
        color: #adb5bd;
        font-size: 2.5rem;
    }

/* Owl Carousel */

.products-carousel .owl-stage {
    display: flex;
}

.products-carousel .owl-item {
    display: flex;
}

    .products-carousel .owl-item > .item {
        width: 100%;
    }

.products-carousel .owl-nav {
    margin-top: 14px;
}

    .products-carousel .owl-nav button.owl-prev,
    .products-carousel .owl-nav button.owl-next {
        width: 42px;
        height: 42px;
        margin: 0 5px;
        color: #ffffff !important;
        background-color: var(--brand-primary, #173f73) !important;
        border-radius: 50% !important;
        font-size: 1.5rem !important;
        line-height: 1 !important;
    }

.products-carousel .owl-dots {
    margin-top: 10px;
}

/* Tablet */

@media (min-width: 576px) and (max-width: 991.98px) {
    .product-carousel-item {
        padding: 8px;
    }

    .produto-titulo {
        font-size: 0.96rem;
    }
}

/* Celular */

@media (max-width: 575.98px) {
    .products-section {
        margin-top: 28px !important;
    }

    .products-section-title {
        margin-bottom: 22px !important;
        font-size: 1.65rem;
    }

    .products-header {
        min-height: auto;
        margin-bottom: 8px !important;
        padding: 0 4px;
    }

        .products-header h5 {
            font-size: 1rem;
        }

    .product-carousel-item {
        padding: 4px;
    }

    .produto-card-cipo {
        max-width: 380px;
        margin: 0 auto;
    }

    .product-image-wrapper {
        aspect-ratio: 1 / 0.82;
    }

    .produto-img-cipo {
        padding: 10px;
    }

    .produto-titulo {
        min-height: auto;
        font-size: 0.98rem;
    }

    .product-card-content {
        min-height: 180px;
    }

    .product-price strong {
        font-size: 1.15rem;
    }

    .products-carousel .owl-nav {
        display: flex;
        justify-content: center;
    }

    .products-carousel .owl-dots {
        margin-bottom: 4px;
    }
}