
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
   
    --bg-body: #030014;       
    --bg-card: rgba(13, 13, 25, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --primary: #F000FF;      
    --primary-dim: rgba(240, 0, 255, 0.1);
    --secondary: #00F0FF;     
    
    --text-main: #FFFFFF;
    --text-muted: #94a3b8;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    --radius: 16px;
    --radius-sm: 8px;
    
    --glow-primary: 0 0 20px rgba(240, 0, 255, 0.3);
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    font-size: 14px;
    min-height: 100vh;
    overflow-x: hidden;
    
    /* BACKGROUND MEWAH (AURORA EFFECT) */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(240, 0, 255, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==================================================================
   2. COMPONENTS UI (BUTTONS & CARDS)
   ================================================================== */

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, #b000cc 100%);
    color: white; border: none;
    padding: 12px 28px; border-radius: 10px;
    font-weight: 700; font-size: 14px; letter-spacing: 0.5px;
    cursor: pointer; position: relative; overflow: hidden;
    box-shadow: 0 4px 15px rgba(240, 0, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    box-shadow: 0 8px 25px rgba(240, 0, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent; border: 1px solid var(--border);
    color: var(--text-muted); padding: 12px 28px; border-radius: 10px;
    font-weight: 600; cursor: pointer; transition: 0.3s;
}
.btn-outline:hover {
    border-color: var(--text-main); color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

/* CARDS (GLASSMORPHISM V2) */
.card, .feature-card, .card-product, .card-cat {
    background: var(--bg-card);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

/* INPUTS */
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
input, select, textarea {
    width: 100%; padding: 14px 16px; 
    background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border);
    color: white; border-radius: var(--radius-sm);
    font-family: inherit; font-size: 14px; transition: 0.3s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(240, 0, 255, 0.1);
    background: rgba(0,0,0,0.5);
}

/* ==================================================================
   3. NAVBAR (FLOATING GLASS)
   ================================================================== */
.navbar {
    position: sticky; top: 0; z-index: 999;
    background: rgba(3, 0, 20, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    font-size: 22px; font-weight: 800; color: white; 
    letter-spacing: -1px; display: flex; align-items: center; gap: 8px;
}
.logo span { 
    color: transparent; 
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text; background-clip: text;
}

.nav-menu { display: flex; gap: 30px; background: rgba(255,255,255,0.03); padding: 8px 25px; border-radius: 50px; border: 1px solid var(--border); }
.nav-menu a { color: var(--text-muted); font-size: 14px; font-weight: 500; position: relative; }
.nav-menu a:hover, .nav-menu a.active { color: white; }
.nav-menu a.active::after {
    content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; background: var(--primary); border-radius: 50%;
}

/* ==================================================================
   4. HERO SECTION (BIG BOLD)
   ================================================================== */
.hero { padding: 100px 0 60px; display: flex; align-items: center; gap: 50px; }
.hero-content { flex: 1; }

.hero h1 { 
    font-size: 3.8rem; line-height: 1.1; margin-bottom: 25px; font-weight: 800; 
    letter-spacing: -1px;
}
.hero h1 span { color: var(--primary); text-shadow: 0 0 30px rgba(240, 0, 255, 0.3); }

.hero p { 
    color: var(--text-muted); font-size: 1.2rem; margin-bottom: 35px; 
    max-width: 550px; line-height: 1.7;
}

/* Image with Glow Behind */
.hero-img { 
    flex: 1; position: relative; display: flex; justify-content: center;
}
.hero-img::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 300px; height: 300px; background: var(--primary);
    filter: blur(100px); opacity: 0.3; z-index: -1;
}
.hero-img img { 
    max-width: 450px; 
    animation: float 6s ease-in-out infinite; 
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* ==================================================================
   5. FEATURE CARDS
   ================================================================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 80px; }
.feature-card {
    padding: 25px; display: flex; align-items: center; gap: 20px;
    transition: 0.3s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.feature-icon {
    width: 50px; height: 50px; background: linear-gradient(135deg, #1e1e24, #111);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 20px; border: 1px solid var(--border);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ==================================================================
   6. PRODUCT GRID & CARDS
   ================================================================== */
.section-title { margin-bottom: 30px; display: flex; justify-content: space-between; align-items: flex-end; }
.section-title h2 { font-size: 28px; font-weight: 700; margin: 0; }
.section-title span { color: var(--primary); }

.grid-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 25px; }

/* Kategori Pills */
.card-cat {
    padding: 20px; text-align: center; cursor: pointer; transition: 0.3s;
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(255,255,255,0.02) 100%);
}
.card-cat:hover { 
    border-color: var(--primary); 
    box-shadow: 0 0 20px rgba(240, 0, 255, 0.15) inset;
    transform: translateY(-3px);
}
.card-cat i { font-size: 28px; margin-bottom: 15px; color: var(--text-muted); transition: 0.3s; }
.card-cat:hover i { color: var(--primary); transform: scale(1.1); }
.card-cat h4 { color: white; margin: 0; font-size: 15px; }

/* Product Card */
.card-product {
    display: flex; flex-direction: column; overflow: hidden; position: relative;
    transition: all 0.3s ease; height: 70%; border: 1px solid var(--border);
}
.card-product:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.card-product::after {
    content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg); transition: 0.5s; z-index: 1; pointer-events: none;
}
.card-product:hover::after { left: 150%; }

.card-product-home {
    display: flex; flex-direction: column; overflow: hidden; position: relative;
    transition: all 0.3s ease; height: 100%; border: 1px solid var(--border);
}
.card-product-home:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.card-product-home::after {
    content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg); transition: 0.5s; z-index: 1; pointer-events: none;
}
.card-product-home:hover::after { left: 150%; }

.cp-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #0a0a0c; border-bottom: 1px solid var(--border); }
.cp-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.cp-cat { 
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    color: var(--secondary); margin-bottom: 8px;
}
.cp-title { font-size: 15px; font-weight: 600; color: white; margin-bottom: 12px; line-height: 1.4; }
.cp-price { 
    font-size: 18px; font-weight: 700; color: var(--primary); 
    text-shadow: 0 0 15px rgba(240, 0, 255, 0.2); margin-top: auto;
}

/* ==================================================================
   7. UTILS & LAYOUT
   ================================================================== */
.grid-split { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }

/* ==================================================================
   8. ADMIN SIDEBAR OVERRIDES
   ================================================================== */
.admin-wrapper { display: flex; }
.admin-sidebar {
    width: 260px; background: #050507; border-right: 1px solid var(--border);
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 100;
}
.sidebar-brand {
    height: 70px; display: flex; align-items: center; padding: 0 25px;
    font-size: 18px; font-weight: 800; color: white; border-bottom: 1px solid var(--border);
}
.sidebar-menu { padding: 20px; }
.sidebar-menu a {
    display: flex; align-items: center; gap: 12px; padding: 12px 15px;
    color: var(--text-muted); border-radius: 8px; margin-bottom: 5px; font-weight: 500;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
    background: var(--primary-dim); color: var(--primary);
}
.admin-content { margin-left: 260px; flex: 1; padding: 30px; }

/* Table Admin */
.table-responsive { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th { background: rgba(255,255,255,0.03); color: var(--text-muted); font-size: 11px; text-transform: uppercase; padding: 15px; text-align: left; }
td { padding: 15px; border-top: 1px solid var(--border); color: #ddd; }

/* ==================================================================
   9. FOOTER
   ================================================================== */
footer {
    border-top: 1px solid var(--border); margin-top: 100px; padding: 60px 0 30px;
    background: #02000a;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-title { color: white; font-weight: 700; margin-bottom: 20px; font-size: 16px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); font-size: 14px; transition: 0.2s; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

/* ==================================================================
   10. RESPONSIVE
   ================================================================== */
@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .hero { flex-direction: column-reverse; padding: 50px 0; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .hero-img img { max-width: 80%; }
    .nav-menu { display: none; }
    .grid-split { grid-template-columns: 1fr; }
    
    /* Admin Mobile */
    .admin-wrapper { flex-direction: column; }
    .admin-sidebar { position: relative; width: 100%; height: auto; border-right: none; }
    .sidebar-menu { display: flex; overflow-x: auto; padding: 15px; }
    .sidebar-menu a { white-space: nowrap; margin-right: 10px; background: rgba(255,255,255,0.05); }
    .admin-content { margin-left: 0; padding: 15px; }
}

.thumb-img {
    width: 60px; 
    height: 60px; 
    object-fit: cover; 
    border-radius: 6px; 
    cursor: pointer; 
    border: 2px solid transparent; /* Border transparan agar tidak geser saat hover */
    opacity: 0.7; /* Agak redup defaultnya */
    transition: all 0.2s ease;
}

/* Saat mouse diarahkan (Hover) */
.thumb-img:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Saat diklik (Active) - Tetap menyala */
.thumb-img.active {
    opacity: 1;
    border-color: var(--primary); /* Menggunakan warna utama (Pink/Ungu) */
    box-shadow: 0 0 10px rgba(240, 0, 255, 0.3);
}