.kategori-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}
.kategori-card:hover {
    background-color: #f5f5f5;
    border-color: #b3b3b3;
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.icon-kategori {
    background-color: #f9f9f9;
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    width: 60px;
    height: 60px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.icon-kategori i {
    color: #ffffff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}
.icon-kategori:hover {
    background-color: #e0e0e0;
    transform: scale(1.1);
}

.kategori-text {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    transition: color 0.3s ease;
}
.kategori-card:hover .kategori-text {
    color: #333;
}

.section-detail-produk {
    margin-top: 100px;
}

.section-product {
    margin-top: 120px;
}

.kategori-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.kategori-card:hover {
    background-color: #C2C2C2;
}

.icon-kategori {
    background-color: #f5efe5;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    width: 51px;
    height: 50px;
}

.kategori-text {
    text-align: left;
    white-space: normal;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-detail-produk {
    margin-top: 100px;
}

.kategori-galery {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.kategori-galery .row {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 15px;
    padding-bottom: 15px;
}

.kategori-galery .col-12.col-md-3 {
    flex: 0 0 auto;
    width: auto;
    min-width: 200px;
}

.card-product {
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.card-product .row-cols-1 {
    grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
    grid-gap: 1rem; 
}

@media (min-width: 185px) and (max-width: 768px) {
    .button-white-product {
        margin-bottom: 10px;
    }
}
.carousel-inner {
    border-radius: 20px;
}
.card-img-product {
    width: 100%;
    height: 300px;
}
.img-product {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
@media (max-width: 768px) {
    .kategori-card {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .icon-kategori {
        margin: 0 0 10px 0;
    }

    .kategori-text {
        font-size: 0.9rem;
    }
}
.list-group-item {
    padding: 10px;
    margin-bottom: 5px;
}

/* Styling untuk card category */
.list-group {
    border-radius: 12px;
    overflow: hidden;
}

.list-group-item {
    border: none;
    padding: 12px 15px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    border-radius: 8px !important;
    background: transparent;
}

.list-group-item a {
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #EFEFEF;
}

.list-group-item.active {
    background-color: #EFEFEF;
    border-left: 4px solid #1197d6;
}

.icon-kategori {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.icon-kategori i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.kategori-text {
    font-size: 15px;
    font-weight: 500;
    color: #444;
    transition: color 0.3s ease;
}

/* Search form styling */
.search-form {
    margin: 15px 0;
}

.search-form .input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-form .form-control {
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    font-size: 14px;
}

.search-form .btn {
    padding: 8px 15px;
    border: none;
    background: #f8f9fa;
    color: #666;
    transition: all 0.3s ease;
}

.search-form .btn:hover {
    background: #e9ecef;
    color: #333;
}

/* Responsive styling */
@media (max-width: 991.98px) {
    #categoryCollapse {
        position: absolute;
        width: 700px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .list-group-item {
        padding: 8px 12px;
        margin-bottom: 2px;
    }

    .icon-kategori {
        width: 38px;
        height: 38px;
        margin-right: 12px;
    }

    .kategori-text {
        font-size: 14px;
    }

    .search-form {
        margin: 10px;
    }
}

/* Desktop enhancements */
@media (min-width: 992px) {
    .kategori-produk {
        position: sticky;
    }

    .list-group-item:hover {
        transform: translateX(5px);
    }

    .list-group-item:hover .icon-kategori {
        transform: scale(1.1);
    }

    .list-group-item:hover .kategori-text {
        color: #1197d6;
    }
    .list-group-item.active .kategori-text {
        color: #1197d6;
    }

    .card.p-3 {
        border: none;
        transition: all 0.3s ease;
    }

    .card.p-3:hover {
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
}

.card-product {
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.1) 0px 0px 0px 1px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    #categoryCollapse {
        width: 515px;
    }

    .card-product {
        width: 100%;
    }

    .img-product {
        width: 100%;
    }

    .card-title-product {
        font-size: 16px !important;
        margin: 12px 0;
    }

    .text-berat {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .btn-product {
        display: flex;
        flex-direction: column !important;
        gap: 10px;
    }

    .button-white-product {
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        flex: 1;
    }

    .button-blue {
        flex: 1;
    }

    .title-section h1 {
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .row-cols-1 {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (min-width: 575px) and (max-width: 768px) {
    .card-img-product {
        height: 100%;
    }
}

@media (max-width: 575px) {
    .card-img-product {
        height: 100%;
    }

    .section-product {
        margin-inline: 40px;
    }
}

    .card-product:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

.list-group-container {
    max-height: 400px; 
    overflow-y: auto;
    padding-right: 5px;
}

.list-group-container::-webkit-scrollbar {
    width: 6px;
}

.list-group-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.list-group-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.list-group-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
.category-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    padding-bottom: 10px;
}
.card-product {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .section-kategori-product {
        position: relative;
        z-index: 1; 
    }

    .btn-download {
        padding: 8px 16px;
        font-size: 13px;
        width: auto;
        min-width: 180px;
    }

    .btn-download i {
        font-size: 13px;
    }
}
@media (max-width: 575px) {
    #categoryCollapse {
        width: 250px;
    }
}
.download-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.btn-download {
    background-color: #1197D6;
    color: white;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-download i {
    font-size: 14px;
}

.btn-download:hover {
    background-color: white;
    color: #1197D6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
@media (min-width: 501px) and (max-width: 575px) {
    .card-product {
        width: 100%;
    }

    .card-img-product {
        height: auto;
        aspect-ratio: 1/1;
    }

    .section-product {
        margin-inline: 15px;
    }
    @media (min-width: 575px) {
        .card-product {
            width: 100%;
        }
    
        .card-img-product {
            height: auto;
            aspect-ratio: 1/1;
        }
    
        .section-product {
            margin-inline: 15px;
        }
    }
}
