/* Layout */
.pc-wrapper {
    display: flex;
    gap: 30px;
}



/* Sidebar */
.pc-sidebar {
    width: 500px;
}

.pc-sidebar input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
}

.pc-category {
    list-style: none;
    padding: 0;
}

.pc-category li {
    cursor: pointer;
    padding: 8px 0;
    color: #444;
}

.pc-category li.active {
    font-weight: 600;
}

/* Product Grid */
.pc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Card */
.pc-card {
    border: 1px solid #eee;
    padding: 15px;
    transition: 0.2s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pc-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.pc-thumb {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.pc-thumb img {
    width: 100%;
    height: auto;
    height: 100%;
    object-fit: contain;
}

.pc-item h3 {
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 1;   /* maksimal 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc-card h3 {
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 1;   /* maksimal 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a {
    text-decoration: none;
}

/* Pagination */
.pc-pagination {
    margin-top: 30px;
    text-align: center;
}

.pc-page {
    display: inline-block;
    margin: 0 6px;
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid #ddd;
}

.pc-page.active {
    background: #000;
    color: #fff;
}

#carousel-gallery-preview {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

#carousel-gallery-preview li {
    position: relative;
    list-style: none;
}

#carousel-gallery-preview img {
    width: 80px;
    height: auto;
}

#carousel-gallery-preview .remove {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    background: #000;
    color: #fff;
    padding: 2px 6px;
}



/* Responsive */
@media (max-width: 1024px) {
    .pc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pc-wrapper {
        flex-direction: column;
    }

    .pc-sidebar {
        width: 100%;
    }
}
