/*
Theme Name: Maunindo B2B Export v4.1
Theme URI: https://maunindo.com
Author: CV. AL MAUN
Author URI: https://maunindo.com
Description: Tema WordPress B2B Ekspor Terintegrasi untuk CV. AL MAUN (Maunindo.com) dengan dukungan Kategori, Halaman Sub-Kategori Produk (Gambar, Harga, MOQ, Tombol Order & Detail), Portal Mitra Terverifikasi, Pilihan 4 Bahasa, dan Google SEO Pro.
Version: 4.1
License: GNU General Public License v2 or later
Text Domain: maunindo
*/

:root {
  --primary: #3b1d82;
  --secondary: #5b21b6;
  --accent: #2563eb;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text-dark); background: var(--bg-light); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar { background: #1e1b4b; color: #e2e8f0; font-size: 13px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.lang-switcher button { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 3px 8px; border-radius: 4px; cursor: pointer; font-size: 12px; margin-left: 4px; }
.lang-switcher button.active, .lang-switcher button:hover { background: var(--accent); border-color: var(--accent); }

/* Header */
.main-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; flex-wrap: wrap; gap: 15px; }
.brand-logo { font-size: 24px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.brand-sub { font-size: 12px; color: var(--text-muted); display: block; margin-top: -4px; }
.nav-menu { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav-menu a { font-weight: 600; font-size: 14px; color: var(--text-dark); transition: color 0.2s; }
.nav-menu a:hover { color: var(--secondary); }
.btn-portal { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff !important; padding: 8px 16px; border-radius: 6px; font-size: 13px; }

/* Hero */
.hero-section { background: linear-gradient(135deg, #1e1b4b 0%, #3b1d82 50%, #2563eb 100%); color: #fff; padding: 60px 0; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.15); padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 15px; letter-spacing: 0.5px; }
.hero-title { font-size: 36px; font-weight: 800; line-height: 1.2; margin-bottom: 15px; max-width: 750px; }
.hero-desc { font-size: 16px; color: #e2e8f0; max-width: 680px; margin-bottom: 25px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; border: none; transition: all 0.2s; text-align: center; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { background: transparent; border: 1.5px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-purple { background: var(--secondary); color: #fff; }
.btn-purple:hover { background: var(--primary); }

/* Sections */
.section { padding: 55px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-title { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.section-subtitle { color: var(--text-muted); font-size: 15px; }

/* Category Grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.cat-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 24px; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; justify-content: space-between; }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(59,29,130,0.08); border-color: var(--secondary); }
.cat-tag { font-size: 11px; font-weight: 700; color: var(--secondary); background: #f3e8ff; padding: 4px 10px; border-radius: 20px; display: inline-block; margin-bottom: 12px; width: fit-content; }
.cat-card h3 { font-size: 19px; margin-bottom: 10px; color: var(--text-dark); }
.cat-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.subcat-list { list-style: none; margin-bottom: 20px; border-top: 1px solid var(--border); padding-top: 12px; }
.subcat-list li { font-size: 13px; padding: 4px 0; color: var(--text-dark); display: flex; align-items: center; gap: 6px; }
.subcat-list li::before { content: "•"; color: var(--accent); font-weight: bold; }

/* Product Grid */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.prod-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s; }
.prod-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.07); }
.prod-img { width: 100%; height: 200px; object-fit: cover; background: #e2e8f0; display: flex; align-items: center; justify-content: center; color: #64748b; font-size: 13px; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.prod-cat { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; margin-bottom: 6px; }
.prod-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.prod-meta { background: var(--bg-light); padding: 10px 12px; border-radius: 8px; margin-bottom: 15px; font-size: 13px; }
.prod-meta div { display: flex; justify-content: space-between; margin-bottom: 4px; }
.prod-meta div:last-child { margin-bottom: 0; }
.prod-price { font-weight: 700; color: var(--primary); }
.prod-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.prod-actions .btn { padding: 9px 10px; font-size: 13px; }

/* Forms */
.form-box { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 30px; max-width: 760px; margin: 0 auto; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--secondary); }

/* Footer */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 50px 0 25px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; margin-bottom: 35px; }
.footer-title { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; text-align: center; font-size: 13px; color: #94a3b8; }

/* Alerts */
.alert-success { background: #dcfce7; color: #166534; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; }
}
