/* Produk Styles */
.produk-card a {
    text-decoration: none !important;
}

.produk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.produk-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 10px;
    padding-top: 15px;
}

.produk-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #005A42;
}

.produk-grid {
    display: flex;
    gap: 25px;
    padding: 10px;
    overflow-x: auto; /* Memungkinkan scroll horizontal */
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.produk-grid .produk-card {
    display: inline-block;
    width: 250px;
    flex-shrink: 0;
    white-space: normal;
}

.produk-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.produk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.produk-image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.produk-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.produk-card:hover .produk-image {
    transform: scale(1.05);
}

.produk-details {
    padding: 15px 20px 20px;
}

.btn-pesan {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-pesan:hover {
    background-color: #128C7E;
    transform: scale(1.03);
}

.produk-name {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.produk-price {
    color: #000000;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.stars {
    color: #f1c40f;
    font-size: 1rem;
    letter-spacing: 2px;
}

.no-products {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.2rem;
    padding: 40px 0;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    color: #3498db;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.page-item.active .page-link {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.page-link:hover {
    background-color: #f8f9fa;
}

.page-item.active .page-link:hover {
    background-color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    .produk-name {
        font-size: 1rem;
    }

    .produk-price {
        font-size: 1.1rem;
    }

    .produk-grid {
        overflow-x: auto; /* Memungkinkan scroll horizontal pada mobile */
        flex-wrap: nowrap;
        scrollbar-width: none; /* Untuk Firefox */
        -ms-overflow-style: none; /* Pastikan tetap dalam satu barisan */
    }
}

@media (max-width: 480px) {
    .produk-title {
        font-size: 1.8rem;
    }
    .produk-grid {
    overflow-x: auto; /* Memungkinkan scroll horizontal pada mobile */
    flex-wrap: nowrap;
    scrollbar-width: none; /* Untuk Firefox */
    -ms-overflow-style: none; /* Pastikan tetap dalam satu barisan */
    }
}

@media (max-width: 428px) {
    .produk-title {
        font-size: 1.6rem;
    }

    .produk-grid {
        gap: 15px;
        padding: 5px;
        scrollbar-width: none; /* Untuk Firefox */
        -ms-overflow-style: none;
    }

    .produk-image-container {
        height: 150px;
    }

    .produk-name {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .produk-price {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .produk-details {
        padding: 10px 15px;
    }

    .btn-pesan {
        padding: 5px 10px;
        font-size: 11px;
    }

    .stars {
        font-size: 0.9rem;
    }

    .pagination .page-link {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}
