/* --- CSS Variables (Palet Warna) --- */
:root {
    --bg-color: #0a0a0a;
    --card-bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --pink-neon: #f500a8;
    --tosca-neon: #00f5d4;
    --red-neon: #ff1818;
    --font-primary: 'Poppins', sans-serif;
}

/* --- Global & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 110px; /* Memberi ruang untuk fixed header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Revisi Header --- */
header {
    position: fixed; /* Membuat header tetap di posisinya */
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color); /* Beri background agar tidak transparan */
    z-index: 1000; /* Memastikan header selalu di atas konten lain */
    padding: 15px 0;
    border-bottom: 1px solid #222;
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-logo {
    height: 60px; /* Atur ukuran logo Anda */
    width: auto;
}

.header-text {
    text-align: left;
}

header h1, header p {
    margin: 0;
    padding: 0;
    text-align: left;
}

header h1 {
    font-size: 2.5rem;
    color: var(--tosca-neon);
    text-shadow: 0 0 10px var(--tosca-neon);
    font-weight: 700;
}


footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid var(--card-bg-color);
    font-size: 0.9rem;
    color: #888;
}

/* --- Main Content & Section Title --- */
main {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--pink-neon);
    text-shadow: 0 0 8px rgba(245, 0, 168, 0.7);
}

/* --- Product Grid Layout (Responsive) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

/* --- Product Card Styling --- */
.product-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--tosca-neon);
    box-shadow: 0 10px 25px rgba(0, 245, 212, 0.2);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.product-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 20px;
}

.promo-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--tosca-neon);
    line-height: 1.2;
}

.original-price {
    font-size: 1rem;
    color: #888;
}

.btn-buy {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--pink-neon);
    color: var(--text-color);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    border: 2px solid var(--pink-neon);
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: auto; /* Mendorong tombol ke bawah */
    font-family: 'Poppins', sans-serif; /* Pastikan font sama */
    font-size: 1rem; /* Pastikan ukuran font sama */
}

.btn-buy:hover {
    background-color: transparent;
    color: var(--pink-neon);
}

.product-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.btn-view-desc {
    background: none;
    border: none;
    color: var(--tosca-neon);
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
    align-self: flex-start;
}

.product-description-short {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 15px;
    flex-grow: 1;
}

.countdown-timer {
   
    color: yellow;
    text-align: left;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background-color: var(--card-bg-color);
    padding: 30px;
    padding-top: 50px;
    border-radius: 10px;
    border: 1px solid var(--pink-neon);
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 25px rgba(245, 0, 168, 0.5);
    max-height: 85vh;
    overflow-y: auto;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
}

#modal-title {
    margin-top: 0;
    color: var(--tosca-neon);
}

.highlight-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--red-neon);
    color: white;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(255, 24, 24, 0.5);
    transform: rotate(15deg);
}

/* BARU: Gaya untuk tombol stok kosong */
.btn-buy.btn-disabled {
    background-color: #444;
    border-color: #555;
    color: #999;
    cursor: not-allowed;
}

.btn-buy.btn-disabled:hover {
    background-color: #444;
    color: #999;
}
/* Tambahkan ini di dalam tag <style> di checkout.php */
.summary-product-info .summary-price {
    font-size: 1.2rem;
    color: var(--tosca-neon);
    font-weight: 600;
    margin-top: 5px;
}

.btn-view-video {
    background: none;
    border: 1px solid var(--tosca-neon);
    color: var(--tosca-neon);
    cursor: pointer;
    padding: 4px 8px; /* Lebih kecil dari tombol utama */
    margin-top: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 5px;
    align-self: flex-start;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-view-video:hover {
    background-color: var(--tosca-neon);
    color: var(--bg-color);
}

.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none; /* Diubah oleh JS menjadi flex */
    justify-content: center;
    align-items: center;
    z-index: 2010; /* Di atas modal deskripsi */
}

.video-modal-content {
    background-color: var(--card-bg-color);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--tosca-neon);
    width: 90%;
    max-width: 800px;
    position: relative;
}

.video-modal-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--tosca-neon);
}

.video-modal-content video {
    width: 100%;
    max-height: 70vh;
    border-radius: 5px;
}