main {
    overflow-x: hidden;
}

.hero-pricelist {
    background: linear-gradient(var(--black-50), var(--black-50)), url('https://images.unsplash.com/photo-1620755749463-3e4b9f8430e3?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    padding: 6rem 0;
    color: var(--pure-white);
    text-align: center;
}

.hero-pricelist h1 {
    font-size: clamp(2.5rem, 1.5rem + 5vw, 4rem);
    text-shadow: 2px 2px 8px var(--gray-40);
    font-weight: 900;
}

.pricelist-controls {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
    border: 1px solid var(--gray-border);
}

#price-category-filters .filter-btn {
    border: 1px solid var(--light-indicator);
    background-color: var(--pure-white);
    color: var(--secondary-text);
    font-weight: 500;
    border-radius: 50px;
    padding: .6rem 1.5rem;
    transition: all .3s ease-in-out;
    margin: 4px;
}

#price-category-filters .filter-btn:hover {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--pure-white);
    box-shadow: var(--shadow-red-20);
}

#price-category-filters .filter-btn.active {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--pure-white);
    font-weight: 700;
    box-shadow: var(--shadow-red-30);
}

.pricelist-controls .input-group {
    box-shadow: var(--shadow-black-08);
    border-radius: .75rem;
}

.pricelist-controls .form-control,
.pricelist-controls .input-group-text {
    border: none;
    padding: .75rem 1rem;
}

.pricelist-controls .input-group-text {
    background-color: var(--pure-white);
    border-radius: .75rem 0 0 .75rem;
}

.pricelist-controls .form-control {
    border-radius: 0 .75rem .75rem 0;
}

.pricelist-controls .form-control:focus {
    box-shadow: 0 0 0 .25rem var(--brand-red-shadow);
}

.product-card {
    border: 1px solid var(--light-border);
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: var(--pure-white);
    box-shadow: var(--shadow-black-08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-black-15);
}

.product-card .card-body {
    padding: 1.25rem; 
}

.product-card .motor-name {
    font-weight: 700;
    color: var(--dark-text);
    font-size: clamp(1rem, 0.85rem + 0.5vw, 1.2rem); 
}

.product-card .motor-variant {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
}

.product-card .motor-price {
    font-weight: 700;
    color: var(--brand-red);
    margin-top: auto;
    margin-bottom: 1.5rem;
    font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem); 
}

.product-card .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.product-card .btn {
    width: 100%;
    font-weight: 600;
    padding: 0.5rem 0.25rem;
    font-size: clamp(0.8rem, 0.7rem + 0.4vw, 0.9rem); 
}

.category-header {
    width: 100%;
    padding: 0.75rem 0;
    background-color: var(--brand-red);
    color: var(--pure-white);
    text-align: center;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--gray-text);
}

/* REVISI BARU: Aturan khusus untuk layar tablet (768px - 992px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .product-card .motor-name {
        font-size: 1rem; /* Ukuran font spesifik untuk tablet */
    }

    .product-card .motor-variant {
        font-size: 0.8rem; /* Ukuran font spesifik untuk tablet */
    }

    .product-card .motor-price {
        font-size: 1.2rem; /* Ukuran font spesifik untuk tablet */
    }

    .product-card .btn {
        font-size: 0.8rem; /* Ukuran font spesifik untuk tablet */
    }
}

/* Aturan khusus untuk layar sangat kecil (di bawah 375px) */
@media (max-width: 375px) {
    .product-card .card-body {
        padding: 1rem; 
    }

    .product-card .motor-name {
        font-size: 0.9rem;
    }

    .product-card .motor-variant {
        font-size: 0.75rem;
    }

    .product-card .motor-price {
        font-size: 1.1rem;
    }

    .product-card .btn {
        font-size: 0.7rem;
    }
}