/* Product Filter Section */
.product-filter {
    padding: 40px 0 20px;
    background: #f8f9fa;
}

/* Tab Kategori Styling */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.category-tab {
    padding: 12px 24px;
    margin: 0 5px 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-tab:hover {
    background: #e9ecef;
}

.category-tab.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Product Grid Styling */
.product-grid {
    padding: 40px 0;
}

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-image-container {
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 15px;
}

.product-image {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    min-height: 40px;
    color: #2c3e50;
}

.product-features {
    flex: 1;
    margin-bottom: 15px;
}

.product-features li {
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.4;
    color: #666;
}

.price-text {
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 15px;
}

.btn-action-group {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-rent {
    flex: 1;
    background: #3498db;
    border: none;
    padding: 10px;
    font-weight: 500;
}

.btn-buy {
    flex: 1;
    background: #2ecc71;
    border: none;
    padding: 10px;
    font-weight: 500;
}

/* Class untuk produk yang akan difilter */
.product-item {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-tab {
        padding: 8px 16px;
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .btn-action-group {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .category-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .category-tab {
        white-space: nowrap;
        margin: 0 5px;
    }
    
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
