/* CSS Grid System berbasis variabel vlcolumn_number_per_row */
.product-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols-per-row, 3), 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef0f2;
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f7f7f7;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay Aksi Card seperti pada Gambar */
.card-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .card-actions {
    opacity: 1;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: none;
    background: rgba(46, 204, 113, 0.9);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #27ae60;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.product-title {
    font-size: 15px;
    font-weight: 400;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.product-sku {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 500;
}

/* Navigasi Paging */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 20px 0;
}

.page-btn {
    padding: 8px 14px;
    border: 1px solid #dcdde1;
    background: #fff;
    color: #555;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.page-btn.active {
    background: #2980b9;
    color: #fff;
    border-color: #2980b9;
}

.page-btn:disabled {
    background: #f5f6fa;
    color: #c8d6e5;
    cursor: not-allowed;
}

/* Responsivitas Mobile */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
}
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr !important;
    }
}