/* 2J MART – site styles */
:root {
	--jm-accent: #f59e0b;
	--jm-bg: #f6f7fb;
	--jm-surface: #ffffff;
	--jm-ink: #0f172a;
	--jm-muted: #5b6475;
	--jm-line: #e4e7ef;
	--jm-dark: #0b1220;
	--jm-wa: #1fa855;
	--jm-radius: 16px;
	--jm-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}
:root[data-theme="dark"] {
	--jm-bg: #0b1020;
	--jm-surface: #141b2e;
	--jm-ink: #eef1f8;
	--jm-muted: #a3acc0;
	--jm-line: #26304a;
	--jm-dark: #060a14;
	--jm-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
.jm-body [hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body.jm-body {
	margin: 0;
	background: var(--jm-bg);
	color: var(--jm-ink);
	font: 16px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.jm-body a { color: inherit; }
.jm-body img { max-width: 100%; height: auto; }
.jm-body h1, .jm-body h2, .jm-body h3, .jm-body h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; color: var(--jm-ink); }
.jm-body h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.jm-body h3 { font-size: 1.1rem; }
.jm-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.jm-narrow { max-width: 760px; }
.jm-muted { color: var(--jm-muted); font-size: .92rem; }
.jm-center { text-align: center; }
.jm-skip { position: absolute; left: -9999px; }
.jm-skip:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 8px 12px; }

/* ---------- buttons ---------- */
.jm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--jm-ink); color: var(--jm-surface) !important; font: inherit; font-weight: 700;
	text-decoration: none; transition: transform .15s, opacity .15s;
}
.jm-btn:hover { transform: translateY(-1px); opacity: .92; }
.jm-btn-accent { background: var(--jm-accent); color: #111 !important; }
.jm-btn-wa { background: var(--jm-wa); color: #fff !important; }
.jm-btn-light { background: #fff; color: #111 !important; }
.jm-btn-ghost { background: transparent; color: var(--jm-ink) !important; border: 1px solid var(--jm-line); }
.jm-icon-btn {
	display: inline-flex; align-items: center; justify-content: center; position: relative;
	width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent;
	color: var(--jm-ink); cursor: pointer; font-size: 20px; text-decoration: none;
}
.jm-icon-btn:hover { background: var(--jm-bg); }

/* ---------- header ---------- */
.jm-header { position: sticky; top: 0; z-index: 50; background: var(--jm-surface); border-bottom: 1px solid var(--jm-line); }
.jm-header-in { display: flex; align-items: center; gap: 8px; height: 68px; }
.jm-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.jm-brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; }
.jm-brand b { color: var(--jm-accent); }
.jm-nav { display: none; margin-left: 24px; gap: 4px; }
.jm-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--jm-muted); }
.jm-nav a:hover, .jm-nav a[aria-current="page"] { color: var(--jm-ink); background: var(--jm-bg); }
.jm-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.jm-badge {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 999px; background: var(--jm-accent); color: #111; font-size: 11px; font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}
.jm-badge[data-zero] { display: none; }
.jm-more { position: relative; }
.jm-more-menu {
	position: absolute; right: 0; top: 52px; width: 240px; padding: 8px;
	background: var(--jm-surface); border: 1px solid var(--jm-line); border-radius: 14px; box-shadow: var(--jm-shadow);
}
.jm-more-menu a, .jm-more-menu button {
	display: flex; width: 100%; align-items: center; justify-content: space-between;
	padding: 10px 12px; border-radius: 10px; text-decoration: none; font: inherit; font-weight: 600;
	background: transparent; border: 0; color: var(--jm-ink); cursor: pointer; text-align: left;
}
.jm-more-menu a:hover, .jm-more-menu button:hover { background: var(--jm-bg); }
.jm-more-menu button { border-top: 1px solid var(--jm-line); border-radius: 0 0 10px 10px; margin-top: 4px; }
.jm-switch { width: 36px; height: 20px; border-radius: 999px; background: var(--jm-line); position: relative; }
.jm-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
:root[data-theme="dark"] .jm-switch { background: var(--jm-accent); }
:root[data-theme="dark"] .jm-switch::after { left: 18px; }

/* ---------- drawer (☰) ---------- */
.jm-overlay { position: fixed; inset: 0; background: rgba(5, 10, 20, .5); z-index: 90; }
.jm-drawer {
	position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); z-index: 100;
	background: var(--jm-surface); overflow-y: auto; padding: 12px 16px 32px;
	box-shadow: 4px 0 30px rgba(0, 0, 0, .2); animation: jm-slide .2s ease-out;
}
@keyframes jm-slide { from { transform: translateX(-100%); } to { transform: none; } }
.jm-drawer-head { display: flex; align-items: center; justify-content: space-between; height: 52px; margin-bottom: 8px; }
.jm-drawer-nav a { display: block; padding: 11px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.jm-drawer-nav a:hover, .jm-drawer-nav a[aria-current="page"] { background: var(--jm-bg); }
.jm-drawer-nav a.jm-sub { font-weight: 500; padding: 8px 12px; color: var(--jm-muted); }
.jm-drawer-label { margin: 18px 12px 4px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--jm-muted); }
body.jm-locked { overflow: hidden; }

/* ---------- hero ---------- */
.jm-hero {
	background: radial-gradient(1200px 400px at 80% -10%, rgba(245, 158, 11, .25), transparent 60%), var(--jm-dark);
	color: #fff; padding: 64px 0 56px; text-align: center;
}
.jm-hero h1 { color: #fff; font-size: clamp(2.1rem, 6vw, 3.6rem); margin-bottom: 14px; }
.jm-hero h1 span { color: var(--jm-accent); }
.jm-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .65); margin: 0 0 14px; }
.jm-lead { font-size: 1.1rem; max-width: 640px; margin: 0 auto 26px; opacity: .9; }
.jm-hero-stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.jm-hero-store {
	padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25);
	color: #fff !important; text-decoration: none; font-weight: 700; font-size: .92rem;
}
.jm-hero-store:hover { background: rgba(255, 255, 255, .12); }

/* ---------- search ---------- */
.jm-search { max-width: 720px; margin: 0 auto; }
.jm-search-row { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: var(--jm-shadow); }
.jm-search input[type="search"], .jm-search select {
	font: inherit; border: 0; background: transparent; color: #0f172a; outline: none; min-width: 0;
}
.jm-search input[type="search"] { flex: 1; padding: 10px 16px; }
.jm-search select { padding: 0 10px; border-left: 1px solid #e4e7ef; font-weight: 600; cursor: pointer; }
.jm-search-hint { min-height: 1.4em; margin: 8px 0 0; font-size: .9rem; opacity: .8; }
.jm-alt .jm-search-row { border: 1px solid var(--jm-line); }

/* ---------- page head ---------- */
.jm-page-head { background: var(--jm-dark); color: #fff; padding: 40px 0 36px; }
.jm-page-head h1 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 6px 0 8px; }
.jm-page-head p { margin: 0; opacity: .8; max-width: 680px; }
.jm-crumbs { font-size: .85rem; display: flex; flex-wrap: wrap; gap: 6px; opacity: .75; }
.jm-crumbs a { text-decoration: none; }
.jm-crumbs a:hover { text-decoration: underline; }
.jm-store-hero { background: linear-gradient(135deg, var(--c), #0b1220 140%); color: #fff; padding: 40px 0 44px; }
.jm-store-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin: 8px 0; }
.jm-store-hero .jm-lead { margin: 0 0 24px; max-width: 720px; }
.jm-store-hero .jm-search { margin: 0; }
.jm-hero-actions { margin-top: 16px; }

/* ---------- sections & grids ---------- */
.jm-section { padding: 48px 0; }
.jm-alt { background: var(--jm-surface); border-top: 1px solid var(--jm-line); border-bottom: 1px solid var(--jm-line); }
.jm-alt .jm-card { background: var(--jm-bg); }
.jm-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.jm-section-head a { font-weight: 700; text-decoration: none; color: var(--jm-muted); white-space: nowrap; }
.jm-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.jm-two { display: grid; gap: 16px; }
.jm-card {
	display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--jm-radius);
	background: var(--jm-surface); border: 1px solid var(--jm-line); text-decoration: none; box-shadow: var(--jm-shadow);
}
a.jm-card { transition: transform .15s, border-color .15s; }
a.jm-card:hover { transform: translateY(-2px); border-color: var(--jm-accent); }
.jm-card p { margin: 0; color: var(--jm-muted); }
.jm-link-arrow { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--jm-ink); }
.jm-store-mark {
	display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: 8px;
	background: var(--c); color: #fff; font-weight: 800; letter-spacing: -.01em;
}
.jm-store-mark.lg { font-size: 1.25rem; padding: 6px 14px; }
.jm-store-card { border-top: 4px solid var(--c); position: relative; }
.jm-badge-top { position: absolute; top: 14px; right: 14px; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--jm-accent); color: #111; }
.jm-cat-icon { font-size: 2rem; line-height: 1; }
.jm-cat-card b { font-size: 1.05rem; }

/* idea cards */
.jm-idea-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.jm-idea h3 { margin: 0; }
.jm-save {
	flex-shrink: 0; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
	padding: 6px 12px; border-radius: 999px; border: 1px solid var(--jm-line); background: transparent; color: var(--jm-ink);
}
.jm-save[aria-pressed="true"] { background: var(--jm-accent); border-color: var(--jm-accent); color: #111; }
.jm-store-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.jm-chip {
	padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; text-decoration: none;
	border: 1.5px solid var(--c); color: var(--jm-ink) !important;
}
.jm-chip:hover { background: var(--c); color: #fff !important; }

.jm-pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.jm-pill { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--jm-line); background: var(--jm-surface); text-decoration: none; font-weight: 600; }
.jm-pill:hover { border-color: var(--jm-accent); }

.jm-ticks, .jm-steps { margin: 0; padding-left: 0; list-style: none; }
.jm-ticks li { position: relative; padding: 6px 0 6px 28px; }
.jm-ticks li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--jm-wa); font-weight: 800; }
.jm-steps { counter-reset: s; }
.jm-steps li { counter-increment: s; position: relative; padding: 6px 0 6px 36px; }
.jm-steps li::before {
	content: counter(s); position: absolute; left: 0; top: 6px; width: 24px; height: 24px; border-radius: 50%;
	background: var(--jm-accent); color: #111; font-size: .8rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

.jm-table-wrap { overflow-x: auto; border: 1px solid var(--jm-line); border-radius: var(--jm-radius); background: var(--jm-bg); }
.jm-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.jm-table th, .jm-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--jm-line); vertical-align: middle; }
.jm-table tr:last-child td { border-bottom: 0; }
.jm-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--jm-muted); }
.jm-table td a { font-weight: 700; text-decoration: none; white-space: nowrap; }

.jm-why .jm-card b { font-size: 1.05rem; }
.jm-cta {
	display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 28px; border-radius: var(--jm-radius);
	background: var(--jm-dark); color: #fff;
}
.jm-cta h2 { color: #fff; margin: 0 0 4px; }
.jm-cta p { margin: 0; opacity: .8; }
.jm-note { font-size: .85rem; color: var(--jm-muted); margin: 20px 0 0; }
.jm-contact { align-items: flex-start; }
.jm-contact-icon { font-size: 1.6rem; }
.jm-contact .jm-btn { margin-top: 8px; }
.jm-info { margin-top: 20px; }
.jm-empty { align-items: center; text-align: center; padding: 36px 20px; }
.jm-empty .jm-btn { margin-top: 10px; }
.jm-post-card .jm-post-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.jm-pager { margin-top: 24px; display: flex; gap: 6px; flex-wrap: wrap; }
.jm-pager .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--jm-line); text-decoration: none; }
.jm-pager .current { background: var(--jm-ink); color: var(--jm-surface); }

/* My List */
.jm-list { display: grid; gap: 12px; }
.jm-list-item { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.jm-list-item .jm-store-btns { margin: 0; }
.jm-list-actions { margin-top: 20px; }
.jm-remove { font: inherit; font-size: .85rem; background: none; border: 0; color: var(--jm-muted); cursor: pointer; text-decoration: underline; }

/* prose pages */
.jm-prose { max-width: 820px; }
.jm-prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.jm-prose p, .jm-prose li { color: var(--jm-ink); }
.jm-prose .jm-lead { margin: 0 0 1em; max-width: none; }
.jm-prose a { color: var(--jm-ink); text-decoration-color: var(--jm-accent); text-decoration-thickness: 2px; }
.jm-prose ul:not(.jm-ticks) { padding-left: 1.3em; }
.jm-post-hero { width: 100%; border-radius: var(--jm-radius); margin: 16px 0; }

/* ---------- footer ---------- */
.jm-footer { background: var(--jm-dark); color: rgba(255, 255, 255, .8); padding: 48px 0 24px; margin-top: 0; }
.jm-footer .jm-brand { color: #fff; }
.jm-footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.jm-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.jm-footer-grid a:not(.jm-btn) { display: block; padding: 4px 0; text-decoration: none; color: rgba(255, 255, 255, .75); }
.jm-footer-grid a:not(.jm-btn):hover { color: #fff; }
.jm-footer-grid p { margin: 8px 0 16px; }
.jm-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px; font-size: .85rem; }
.jm-footer-bottom p { margin: 0 0 6px; }

/* toast */
.jm-toast {
	position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200;
	background: var(--jm-ink); color: var(--jm-surface); padding: 12px 20px; border-radius: 12px;
	font-weight: 600; box-shadow: var(--jm-shadow); max-width: calc(100vw - 32px);
}

/* ---------- responsive ---------- */
@media (min-width: 600px) {
	.jm-grid-3, .jm-grid-4, .jm-grid-5 { grid-template-columns: repeat(2, 1fr); }
	.jm-footer-grid { grid-template-columns: repeat(2, 1fr); }
	.jm-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 900px) {
	.jm-grid-3 { grid-template-columns: repeat(3, 1fr); }
	.jm-grid-4 { grid-template-columns: repeat(4, 1fr); }
	.jm-grid-5 { grid-template-columns: repeat(5, 1fr); }
	.jm-two { grid-template-columns: 1fr 1fr; }
	.jm-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (min-width: 1100px) {
	.jm-nav { display: flex; }
}
@media (max-width: 520px) {
	.jm-search-row { flex-wrap: wrap; border-radius: 18px; }
	.jm-search input[type="search"] { flex-basis: 100%; }
	.jm-search select { flex: 1; border-left: 0; padding: 10px; }
	.jm-search button { flex: 1; }
	.jm-brand { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}
