/* --- GLOBAL & RESET --- */
:root { --primary: #2c3e50; --accent: #f39c12; --bg-light: #f4f6f9; --text-dark: #333; --shadow: 0 5px 15px rgba(0,0,0,0.08); }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background: var(--bg-light); color: var(--text-dark); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* --- HEADER & MEGA MENU --- */
header { background: var(--primary); color: white; }
.top-bar { background: #1a252f; padding: 10px 0; font-size: 13px; text-align: right; }
.header-main { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 28px; font-weight: 800; }
.logo span { color: var(--accent); }
.search-box { display: flex; flex: 1; max-width: 600px; margin: 0 30px; background: white; border-radius: 30px; overflow: hidden; }
.search-box input { flex: 1; padding: 12px 20px; border: none; outline: none; }
.search-box button { background: var(--accent); border: none; padding: 0 30px; color: white; font-weight: bold; cursor: pointer; transition: 0.3s; }
.search-box button:hover { background: #e67e22; }

/* --- MEGA MENU --- */
.mega-nav { background: white; box-shadow: 0 4px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: 55px; max-width: 1400px; margin: 0 auto; }
.nav-links { display: flex; gap: 30px; height: 100%; }
.nav-links > li { position: relative; display: flex; align-items: center; cursor: pointer; height: 100%; font-weight: 600; font-size: 14px; color: #333; padding: 0 5px; }
.nav-links > li:hover { color: var(--accent); }

/* Mega Dropdown */
.mega-dropdown { position: absolute; top: 100%; left: 0; width: 600px; background: white; box-shadow: var(--shadow); border-radius: 0 0 8px 8px; padding: 20px; display: none; grid-template-columns: 1fr 1fr; gap: 20px; z-index: 100; }
.nav-links > li:hover .mega-dropdown { display: grid; }
.mega-col h4 { margin-bottom: 10px; color: var(--primary); border-bottom: 1px solid #eee; padding-bottom: 5px; }
.mega-col ul li { padding: 5px 0; font-size: 13px; color: #666; }
.mega-col ul li:hover { color: var(--accent); padding-left: 5px; }

/* --- HERO SLIDER (SWIPER) --- */
.hero-slider { margin-top: 20px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); height: 350px; }
.swiper-slide { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #0b1f3f 0%, #2a5298 100%); color: white; padding: 40px; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 38px; margin-bottom: 10px; }
.hero-text p { font-size: 16px; opacity: 0.9; margin-bottom: 20px; }
.btn-shop { background: var(--accent); color: #222; padding: 12px 30px; border-radius: 30px; font-weight: bold; display: inline-block; transition: 0.3s; }
.btn-shop:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4); }
.hero-img { max-height: 280px; }

/* --- SECTION HEADER & LAYOUT --- */
.section-header { display: flex; justify-content: space-between; align-items: center; margin: 40px 0 20px; }
.section-header h3 { font-size: 24px; border-left: 5px solid var(--accent); padding-left: 15px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 25px; }

/* --- PRODUCT CARDS (BIG SHOP STYLE) --- */
.product-card { background: white; border-radius: 12px; padding: 20px; position: relative; text-align: center; transition: 0.3s; box-shadow: 0 2px 8px rgba(0,0,0,0.03); border: 1px solid transparent; }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: #eee; }
.badge { position: absolute; top: 15px; left: 15px; background: #e74c3c; color: white; font-size: 12px; padding: 3px 10px; border-radius: 20px; font-weight: bold; }
.badge-featured { background: var(--primary); }
.product-img { height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.product-img img { max-height: 100%; object-fit: contain; }
.product-title { font-size: 16px; font-weight: 600; height: 44px; overflow: hidden; margin-bottom: 5px; }
.product-rating { color: #f1c40f; font-size: 13px; margin-bottom: 5px; }
.product-price { color: #e74c3c; font-weight: bold; font-size: 18px; }
.product-price del { color: #999; font-size: 13px; margin-left: 8px; }
.btn-cart { margin-top: 12px; background: var(--primary); color: white; border: none; padding: 8px 0; width: 100%; border-radius: 6px; cursor: pointer; transition: 0.2s; font-weight: bold; }
.btn-cart:hover { background: #1a252f; }

/* --- SIDEBAR KATEGORI & FILTER (SHOP PAGE) --- */
.shop-layout { display: flex; gap: 30px; margin-top: 20px; }
.shop-sidebar { width: 260px; background: white; padding: 20px; border-radius: 12px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 80px; }
.shop-sidebar h4 { border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 15px; }
.sidebar-filter li { padding: 8px 0; cursor: pointer; font-size: 14px; color: #555; display: flex; justify-content: space-between; }
.sidebar-filter li:hover { color: var(--accent); font-weight: bold; }
.shop-content { flex: 1; }

/* --- ADMIN PANEL --- */
.admin-wrap { max-width: 1100px; margin: 40px auto; background: white; padding: 30px; border-radius: 12px; box-shadow: var(--shadow); }
.admin-header { display: flex; justify-content: space-between; margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 15px; }
.btn-admin { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: bold; }
.btn-danger { background: #e74c3c; border: none; padding: 5px 10px; border-radius: 4px; color: white; cursor: pointer; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, td { border: 1px solid #ddd; padding: 12px; text-align: left; }
.admin-table th { background: #f8f9fa; }
.admin-table img { width: 60px; height: 60px; object-fit: contain; border-radius: 4px; }

/* --- MODAL (ADMIN) --- */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); justify-content: center; align-items: center; z-index: 2000; }
.modal-content { background: white; padding: 30px; border-radius: 12px; width: 450px; max-width: 90%; }
.modal-content input, select, textarea { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 6px; }
.modal-content button { width: 100%; padding: 12px; background: var(--accent); color: white; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .header-main { flex-direction: column; gap: 15px; }
    .search-box { width: 100%; margin: 0; }
    .mega-nav { display: none; } /* Mobile menu di-skip untuk template */
    .shop-layout { flex-direction: column; }
    .shop-sidebar { width: 100%; position: static; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-slider { height: auto; }
    .swiper-slide { flex-direction: column; padding: 20px; text-align: center; }
}