/* ===== DSF Store - Public CSS ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box }
:root {
  --primary: #0F1C3F;
  --primary-light: #1e3a8a;
  --accent: #F5A623;
  --surface: #F5F7FF;
  --card: #FFFFFF;
  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;
  --green: #10B981;
  --red: #EF4444;
  --radius: 12px;
}
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--surface); color: var(--text); }

/* ===== NAVBAR ===== */
.navbar { background: var(--primary); height: 64px; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,0.08) }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0 }
.logo-icon { font-size: 1.4rem }
.logo-text { font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: -.02em }
.logo-accent { color: var(--accent) }

.nav-menu { display: flex; align-items: center; gap: 4px }
.nav-link { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.875rem; font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: .2s; white-space: nowrap }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,0.1) }
.nav-btn-admin { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.8rem; font-weight: 600; padding: 7px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); transition: .2s; white-space: nowrap; margin-left: 6px }
.nav-btn-admin:hover { color: #fff; border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08) }

.hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; padding: 6px; border-radius: 6px }
.hamburger:hover { background: rgba(255,255,255,0.1) }

@media (max-width: 768px) {
  .hamburger { display: flex }
  .nav-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--primary); padding: 1rem; flex-direction: column; align-items: stretch; gap: 4px; border-top: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.3) }
  .nav-menu.open { display: flex }
  .nav-link { padding: 12px 16px }
  .nav-btn-admin { margin-left: 0; text-align: center; padding: 12px }
}

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 50%, #1d4ed8 100%); padding: 4rem 1.5rem 3rem; text-align: center; position: relative; overflow: hidden }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 50%, rgba(245,166,35,.07) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(59,130,246,.1) 0%, transparent 40%) }
.hero-inner { position: relative; max-width: 680px; margin: 0 auto }
.hero-label { display: inline-block; background: rgba(245,166,35,.15); color: var(--accent); font-size: .75rem; font-weight: 700; padding: 6px 16px; border-radius: 20px; margin-bottom: 1.2rem; border: 1px solid rgba(245,166,35,.25); letter-spacing: .03em }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; line-height: 1.2; margin-bottom: 1rem }
.hero-title em { font-style: normal; color: var(--accent) }
.hero-sub { color: rgba(255,255,255,.7); font-size: 1rem; line-height: 1.7; margin-bottom: 2rem }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem }
.btn-primary { display: inline-block; background: var(--accent); color: var(--primary); border: none; font-family: inherit; font-weight: 700; font-size: .9rem; padding: 13px 28px; border-radius: 10px; cursor: pointer; text-decoration: none; transition: .2s }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,166,35,.4) }
.btn-ghost { display: inline-block; color: rgba(255,255,255,.85); border: 1.5px solid rgba(255,255,255,.3); font-family: inherit; font-weight: 600; font-size: .9rem; padding: 13px 28px; border-radius: 10px; cursor: pointer; text-decoration: none; transition: .2s }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08) }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap }
.stat-item { text-align: center; padding: 0 1.5rem }
.stat-item strong { display: block; font-size: 1.6rem; font-weight: 800; color: #fff }
.stat-item span { font-size: .75rem; color: rgba(255,255,255,.6) }
.stat-sep { width: 1px; height: 36px; background: rgba(255,255,255,.2) }

/* ===== SECTION ===== */
.section { padding: 3rem 1.5rem }
.bg-surface { background: var(--card) }
.container { max-width: 1200px; margin: 0 auto }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .5rem }
.section-header h2 { font-size: 1.5rem; font-weight: 800 }
.see-all { color: var(--primary-light); font-size: .85rem; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 6px }
.see-all:hover { text-decoration: underline }

/* ===== PRODUCTS GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; align-items: start; }
/* Grid khusus 3 kolom untuk beranda — hindari kolom ke-4 kosong */
.products-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px)  { .products-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .products-grid-3 { grid-template-columns: 1fr; } }
.product-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: .25s; position: relative; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); border-color: #c7d2fe }
.prod-thumb { height: 180px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: #EFF6FF; flex-shrink: 0; }
.prod-thumb-img { background: #f9fafb; }
.prod-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; pointer-events: none; }
.product-card:hover .prod-img { transform: scale(1.04); }
.prod-emoji { font-size: 3.5rem; pointer-events: none; }
.prod-badge { position: absolute; top: 10px; right: 10px; font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; pointer-events: none; }
.badge-new { background: #DBEAFE; color: #1D4ED8 }
.badge-hot { background: #FEF3C7; color: #92400E }
.badge-sale { background: #DCFCE7; color: #166534 }
.prod-body { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.prod-cat { font-size: .72rem; font-weight: 700; color: #4F46E5; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px }
.prod-name { font-size: .95rem; font-weight: 800; margin-bottom: 6px; line-height: 1.3 }
.prod-desc { font-size: .8rem; color: var(--muted); line-height: 1.5; margin-bottom: 10px; flex: 1; }
.prod-pricing { margin-bottom: 4px }
.prod-price { font-size: 1.05rem; font-weight: 800; color: var(--primary) }
.prod-price-old { font-size: .8rem; color: var(--muted); text-decoration: line-through; margin-left: 6px }
.prod-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border) }
.prod-rating { font-size: .78rem; color: var(--muted) }
.prod-rating .fas { color: #F59E0B }
.buy-btn { background: var(--primary); color: #fff; border: none; font-family: inherit; font-weight: 700; font-size: .78rem; padding: 8px 14px; border-radius: 7px; cursor: pointer; transition: .2s; white-space: nowrap; pointer-events: auto; position: relative; z-index: 1; }
.buy-btn:hover { background: var(--primary-light) }

/* ===== MARKETPLACE SECTION ===== */
.marketplace-section { background: var(--primary); padding: 3rem 1.5rem; text-align: center }
.mp-title { color: #fff; font-size: 1.4rem; font-weight: 800; margin-bottom: .5rem }
.mp-sub { color: rgba(255,255,255,.6); font-size: .88rem; margin-bottom: 2rem }
.mp-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem }
.mp-logo { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: .88rem; border: 1px solid rgba(255,255,255,.15) }
.mp-logo.shopee { background: rgba(238,77,45,.2); color: #FF8A65 }
.mp-logo.tokopedia { background: rgba(0,174,96,.2); color: #4CAF50 }
.mp-logo.dana { background: rgba(11,95,255,.2); color: #64B5F6 }
.mp-logo.lynk { background: rgba(245,166,35,.2); color: var(--accent) }
.mp-logo.wa { background: rgba(37,211,102,.2); color: #81C784 }
.mp-logo.bank { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7) }

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem }
.blog-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: block; transition: .25s }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08) }
.blog-thumb { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background: #EEF2FF; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-body { padding: 1.1rem 1.2rem 1.3rem }
.blog-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap }
.blog-tag { background: #DBEAFE; color: #1D4ED8; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 4px }
.blog-date { font-size: .75rem; color: var(--muted) }
.blog-title { font-size: .92rem; font-weight: 700; line-height: 1.4; margin-bottom: 6px }
.blog-excerpt { font-size: .8rem; color: var(--muted); line-height: 1.55 }
.blog-author { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: .78rem; color: var(--muted) }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; flex-shrink: 0 }

/* ===== BLOG DETAIL ===== */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-light); font-size: .85rem; font-weight: 600; text-decoration: none; margin-bottom: 1.5rem }
.back-link:hover { text-decoration: underline }
.blog-detail-thumb { font-size: 4rem; text-align: center; background: #EEF2FF; border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem }
.blog-detail-thumb-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; max-height: 420px; }
.blog-detail-thumb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-content { line-height: 1.9; color: #374151 }
.blog-content h2, .blog-content h3 { margin: 1.5rem 0 .75rem; color: var(--text) }
.blog-content p { margin-bottom: 1rem }
.blog-content code { background: #F3F4F6; padding: 2px 6px; border-radius: 4px; font-size: .9em }

/* ===== PAGE HERO ===== */
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%); padding: 2.5rem 1.5rem; text-align: center }
.page-hero h1 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: .4rem }
.page-hero p { color: rgba(255,255,255,.7); font-size: .9rem }

/* ===== PRODUCTS PAGE FILTER ===== */
.filter-row { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1rem }
.search-box { position: relative; flex: 1; min-width: 200px }
.search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted) }
.search-box input { width: 100%; padding: 10px 14px 10px 38px; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; font-size: .88rem; outline: none }
.search-box input:focus { border-color: var(--primary-light) }
.filter-bar { display: flex; gap: .4rem; flex-wrap: wrap }
.filter-btn { text-decoration: none; display: inline-block; background: var(--card); border: 1.5px solid var(--border); color: var(--muted); font-size: .8rem; font-weight: 600; padding: 8px 14px; border-radius: 20px; transition: .2s; white-space: nowrap }
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff }
.result-count { font-size: .82rem; color: var(--muted); margin-bottom: 1rem }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted) }
.empty-state h3 { margin: .75rem 0 .5rem; color: var(--text) }
.empty-state .btn-primary { margin-top: 1rem }

/* ===== ABOUT / CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; text-align: center }
.contact-label { font-size: .75rem; color: var(--muted); margin-bottom: 4px }
.contact-val { font-size: .85rem; font-weight: 700; color: var(--primary-light); word-break: break-all }

/* ===== MODAL ===== */
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 500; align-items: center; justify-content: center; padding: 1rem }
.overlay.show { display: flex }
.modal { background: #fff; border-radius: 16px; padding: 1.75rem; max-width: 480px; width: 100%; animation: slideUp .25s ease }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem }
.modal-title { font-size: 1.05rem; font-weight: 800 }
.modal-price { font-size: .9rem; font-weight: 700; color: var(--primary) }
.modal-close-x { background: #F3F4F6; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: .9rem; color: var(--muted); flex-shrink: 0 }
.modal-close-x:hover { background: #E5E7EB }
.modal-sub { font-size: .82rem; color: var(--muted); margin-bottom: 1.2rem }
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem }
.mp-grid-btn { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; font-family: inherit; font-weight: 600; font-size: .82rem; text-align: left; transition: .2s }
.mp-grid-btn:hover { border-color: #4F46E5; background: #EEF2FF }
.mp-grid-btn .mpb-icon { font-size: 1.2rem }
.mp-grid-btn .mpb-name { font-weight: 700; font-size: .8rem }
.mp-grid-btn .mpb-desc { font-size: .68rem; color: var(--muted) }

/* ===== FOOTER ===== */
.footer { background: var(--primary); color: rgba(255,255,255,.75); padding: 3rem 1.5rem 1.5rem }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2rem; max-width: 1200px; margin: 0 auto; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1) }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr } }
.footer-logo { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: .75rem }
.footer-brand p { font-size: .82rem; line-height: 1.7 }
.footer-socials { display: flex; gap: .75rem; margin-top: 1rem }
.footer-socials a { color: rgba(255,255,255,.5); font-size: 1.1rem; transition: .2s }
.footer-socials a:hover { color: var(--accent) }
.footer-col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.6); text-decoration: none; font-size: .82rem; margin-bottom: .4rem; transition: .2s }
.footer-col a:hover { color: #fff }
.footer-bottom { max-width: 1200px; margin: 1.5rem auto 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem }
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.4) }
.footer-admin-link { font-size: .78rem; color: rgba(255,255,255,.35); text-decoration: none }
.footer-admin-link:hover { color: rgba(255,255,255,.6) }
