/* --- Konfigurasi Dasar & Tema --- */
:root {
    --font-body: 'Poppins', sans-serif;
    --font-heading: 'Oxanium', cursive;
    --bg-gradient: linear-gradient(180deg, #10111a 0%, #1c1d2b 100%);
    --surface-color: rgba(43, 45, 61, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary-color: #00e1ff;
    --secondary-color: #f700ff;
    --text-light: #f0f1f5;
    --text-dark: #a0a4b9;
    --shadow-glow: 0 0 20px rgba(0, 225, 255, 0.2), 0 0 40px rgba(0, 255, 255, 0.1);
    --success-color: #2dc770;
}
/* Tema Terang (Light Mode) */
body.light-mode {
    --bg-gradient: linear-gradient(180deg, #f4f7fa 0%, #e8edf2 100%);
    --surface-color: #ffffff;
    --border-color: #e5e7eb;
    --text-light: #1f2937;
    --text-dark: #6b7280;
    --shadow-glow: 0 5px 20px rgba(0, 225, 255, 0.2);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg-gradient); color: var(--text-light); min-height: 100vh; transition: background 0.3s, color 0.3s; }
.container { padding: 0 5%; max-width: 1200px; margin: 0 auto; }
body { -webkit-user-select: none; -ms-user-select: none; user-select: none; }
.print-message { display: none; }
@media print { body > *:not(.print-message) { display: none !important; } .print-message { display: block !important; text-align: center; padding-top: 50px; color: black; } }

/* --- Notifikasi & Header --- */
.notification-wrapper { padding: 0 5%; margin: 20px auto 0 auto; max-width: 1200px; }
.notification-banner { display: flex; align-items: center; gap: 15px; background-color: var(--surface-color); border: 1px solid var(--border-color); color: var(--text-dark); padding: 10px 20px; font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; border-radius: 50px; backdrop-filter: blur(5px); }
.notification-banner i { color: var(--primary-color); font-size: 1.2rem; text-shadow: var(--shadow-glow); }
.notification-banner p { display: inline-block; padding-left: 100%; animation: marquee 30s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0%); } 100% { transform: translateX(-100%); } }
.main-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background-color: rgba(16, 17, 26, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
body.light-mode .main-header { background-color: rgba(255, 255, 255, 0.8); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .logo-image { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.logo h1 { font-family: var(--font-heading); font-size: 1.8rem; }
body.light-mode .logo h1 { color: var(--text-light); }
.logo h1 span { color: var(--primary-color); text-shadow: 0 0 5px var(--primary-color); }
.header-menu { position: relative; }
.menu-toggle-btn { background: none; border: 2px solid var(--border-color); color: var(--text-dark); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; transition: all 0.3s; }
.dropdown-menu { position: absolute; top: calc(100% + 15px); right: 0; background-color: var(--surface-color); border: 1px solid var(--border-color); border-radius: 12px; width: 220px; padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 5px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; }
.dropdown-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a, .dropdown-menu button { text-align: left; padding: 12px 15px; color: var(--text-dark); text-decoration: none; border-radius: 8px; transition: background-color 0.2s, color 0.2s; display: flex; align-items: center; gap: 10px; background: none; border: none; width: 100%; font-size: 1rem; font-family: var(--font-body); cursor: pointer; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background-color: rgba(0, 225, 255, 0.1); color: var(--primary-color); }
.dropdown-menu .theme-toggle-btn { width: 100%; border-radius: 8px; border: none; justify-content: flex-start; }

/* --- Promo, Section, & Search --- */
.promo-section { margin-top: 30px; }
.promo-slider { border-radius: 12px; aspect-ratio: 16 / 7; overflow: hidden; background-color: var(--surface-color); }
.promo-slider .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.product-section-wrapper { margin: 40px 0; }
.section-header { margin-bottom: 20px; }
.section-title { font-family: var(--font-heading); font-size: 2rem; color: var(--text-light); display: flex; align-items: center; gap: 12px; }
.section-title i { color: var(--primary-color); text-shadow: var(--shadow-glow); }
body.light-mode .section-title { color: var(--text-light); }
.search-section { margin-bottom: 40px; }
.search-bar { display: flex; align-items: center; gap: 15px; background-color: var(--surface-color); border: 1px solid var(--border-color); border-radius: 50px; padding: 10px 20px; backdrop-filter: blur(5px); transition: border-color 0.3s, box-shadow 0.3s; }
.search-bar:focus-within { border-color: var(--primary-color); box-shadow: var(--shadow-glow); }
.search-bar i { font-size: 1.2rem; color: var(--text-dark); }
.search-bar input { flex-grow: 1; background: none; border: none; outline: none; color: var(--text-light); font-family: var(--font-body); font-size: 1rem; }
.search-bar input::placeholder { color: var(--text-dark); }

/* --- Flash Sale (SATU BARIS BERGESER) - DIPERBAIKI --- */
.flash-sale-scroller { overflow: hidden; }
.flash-sale-track { display: flex; width: fit-content; animation: scroll-left 40s linear infinite; }
.flash-sale-track:hover { animation-play-state: paused; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.flash-sale-card-small { position: relative; display: flex; align-items: center; gap: 12px; background-color: var(--surface-color); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 15px; text-decoration: none; color: var(--text-light); width: 260px; margin: 0 7.5px; flex-shrink: 0; transition: transform 0.3s; }
.flash-sale-card-small:hover { transform: translateY(-3px); }
.flash-sale-card-small .logo-wrapper { width: 45px; height: 45px; border-radius: 10px; flex-shrink: 0; overflow: hidden; background-color: rgba(0,0,0,0.3); }
.flash-sale-card-small .logo-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.flash-sale-card-small h3 { font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flash-sale-card-small .flash-icon { position: absolute; top: -1px; right: -1px; background: var(--primary-color); color: #10111a; width: 28px; height: 28px; border-radius: 0 8px 0 8px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }

/* --- Main Product Grid (dengan "Lihat Lainnya") --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; }
.product-grid-container { position: relative; }
.product-grid-container.collapsed .product-grid { max-height: 720px; overflow: hidden; }
.product-card { position: relative; background-color: var(--surface-color); border: 1px solid var(--border-color); border-radius: 12px; text-decoration: none; color: var(--text-light); text-align: center; padding: 15px; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; overflow: hidden; backdrop-filter: blur(5px); }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-glow); border-color: var(--primary-color); }
.product-card .logo-wrapper { width: 100%; aspect-ratio: 1 / 1; margin-bottom: 15px; border-radius: 18%; overflow: hidden; background: rgba(0,0,0,0.2); }
.product-card .logo-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { font-size: 0.95rem; font-weight: 600; height: 40px; display: flex; align-items: center; justify-content: center; }
.popular-badge { position: absolute; top: 10px; right: 10px; background: var(--primary-color); color: #10111a; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 5px; }
.popular-badge i { margin-right: 4px; }
.fade-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 150px; background: linear-gradient(180deg, rgba(28, 29, 43, 0) 0%, #1c1d2b 100%); display: flex; justify-content: center; align-items: flex-end; padding-bottom: 20px; pointer-events: none; transition: opacity 0.3s, visibility 0.3s; opacity: 1; visibility: visible; }
body.light-mode .fade-overlay { background: linear-gradient(180deg, rgba(232, 237, 242, 0) 0%, #e8edf2 100%); }
.product-grid-container.expanded .fade-overlay { opacity: 0; visibility: hidden; }
#load-more-btn { font-family: var(--font-heading); background: var(--primary-color); color: #10111a; border: none; padding: 12px 30px; border-radius: 50px; font-size: 1rem; cursor: pointer; transition: transform 0.2s; pointer-events: all; display: flex; align-items: center; gap: 8px; }
#load-more-btn:hover { transform: scale(1.05); }

/* --- Kolom Rating & Komentar --- */
.reviews-container { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 992px) { .reviews-container { grid-template-columns: 1fr 1.5fr; } }
.review-form-card { background-color: var(--surface-color); padding: 30px; border-radius: 16px; border: 1px solid var(--border-color); align-self: flex-start; position: sticky; top: 100px; }
.review-form-card h3 { font-family: var(--font-heading); font-size: 1.5rem; }
.review-form-card p { color: var(--text-dark); margin: 5px 0 20px 0; }
.input-group { margin-bottom: 15px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.input-group input, .input-group textarea { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--border-color); background-color: var(--bg-gradient); color: var(--text-light); font-size: 1rem; }
.btn-submit-review { width: 100%; padding: 12px; margin-top: 10px; border-radius: 8px; background: var(--primary-color); color: #10111a; border: none; font-weight: 700; cursor: pointer; }
.rating-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.rating-stars input { display: none; }
.rating-stars label { color: #444; cursor: pointer; font-size: 1.8rem; transition: color 0.2s; }
body.light-mode .rating-stars label { color: #ccc; }
.rating-stars > input:checked ~ label, .rating-stars:not(:checked) > label:hover, .rating-stars:not(:checked) > label:hover ~ label { color: #ffc107; }
#reviews-list { display: flex; flex-direction: column; gap: 20px; }
.review-card { background-color: var(--surface-color); padding: 20px; border-radius: 12px; border-left: 4px solid var(--primary-color); }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; flex-wrap: wrap; }
.review-header .user { display: flex; flex-direction: column; }
.review-header .user-name { font-weight: 700; font-size: 1.1rem; }
.review-header .timestamp { font-size: 0.8rem; color: var(--text-dark); }
.review-card .stars { color: #ffc107; margin-bottom: 10px; }
.review-card .comment-text { color: var(--text-light); line-height: 1.6; word-wrap: break-word; }
.owner-reply { background: rgba(0, 225, 255, 0.05); border-top: 2px solid rgba(0, 225, 255, 0.2); margin-top: 20px; padding: 15px; border-radius: 8px; }
.owner-reply .reply-header { font-weight: 700; color: var(--primary-color); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.owner-reply .reply-text { color: var(--text-dark); font-style: italic; }
.reply-controls { margin-top: 15px; }
.reply-form { margin-top: 10px; display: flex; gap: 10px; }
.reply-form input { flex-grow: 1; }
.reply-form button { font-size: 0.9rem; padding: 8px 15px; background-color: var(--primary-color); color: #10111a; border: none; cursor: pointer; }

/* --- Detail Page & Loader --- */
.detail-container { min-height: 40vh; display: flex; justify-content: center; align-items: center; }
.detail-content { display: grid; grid-template-columns: 1fr; gap: 40px; background-color: var(--surface-color); padding: 30px; border-radius: 20px; margin-top: 30px; animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 992px) { .detail-content { grid-template-columns: 2fr 1.2fr; } }
.info-section img { width: 100px; height: 100px; border-radius: 25px; float: left; margin: 0 20px 10px 0; background-color: rgba(0,0,0,0.3); }
.info-section h2 { font-family: var(--font-heading); font-size: 2.2rem; }
.info-section p { color: var(--text-dark); margin-bottom: 25px; clear: both; }
.info-section h3 { margin-top: 20px; margin-bottom: 15px; border-left: 4px solid var(--primary-color); padding-left: 10px; }
#app-benefits { list-style: none; padding-left: 0; }
#app-benefits li { margin-bottom: 10px; padding-left: 25px; position: relative; }
#app-benefits li::before { content: '✓'; color: var(--success-color); position: absolute; left: 0; font-weight: bold; }
.price-section { background-color: var(--bg-gradient); padding: 30px; border-radius: 15px; border: 1px solid var(--border-color); }
#price-dropdown { width: 100%; padding: 15px; border-radius: 8px; border: 1px solid var(--border-color); background-color: var(--surface-color); color: var(--text-light); font-size: 1rem; margin-bottom: 25px; }
.total-price { display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; margin-bottom: 25px; padding-top: 20px; border-top: 1px dashed var(--border-color); }
#total-price-display { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--primary-color); text-shadow: var(--shadow-glow); }
.btn-whatsapp { display: flex; justify-content: center; align-items: center; gap: 10px; background: #25D366; color: #fff; padding: 15px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 1.1rem; border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.btn-whatsapp:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }

.loader-container { display: flex; justify-content: center; align-items: center; min-height: 200px; width: 100%; grid-column: 1 / -1; }
.loader { border: 4px solid var(--border-color); border-top: 4px solid var(--primary-color); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Footer (Kompleks) --- */
.site-footer { background-color: #10111a; border-top: 2px solid var(--primary-color); padding: 40px 0; margin-top: 60px; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.footer-column { flex: 1; min-width: 220px; }
.footer-column.about .logo { margin-bottom: 15px; }
.footer-column.about p { color: var(--text-dark); line-height: 1.7; font-size: 0.9rem; }
.footer-column h4 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 20px; color: var(--text-light); }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a { color: var(--text-dark); text-decoration: none; transition: color 0.3s, padding-left 0.3s; }
.footer-column ul li a:hover { color: var(--primary-color); padding-left: 5px; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { color: var(--text-dark); font-size: 1.5rem; transition: color 0.3s, transform 0.3s; }
.social-icons a:hover { color: var(--primary-color); transform: translateY(-3px); }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); color: var(--text-dark); font-size: 0.9rem; }


body {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standar */
}
.print-message {
    display: none; /* Sembunyikan secara default */
}
@media print {
    /* Sembunyikan semua kecuali pesan peringatan saat mencetak */
    body > *:not(.print-message) {
        display: none !important;
    }
    .print-message {
        display: block !important;
        text-align: center;
        padding-top: 50px;
    }
}
