.product-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 45px;
    margin-bottom: 18px;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.product-filter {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* custom select */
.custom-select {
    position: relative;
    width: 180px;
    user-select: none;
}

.custom-select .select-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 999px;

    background: #f9fafb; /* background bisa kamu ganti */
    border: 1px solid rgba(0, 0, 0, 0.08);

    font-size: 13px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;

    transition: 0.2s ease;
}

.custom-select .select-head:hover {
    border-color: rgba(0, 114, 255, 0.4);
}

.custom-select.active .select-head {
    background: #fff;
    border-color: rgba(0, 114, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(0, 114, 255, 0.15);
}

.custom-select .select-head i {
    font-size: 12px;
    transition: 0.2s ease;
}

.custom-select.active .select-head i {
    transform: rotate(180deg);
}

/* dropdown list */
.custom-select .select-list {
    position: absolute;
    top: 120%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);

    list-style: none;
    padding: 6px;
    margin: 0;

    display: none;
    z-index: 999;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.custom-select.active .select-list {
    display: block;
    animation: fadeDown 0.15s ease;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-select .select-list li {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s ease;
}

.custom-select .select-list li:hover {
    background: rgba(0, 114, 255, 0.08);
    color: #0072FF;
}

.custom-select .select-list li.active {
    background: #0072FF;
    color: #fff;
}

/* filter button */
.btn-filter {
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    background: #0072FF;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;

    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-filter:hover {
    background: #005ad1;
}

.btn-filter:active {
    transform: scale(0.97);
}

/* Grid Product */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 15px;
}

.product-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: 0.25s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

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

.product-image {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #f3f4f6;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: 0.25s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-body {
    padding: 14px;
}

.product-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #0072FF;
    background: rgba(0, 114, 255, 0.08);
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.product-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 10px;

    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-name:hover {
    color: #0072FF;
}

.product-price {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 14px;
}

.btn-detail {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: #0072FF;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 14px;
    transition: 0.2s ease;
}

.btn-detail:hover {
    background: #005ad1;
}



/* Empty product */
.empty-product {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 18px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.empty-product .empty-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    background: rgba(0, 114, 255, 0.10);

    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-product .empty-icon i {
    font-size: 28px;
    color: #0072FF;
}

.empty-product h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #111827;
}

.empty-product p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 18px;
    border-radius: 999px;

    background: #0072FF;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    transition: 0.2s ease;
}

.btn-back-home:hover {
    background: #005ad1;
}


/* Tablet ========================= */
@media(max-width:780px){
    .product-grid{
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile ======================= */
@media(max-width:580px){
    .product-grid{
        grid-template-columns: 1fr;
    }
    .product-card{
        margin-bottom: 1rem;
    }
    .product-topbar{
        margin-top: 6px;
    }
}