/*
Theme Name: Jakarta Grosir
Theme URI: https://jakarta-grosir.my.id
Author: Jakarta Grosir
Author URI: https://jakarta-grosir.my.id
Description: Katalog grosir ringan untuk Jakarta Grosir. Produk, gambar, teks, dan permintaan pembelian dikelola dari Dashboard WordPress.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jakarta-grosir
*/

:root {
  --jg-ink: #232b5d;
  --jg-ink-soft: #343d78;
  --jg-accent: #d2643e;
  --jg-gold: #f1b45d;
  --jg-paper: #faf6ed;
  --jg-card: #fffdf9;
  --jg-line: #e5ddcf;
  --jg-muted: #77756d;
  --jg-green: #4f7c58;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--jg-ink);
  background: var(--jg-paper);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
body, button, input, textarea, select { font-size: 15px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button, .jg-button { cursor: pointer; }
.jg-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.jg-display { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; letter-spacing: -.045em; }
.jg-mono { font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.jg-eyebrow { color: var(--jg-accent); font: 700 11px/1.2 "DM Mono", monospace; letter-spacing: .18em; text-transform: uppercase; }
.jg-muted { color: var(--jg-muted); }
.jg-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 18px; border: 0; border-radius: 999px;
  color: #fffdf9; background: var(--jg-ink); font-weight: 800; transition: .2s ease;
}
.jg-button:hover { color: #fffdf9; background: var(--jg-ink-soft); transform: translateY(-2px); }
.jg-button--accent { background: var(--jg-accent); }
.jg-button--accent:hover { background: #b95234; }
.jg-button--gold { color: var(--jg-ink); background: var(--jg-gold); }
.jg-button--gold:hover { color: var(--jg-ink); background: #f5c477; }
.jg-button--outline { color: var(--jg-ink); border: 1px solid var(--jg-line); background: transparent; }
.jg-button--outline:hover { color: var(--jg-ink); background: #f1eadf; }

.jg-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(229, 221, 207, .85); background: rgba(250, 246, 237, .94); backdrop-filter: blur(16px); }
.jg-header__inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 22px; }
.jg-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.jg-brand img { width: auto; max-width: 190px; max-height: 42px; }
.jg-brand__mark { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; color: #fffdf9; background: var(--jg-ink); font: 800 14px "Space Grotesk", sans-serif; }
.jg-brand__text { line-height: 1.05; }
.jg-brand__name { display: block; font: 800 17px "Space Grotesk", sans-serif; }
.jg-brand__sub { display: block; margin-top: 3px; color: var(--jg-accent); font: 700 8px "DM Mono", monospace; letter-spacing: .15em; }
.jg-nav { display: flex; align-items: center; gap: 28px; color: #5b5d64; font-size: 13px; font-weight: 700; }
.jg-nav a:hover { color: var(--jg-accent); }
.jg-header__actions { display: flex; align-items: center; gap: 8px; }
.jg-header__sign-in { padding: 9px 12px; font-size: 12px; font-weight: 800; }
.jg-menu-toggle { display: none; border: 0; padding: 8px; color: var(--jg-ink); background: transparent; }
.jg-mobile-menu { display: none; padding: 15px 20px 20px; border-top: 1px solid var(--jg-line); }

.jg-hero { overflow: hidden; padding: 88px 0 75px; background: var(--jg-paper); }
.jg-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; }
.jg-hero h1 { max-width: 720px; margin: 16px 0 20px; font-size: clamp(44px, 6.5vw, 82px); line-height: .95; }
.jg-hero__copy { max-width: 560px; color: #68665f; font-size: 17px; line-height: 1.8; }
.jg-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.jg-hero__visual { position: relative; min-height: 430px; padding: 32px; border-radius: 28px; background: var(--jg-ink); }
.jg-hero__visual:before { position: absolute; right: -45px; bottom: -60px; width: 250px; height: 250px; border-radius: 50%; background: var(--jg-gold); content: ""; opacity: .95; }
.jg-hero__visual-card { position: relative; z-index: 1; height: 100%; min-height: 365px; padding: 25px; border: 1px solid rgba(255,255,255,.16); border-radius: 21px; background: linear-gradient(145deg, #364079, #202754); color: #fffdf9; }
.jg-hero__visual-card h2 { max-width: 380px; margin: 78px 0 0; font-size: clamp(30px, 4vw, 52px); line-height: 1; }
.jg-hero__visual-card p { max-width: 290px; margin-top: 18px; color: #c8cbe0; }
.jg-hero__badge { display: inline-flex; padding: 7px 10px; border-radius: 999px; color: var(--jg-ink); background: var(--jg-gold); font: 700 10px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }

.jg-section { padding: 82px 0; }
.jg-section--white { background: var(--jg-card); }
.jg-section__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.jg-section__heading h2 { margin: 10px 0 0; font-size: clamp(34px, 5vw, 54px); line-height: .98; }
.jg-section__heading p { max-width: 330px; margin: 0; color: var(--jg-muted); font-size: 13px; }
.jg-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.jg-product-card { overflow: hidden; border: 1px solid var(--jg-line); border-radius: 17px; background: var(--jg-card); transition: .2s ease; }
.jg-product-card:hover { border-color: #cfc2b1; box-shadow: 0 16px 40px rgba(35,43,93,.08); transform: translateY(-3px); }
.jg-product-card__image { position: relative; overflow: hidden; background: #eee7db; }
.jg-product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.jg-product-card:hover .jg-product-card__image img { transform: scale(1.04); }
.jg-product-card__image--featured { aspect-ratio: 1.22; }
.jg-product-card__image--small { aspect-ratio: 1.5; }
.jg-product-card__body { padding: 17px; }
.jg-product-card__supplier { color: var(--jg-accent); font: 700 9px "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.jg-product-card h3 { min-height: 48px; margin: 9px 0 12px; font-size: 17px; line-height: 1.22; }
.jg-product-card__meta { display: flex; justify-content: space-between; gap: 10px; padding-top: 13px; border-top: 1px solid #eee7dc; color: var(--jg-muted); font-size: 11px; }
.jg-product-card__price { color: var(--jg-accent); font: 700 13px "DM Mono", monospace; }
.jg-product-card__badge { position: absolute; top: 12px; left: 12px; padding: 5px 8px; border-radius: 999px; color: var(--jg-ink); background: rgba(255,253,249,.88); font: 700 9px "DM Mono", monospace; text-transform: uppercase; }
.jg-search { display: flex; gap: 8px; max-width: 540px; margin-top: 30px; }
.jg-input, .jg-textarea, .jg-select { width: 100%; border: 1px solid var(--jg-line); border-radius: 11px; padding: 12px 14px; color: var(--jg-ink); background: #fffdf9; outline: 0; }
.jg-input:focus, .jg-textarea:focus, .jg-select:focus { border-color: var(--jg-accent); box-shadow: 0 0 0 4px rgba(210,100,62,.1); }

.jg-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.jg-guide__item { padding: 25px; border: 1px solid var(--jg-line); border-radius: 17px; background: var(--jg-card); }
.jg-guide__number { color: var(--jg-accent); font: 700 12px "DM Mono", monospace; }
.jg-guide h3 { margin: 28px 0 8px; font-size: 19px; }
.jg-guide p { margin: 0; color: var(--jg-muted); font-size: 13px; line-height: 1.7; }
.jg-supplier-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 46px; border-radius: 24px; color: #fffdf9; background: var(--jg-ink); }
.jg-supplier-cta h2 { max-width: 650px; margin: 10px 0 0; font-size: clamp(28px, 4vw, 46px); line-height: 1; }
.jg-supplier-cta p { max-width: 620px; margin: 17px 0 0; color: #c8cbe0; }
.jg-footer { padding: 54px 0 26px; color: #d9dced; background: #1b214b; }
.jg-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 40px; }
.jg-footer .jg-brand__name { color: #fffdf9; }
.jg-footer .jg-brand__sub { color: var(--jg-gold); }
.jg-footer p { max-width: 360px; color: #aeb3d4; font-size: 13px; }
.jg-footer h3 { margin: 0 0 13px; color: #fffdf9; font-size: 12px; }
.jg-footer ul { list-style: none; margin: 0; padding: 0; color: #aeb3d4; font-size: 13px; }
.jg-footer li + li { margin-top: 9px; }
.jg-footer a:hover { color: var(--jg-gold); }
.jg-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); color: #8f96bd; font: 10px "DM Mono", monospace; }

.jg-page-header { padding: 62px 0 34px; }
.jg-page-header h1 { margin: 13px 0 0; font-size: clamp(38px, 5vw, 66px); line-height: .98; }
.jg-breadcrumb { color: var(--jg-muted); font-size: 12px; }
.jg-product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr); gap: 54px; padding-bottom: 90px; }
.jg-product-detail__main-image { overflow: hidden; aspect-ratio: 1.12; border-radius: 22px; background: #eee7db; }
.jg-product-detail__main-image img { width: 100%; height: 100%; object-fit: cover; }
.jg-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 10px; }
.jg-gallery button { overflow: hidden; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 9px; background: #eee7db; }
.jg-gallery button.is-active { border-color: var(--jg-accent); }
.jg-gallery img { width: 100%; height: 100%; object-fit: cover; }
.jg-product-detail h1 { margin: 12px 0 15px; font-size: clamp(36px, 5vw, 62px); line-height: .96; }
.jg-product-detail__description { color: var(--jg-muted); line-height: 1.8; }
.jg-product-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 28px 0; }
.jg-product-info__item { padding: 13px; border-radius: 11px; background: #f0e9dd; }
.jg-product-info__label { display: block; color: #918a7e; font: 9px "DM Mono", monospace; letter-spacing: .11em; text-transform: uppercase; }
.jg-product-info__value { display: block; margin-top: 4px; font-weight: 800; }
.jg-lead-box { margin-top: 30px; padding: 25px; border: 1px solid var(--jg-line); border-radius: 17px; background: var(--jg-card); }
.jg-lead-box h2 { margin: 0; font-size: 22px; }
.jg-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-top: 20px; }
.jg-form-field--full { grid-column: 1 / -1; }
.jg-form-field label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 800; }
.jg-form-notice { margin-top: 15px; padding: 12px 14px; border-radius: 10px; color: var(--jg-green); background: #e5efd9; font-size: 12px; }
.jg-form-error { color: #a43b2b; background: #f8e5de; }
.jg-content { padding: 45px 0 90px; }
.jg-content h1, .jg-content h2, .jg-content h3 { font-family: "Space Grotesk", sans-serif; }
.jg-content > * { max-width: 780px; }
.jg-content img { border-radius: 15px; }
.jg-pagination { display: flex; gap: 8px; margin-top: 36px; }
.jg-pagination a, .jg-pagination span { padding: 9px 13px; border: 1px solid var(--jg-line); border-radius: 8px; font-size: 12px; }

@media (max-width: 900px) {
  .jg-nav { display: none; }
  .jg-menu-toggle { display: block; }
  .jg-hero__grid, .jg-product-detail { grid-template-columns: 1fr; gap: 38px; }
  .jg-hero__visual { min-height: 350px; }
  .jg-product-grid { grid-template-columns: repeat(2, 1fr); }
  .jg-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .jg-container { width: min(100% - 28px, 1180px); }
  .jg-header__inner { min-height: 67px; }
  .jg-header__actions .jg-button { display: none; }
  .jg-header__sign-in { display: none; }
  .jg-mobile-menu.is-open { display: block; }
  .jg-hero { padding: 55px 0 45px; }
  .jg-hero__visual { min-height: 315px; padding: 19px; }
  .jg-hero__visual-card { min-height: 275px; padding: 19px; }
  .jg-hero__visual-card h2 { margin-top: 52px; }
  .jg-section { padding: 55px 0; }
  .jg-section__heading, .jg-supplier-cta { display: block; }
  .jg-section__heading p { margin-top: 17px; }
  .jg-product-grid { gap: 12px; }
  .jg-product-card__body { padding: 12px; }
  .jg-product-card h3 { min-height: 42px; font-size: 14px; }
  .jg-product-card__meta { display: block; }
  .jg-product-card__meta span { display: block; }
  .jg-product-card__price { margin-bottom: 5px; }
  .jg-guide { grid-template-columns: 1fr; }
  .jg-supplier-cta { padding: 28px; }
  .jg-supplier-cta .jg-button { margin-top: 24px; }
  .jg-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .jg-footer__bottom { display: block; }
  .jg-footer__bottom span { display: block; margin-top: 8px; }
  .jg-product-detail { gap: 25px; }
  .jg-product-detail h1 { font-size: 42px; }
  .jg-form-grid { grid-template-columns: 1fr; }
  .jg-form-field--full { grid-column: auto; }
}