/* =================================
   Import Font
   ================================= */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Roboto:wght@400;500;700&display=swap');

/* =================================
   Root Variabel (Palet Warna Keren)
   ================================= */
:root {
    --bg-dark-primary: #121212;
    --bg-dark-secondary: #1e1e1e;
    --gold-primary: #ffd700;
    --gold-secondary: #ffae00;
    --text-primary: #e0e0e0;
    --text-white: #ffffff;
    --border-color: #333;
    --shadow-light: rgba(255, 215, 0, 0.1);
    --shadow-strong: rgba(255, 215, 0, 0.3);
}

/* =================================
   Reset dan base styles
   ================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none; 
}
a:hover, a:focus, a:active {
    text-decoration: none !important; 
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark-primary); 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.top-bar {
    display: flex; 
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.top-btn {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: #fff;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}
.top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

/* Banner Utama */
.main-banner {
    width: 100%;
    margin-bottom: 40px; 
    text-align: center;
    padding: 0 20px; 
}
.main-banner img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}
.main-banner img:hover {
    transform: scale(1.005);
}

/* Main Content */
.main-content {
    padding: 50px 0;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

/* Promo Highlight */
.promo-highlight {
    margin-bottom: 60px;
}
.promo-card-wrapper {
    display: flex;
    justify-content: center;
}
.promo-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px); 
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideIn 1.2s ease-out;
}
.promo-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}
.promo-image {
    width: 100%;
    height: 200px;
    object-fit: contain; /* FIX: Gambar promo tidak terpotong */
    border-radius: 15px;
    margin-bottom: 20px;
}
.promo-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.promo-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.promo-price-box {
    background: linear-gradient(45deg, #ff9ff3, #f368e0);
    padding: 10px 20px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 20px;
}
.price-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
}
.price-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
}
.btn-buy-now {
    background: linear-gradient(45deg, #48cae4, #023e8a);
    color: #fff;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 202, 228, 0.4);
}
.btn-buy-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(72, 202, 228, 0.6);
}

/* Other Promos */
.promo-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}
.promo-item {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px); 
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 350px;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1.5s ease-out;
}
.promo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}
.item-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
}
.item-details h3 { 
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.item-details p {
    font-size: 1rem;
    margin-bottom: 15px;
}
.item-price {
    background: linear-gradient(45deg, #ff9ff3, #f368e0);
    padding: 8px 15px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 15px;
}
.btn-item-buy {
    background: linear-gradient(45deg, #48cae4, #023e8a);
    color: #fff;
    padding: 12px 25px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 202, 228, 0.4);
}
.btn-item-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(72, 202, 228, 0.6);
}

/* Footer */
.main-footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========================================================
   KODE BARU: Styling Rating dan Review (Sesuai Gambar)
   ======================================================== */
.reviews-section {
    background: var(--bg-dark-secondary); 
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    border: 1px solid var(--border-color);
}
.reviews-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.reviews-title-container h2 {
    text-align: left;
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-white); 
    text-shadow: none;
}
.learn-more {
    color: var(--gold-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Rating Summary Top (4.5 and Breakdown) */
.ratings-summary {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}
.overall-rating {
    flex-shrink: 0;
    text-align: left;
}
.rating-value {
    font-size: 4.5rem; 
    font-weight: 700;
    line-height: 1;
    color: var(--text-white); 
}
.rating-count {
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: left;
}
.rating-breakdown {
    flex-grow: 1;
    min-width: 250px;
    padding-top: 10px; 
}
.rating-breakdown ul { list-style: none; padding: 0; }
.rating-breakdown li { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; font-size: 0.95rem; }
.star-label { color: var(--gold-primary); font-weight: 500; width: 30px; } 
.progress-bar-container { flex: 1; background: var(--border-color); border-radius: 5px; height: 10px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--gold-primary); border-radius: 5px; }
.bar-count { min-width: 40px; text-align: right; opacity: 0.7; }

/* Star Rating (SVG) - Menggunakan warna variabel untuk konsistensi */
.stars-container {
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23444' d='M8 0l2.4 4.8L16 5.6l-4 4 1 5.6L8 12.8l-5 2.4 1-5.6-4-4 5.6-.8L8 0z'/%3e%3c/svg%3e") repeat-x;
    background-size: 18px 18px;
    height: 18px;
    width: 90px;
    margin: 5px 0; 
    position: relative;
}
.stars-inner {
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23ffd700' d='M8 0l2.4 4.8L16 5.6l-4 4 1 5.6L8 12.8l-5 2.4 1-5.6-4-4 5.6-.8L8 0z'/%3e%3c/svg%3e") repeat-x;
    background-size: 18px 18px;
    height: 100%;
    width: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* Chart Persentase */
.percentage-charts {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 30px 0;
}
.chart-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-dark-primary);
    border: 5px solid var(--border-color); 
}
.chart-circle span {
    position: relative;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
}

/* Daftar Review */
.reviews-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.reviews-list-header h3 { font-size: 1.3rem; color: var(--text-white); text-transform: none; letter-spacing: 0; }
.reviews-list-header a { color: var(--gold-primary); font-size: 0.9rem; font-weight: 500; }

.review-card {
    background: transparent; 
    border: none;
    border-bottom: 1px solid var(--border-color); 
    border-radius: 0;
    padding: 15px 0;
    margin-bottom: 0;
    text-align: left;
}
.review-card .stars-container { margin: 0 0 5px 0; }
.review-meta { font-size: 0.85rem; opacity: 0.9; color: var(--text-primary); margin: 0; }
.review-card h4 { font-size: 1.2rem; font-weight: 700; color: var(--text-white); margin: 5px 0; text-align: left; }
.review-card p { font-size: 0.95rem; margin: 5px 0; }
.review-footer { font-size: 0.8rem; opacity: 0.7; border-top: none; padding-top: 0; margin-top: 5px; }


/* =================================
   Navigasi Bawah & Responsif
   ================================= */
/* KOREKSI: Bottom Nav dihapus dari HTML, jadi styling ini tidak berlaku */

@media (max-width: 768px) {
    body {
        /* KOREKSI: Hapus padding-bottom 60px karena bottom-nav sudah dihapus */
        padding-top: 70px;
        padding-bottom: 20px; /* Padding minimal di bawah footer */
    }
    .top-header { padding: 10px 15px; }
    .logo-link img { max-height: 40px; }
    .header-nav { display: none; }
    
    /* Layout Mobile */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .container {
        padding: 0 10px;
    }
    
    /* Rating Summary di Mobile */
    .ratings-summary { 
        flex-direction: column; 
        align-items: center; 
        gap: 30px;
        border-bottom: none;
    }
    .overall-rating { text-align: center; }
    .rating-count { text-align: center; }
    .stars-container { margin: 5px auto !important; }

    .rating-breakdown { min-width: 100%; }
    
    /* Charts di Mobile */
    .percentage-charts {
        flex-wrap: wrap; 
        padding: 20px 0; 
        gap: 15px;
        border-top: none;
        border-bottom: 1px solid var(--border-color);
    }
    .chart-item { width: 30%; }

    /* Promo Grid di Mobile */
    .promo-grid { grid-template-columns: 1fr; }
    .promo-card, .promo-card:hover { transform: none; box-shadow: 0 4px 15px rgba(0,0,0,0.2), 0 0 5px var(--shadow-light); }
    .promo-card img { height: 180px; }
    .promo-content h3 { font-size: 1.4rem; }
    
    .reviews-list-header { flex-direction: column; align-items: flex-start; gap: 5px; }
}