/* Mengunci font dan warna agar terlihat jelas */
.dg-product-container { max-width: 1200px; margin: 0 auto; font-family: 'Segoe UI', Arial, sans-serif; box-sizing: border-box; }

/* Desain Tombol Tab (Diperbarui agar bisa digeser di HP) */
.dg-tab-menu { 
    display: flex; 
    flex-wrap: nowrap; /* Mencegah turun baris */
    overflow-x: auto; /* Mengaktifkan scroll horizontal */
    justify-content: flex-start; /* Berubah dari center agar pas di-scroll */
    gap: 12px; 
    margin-bottom: 30px; 
    padding-bottom: 10px; /* Ruang untuk bayangan/scrollbar */
    -webkit-overflow-scrolling: touch; /* Efek geser halus di iOS */
    scrollbar-width: none; /* Menyembunyikan scrollbar di Firefox */
}
.dg-tab-menu::-webkit-scrollbar { display: none; } /* Menyembunyikan scrollbar di Chrome/Safari */

/* Desain Tombol */
.dg-tab-btn { 
    flex: 0 0 auto; /* Tombol tidak boleh menyusut, ukuran fix */
    background: #fff; 
    border: 2px solid #e67e22; 
    color: #e67e22 !important; 
    padding: 10px 20px; 
    border-radius: 30px; 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 15px !important; 
    transition: all 0.3s ease; 
    opacity: 1 !important; 
    visibility: visible !important; 
    line-height: 1.2 !important; 
    box-shadow: none; /* Hapus bayangan default */
}
.dg-tab-btn:hover { background: #fff4ea; }

/* Tombol Aktif (Diperbaiki agar bayangan ikut pindah) */
.dg-tab-btn.active-btn { 
    background: #e67e22 !important; 
    color: #fff !important; 
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4); 
    border-color: #e67e22;
    transform: translateY(-2px); /* Sedikit naik saat aktif */
}

/* Layout Kiri (Banner) & Kanan (Menu) */
.dg-content-wrapper { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.dg-left-banner { flex: 1 1 300px; position: relative; border-radius: 15px; overflow: hidden; min-height: 350px; display: flex; align-items: center; justify-content: center; text-align: center; }
.bg-banner { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.banner-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); z-index: 2; }
.banner-content { position: relative; z-index: 3; color: #fff !important; padding: 20px; }
.banner-content h3 { color: #fff !important; font-size: 22px !important; margin-bottom: 20px; line-height: 1.4 !important; font-weight: bold; }
.dg-discount-badge { display: inline-block; background: #e67e22; padding: 10px 25px; border-radius: 10px; font-weight: bold; box-shadow: 0 4px 15px rgba(230,126,34,0.5); }
.dg-discount-badge .pct { font-size: 28px !important; margin: 0 !important; color: #fff !important; line-height: 1 !important;}
.dg-discount-badge .txt { font-size: 16px !important; margin: 0 !important; color: #fff !important; letter-spacing: 2px;}

/* Layout Kartu Menu */
.dg-right-content { flex: 2 1 600px; }
.dg-tab-content { display: none; animation: fadeInTab 0.4s ease-out; }
.dg-tab-content.active-tab { display: block; }
@keyframes fadeInTab { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.dg-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.dg-card { background: #fff !important; border: 1px solid #eaeaea; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; display: flex; flex-direction: column; }
.dg-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(230,126,34,0.15); border-color: rgba(230,126,34,0.3); }
.dg-card-img { position: relative; height: 200px; width: 100%; background: #f9f9f9; }
.dg-card-img img { width: 100%; height: 100%; object-fit: cover; }
.dg-disc-tag { position: absolute; top: 10px; right: 10px; background: #e74c3c; color: white !important; font-size: 12px !important; font-weight: bold; padding: 5px 12px; border-radius: 20px; z-index: 2; letter-spacing: 0.5px; }

/* Tipografi Teks Dalam Kartu */
.dg-card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; text-align: left; }
.dg-cat { color: #e67e22 !important; font-size: 12px !important; font-weight: 800; text-transform: uppercase; margin: 0 0 8px 0 !important; letter-spacing: 1px; }
.dg-title { font-size: 18px !important; color: #222 !important; margin: 0 0 15px 0 !important; font-weight: 700; line-height: 1.3 !important; }
.dg-list { list-style: none !important; padding: 0 !important; margin: 0 0 20px 0 !important; font-size: 13.5px !important; color: #555 !important; flex-grow: 1; }
.dg-list li { margin-bottom: 6px !important; display: flex; align-items: flex-start; line-height: 1.4 !important; color: #555 !important;}
.dg-list li::before { content: "✔"; color: #27ae60; font-weight: bold; margin-right: 8px; font-size: 12px; margin-top: 2px; }
.dg-price { font-size: 18px !important; font-weight: 900 !important; color: #d35400 !important; margin: 0 !important; border-top: 1px dashed #eee; padding-top: 15px; }

/* Responsif HP */
@media (min-width: 769px) {
    .dg-tab-menu { justify-content: center; } /* Rata tengah hanya di desktop */
}
@media (max-width: 768px) {
    .dg-content-wrapper { flex-direction: column; }
    .dg-left-banner, .dg-right-content { flex: 1 1 100%; }
    .dg-left-banner { min-height: 250px; }
    /* Tombol tidak disusutkan di HP agar bisa digeser */
    .dg-tab-btn { padding: 10px 16px; font-size: 13.5px !important; }
}