/* ========== KATALOG STYLES ========== */

.katalog-header {
    background-color: #f8f8f8;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.katalog-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #222;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.katalog-header p {
    margin-top: 10px;
    color: #666;
    font-size: 1.1rem;
}

/* Navigasi Kategori */
.kategori-nav {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.kategori-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.kategori-nav a {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    text-decoration: none;
    color: #666;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
}

.kategori-nav a:hover,
.kategori-nav a.active {
    color: #222;
    background-color: #f0f0f0;
}

/* Konten Katalog */
.katalog-content {
    padding: 40px 0;
}

.no-produk {
    text-align: center;
    font-size: 1.2rem;
    color: #888;
}

/* ========== GRID PRODUK - RAPIH ========== */
.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.produk-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%; /* Penting: agar semua card tinggi sama */
}

/* Gambar Produk - Ukuran Tetap */
.produk-gambar {
    height: 200px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-shrink: 0; /* Jangan menyusut */
}

.produk-gambar img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.produk-card:hover .produk-gambar img {
    transform: scale(1.05);
}

.produk-gambar .placeholder {
    font-size: 4rem;
    color: #ddd;
    font-weight: bold;
}

/* Info Produk - Fleksibel */
.produk-info {
    padding: 20px;
    flex-grow: 1; /* Isi sisa ruang */
    display: flex;
    flex-direction: column;
}

.produk-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #222;
    margin: 0 0 12px 0;
    line-height: 1.3;
    min-height: 48px; /* Pastikan 2 baris */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 16px;
}

.specs span {
    background: #eee;
    color: #222;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 3px;
    white-space: nowrap;
}

/* Tombol Aksi - Selalu di Bawah */
.produk-actions {
    display: flex;
    gap: 10px;
    margin-top: auto; /* Dorong ke bawah */
}

.btn-detail,
.btn-beli {
    flex: 1;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-detail {
    background: #f0f0f0;
    color: #222;
}

.btn-beli {
    background: #222;
    color: white;
}

.btn-detail:hover {
    background: #e0e0e0;
}

.btn-beli:hover {
    background: #000;
    transform: translateY(-2px);
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    color: #222;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}

.page-link:hover,
.page-link.active {
    background: #222;
    color: white;
    border-color: #222;
}

/* ========== RESPONSIF ========== */
@media (max-width: 768px) {
    .katalog-header h1 {
        font-size: 2rem;
    }

    .produk-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
    }

    .produk-gambar {
        height: 160px;
    }

    .produk-info h3 {
        font-size: 1.1rem;
        min-height: 44px;
    }
}
/* ========== HARGA PRODUK ========== */
.harga-produk {
    font-family: 'Raleway', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #d80202;
    margin: 8px 0 15px;
    text-align: center;
}

@media (max-width: 480px) {
    .produk-grid {
        grid-template-columns: 1fr;
    }

    .produk-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-detail,
    .btn-beli {
        flex: none;
        padding: 10px 0;
    }
}.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ddd;
    font-weight: bold;
    background: #f5f5f5;
}
.specs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.specs span {
    background-color: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #333;
}

.ukuran-badge {
    background-color: #e0f7fa;
    color: #00796b;
    font-weight: 500;
}