:root {
  --green-950: #06281e;
  --green-900: #0b3d2e;
  --green-800: #0f4c3a;
  --green-700: #146b4a;
  --green-600: #1b7a56;
  --green-100: #e7f3ec;
  --green-50: #f3faf6;
  --ink: #14241c;
  --muted: #5c6f66;
  --line: #d7e4dc;
  --paper: #f6f8f6;
  --white: #ffffff;
  --danger: #8c3a32;
  --shadow: 0 18px 40px rgba(6, 40, 30, 0.08);
  --serif: Fraunces, Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 560; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
.skip {
  position: absolute; left: 1rem; top: -4rem; background: white; color: var(--green-900);
  padding: .6rem 1rem; z-index: 20; border-radius: 8px;
}
.skip:focus { top: 1rem; }

.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 2rem)); }
.section { position: relative; z-index: 1; padding: 4.5rem 0; background: var(--paper); }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.6rem; }
.section-head p { margin: 0; color: var(--muted); max-width: 42rem; }
.eyebrow {
  margin: 0 0 .7rem; color: var(--green-700); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow.light { color: rgba(255,255,255,.78); }

.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1rem; }
.nav-row { display: flex; justify-content: center; padding: 0 1rem .85rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-mark img { width: auto; height: 68px; max-width: min(280px, 52vw); background: white; border-radius: 8px; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; }
.brand small { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; }
.nav {
  display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; justify-content: center;
  background: white; border: 1px solid var(--line); border-radius: 999px; padding: .28rem;
  box-shadow: 0 8px 22px rgba(6, 40, 30, .05);
}
.header-search, .admin-search { display: flex; align-items: center; gap: .35rem; }
.header-search { margin-left: .35rem; }
.header-search input, .admin-search input {
  width: 9.5rem; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: .45rem .8rem;
}
.admin-search { margin-left: auto; }
.admin-search input { background: white; }
.nav a {
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
  text-decoration: none; color: var(--green-900); padding: .48rem .82rem; border-radius: 999px; font-size: .9rem; font-weight: 650;
}
.nav a:hover { background: var(--green-100); }
.nav a.is-active { background: var(--green-900); color: white; }
.nav-cart svg { width: 16px; height: 16px; }
.nav svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-cart span {
  display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem;
  background: var(--green-900); color: white; border-radius: 999px; font-size: .72rem;
}
.nav-cart.is-active span { background: white; color: var(--green-900); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 0; }
.nav-toggle span { display: block; height: 2px; margin: 5px 10px; background: var(--green-900); }

.hero {
  position: relative; overflow: hidden; color: white;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(255,255,255,.14), transparent 55%),
    linear-gradient(155deg, #146b4a 0%, #0b3d2e 42%, #06281e 100%);
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -30% 40%; height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 68%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: 4.8rem 0 4.2rem; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); max-width: 12ch; color: white; }
.lead { font-size: 1.08rem; max-width: 38rem; color: rgba(255,255,255,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; align-items: end; }
.hero-covers a .fake { width: 100%; height: 100%; }
.hero-covers a, .hero-covers .fake {
  display: block; background: white; border-radius: 8px 14px 14px 8px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.22); aspect-ratio: 3/4;
}
.hero-covers a:nth-child(2) { transform: translateY(-16px); }
.hero-covers img, .cover img { width: 100%; height: 100%; object-fit: cover; }
.fake { display: grid !important; place-items: end start; padding: 1rem; color: white; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.18)), #0f4c3a !important; }
.fake strong { font-family: var(--serif); font-size: 1.4rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border-radius: 999px; padding: .85rem 1.25rem; text-decoration: none; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; background: transparent;
}
.btn-primary { background: var(--green-900); color: white; }
.btn-primary:hover { background: var(--green-800); }
.btn-light { background: white; color: var(--green-950); }
.btn-line { border-color: rgba(255,255,255,.55); color: white; }
.btn-line.dark { border-color: var(--green-900); color: var(--green-900); }
.btn-danger { border-color: #efd2cf; color: var(--danger); background: white; }
.btn-small { padding: .45rem .8rem; font-size: .88rem; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

.band { position: relative; z-index: 1; background: white; border-bottom: 1px solid var(--line); }
.band-grid, .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.band-grid div, .service { padding: 1.6rem 1.4rem; }
.band-grid div + div, .service + .service { border-left: 1px solid var(--line); }
.band-grid strong, .kicker-num { display: block; color: var(--green-700); font-size: .8rem; letter-spacing: .14em; margin-bottom: .4rem; }
.band-grid p, .service p { margin: 0; color: var(--muted); }

.book-grid, .news-grid, .ecatalog-grid { display: grid; gap: 1.2rem; }
.book-grid { grid-template-columns: repeat(4, 1fr); }
.news-grid { grid-template-columns: repeat(3, 1fr); }
.ecatalog-grid { grid-template-columns: repeat(3, 1fr); }
.book-card, .news-card, .panel, .info-card {
  background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.book-card { box-shadow: 0 1px 0 rgba(11, 61, 46, .02); }
.book-card:hover { box-shadow: var(--shadow); }
.cover { position: relative; display: block; aspect-ratio: 3/4; background: var(--green-100); }
.cover-fallback, .news-fallback {
  display: grid; place-items: end start; height: 100%; padding: 1rem; color: white;
  background: linear-gradient(160deg, #1b7a56, #0b3d2e); font-family: var(--serif); font-size: 1.5rem;
}
.badge {
  position: absolute; left: .7rem; top: .7rem; background: white; color: var(--green-900);
  border-radius: 999px; padding: .2rem .55rem; font-size: .75rem; font-weight: 700;
}
.book-card-body, .news-card-body { padding: 1rem 1rem 1.15rem; }
.meta { margin: 0 0 .25rem; color: var(--green-700); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.book-card h3, .news-card h3 { font-size: 1.25rem; margin: .1rem 0 .2rem; }
.book-card-body p { margin: 0; }
.book-card h3 a, .news-card h3 a { text-decoration: none; }
.author, .muted { color: var(--muted); }
.price { margin: .7rem 0 0; font-weight: 800; color: var(--green-900); }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.filters input, .filters select, .field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: white; border-radius: 12px; padding: .8rem .9rem;
}
.filters input { max-width: 280px; }
.field { margin-bottom: 1rem; }
.field label, .check { display: block; font-weight: 700; margin-bottom: .35rem; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 600; }
.check input { margin-top: .25rem; }
.help { color: var(--muted); font-size: .88rem; margin-top: .3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.span-2 { grid-column: span 2; }

.detail { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 2.4rem; align-items: start; }
.book-section { padding-top: 1.6rem; }
.crumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; color: var(--muted); font-size: .92rem; margin-bottom: 1.3rem; }
.crumb a { color: var(--green-800); text-decoration: none; font-weight: 650; }
.book-stage {
  position: sticky; top: 96px;
  background:
    radial-gradient(420px 220px at 20% 0%, rgba(255,255,255,.7), transparent 60%),
    linear-gradient(165deg, #eef7f2, #d7ebdf);
  border: 1px solid var(--line); border-radius: 28px; padding: 1.5rem;
}
.book-stage img, .book-stage .cover-fallback {
  width: min(100%, 320px); margin: 0 auto; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 4px 16px 16px 4px;
  box-shadow: 14px 22px 40px rgba(6, 40, 30, .22);
}
.book-kicker { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.book-kicker .eyebrow { margin: 0; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; background: var(--green-900); color: white; font-size: .75rem; font-weight: 700; padding: .2rem .65rem; }
.pill-soft { background: var(--green-100); color: var(--green-900); }
.book-copy h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); margin: .55rem 0 .35rem; }
.book-by { font-size: 1.15rem; font-weight: 700; margin-bottom: .2rem; }
.book-by span { color: var(--muted); font-weight: 500; }
.book-buy {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: white; border: 1px solid var(--line); border-radius: 20px; padding: 1rem 1.1rem; margin: 1.1rem 0 1.3rem;
  box-shadow: var(--shadow);
}
.book-buy .price { font-family: var(--serif); font-size: 2rem; margin: 0; line-height: 1; }
.book-buy .help { margin: .35rem 0 0; }
.spec-title { font-size: 1.35rem; margin: 1.4rem 0 .7rem; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 0; }
.spec-grid div { background: white; border: 1px solid var(--line); border-radius: 14px; padding: .75rem .85rem; }
.spec-grid dt { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.spec-grid dd { margin: .2rem 0 0; font-weight: 700; }
.related { margin-top: 3.5rem; }
.facts { display: grid; grid-template-columns: 140px 1fr; gap: .35rem .8rem; margin: 1rem 0 1.2rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 650; }
.prose p { font-size: 1.05rem; }
.qty-row { display: flex; gap: .6rem; align-items: center; }
.qty-row input { width: 74px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: .7rem .6rem; }

.cart-layout { display: grid; grid-template-columns: 1.45fr .75fr; gap: 1.2rem; align-items: start; }
.cart-card {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 1rem; align-items: center;
  background: white; border: 1px solid var(--line); border-radius: 20px; padding: 1rem; margin-bottom: .8rem;
}
.cart-cover { display: block; }
.cart-cover img, .cart-cover .cover-fallback {
  width: 96px; height: 128px; object-fit: cover; border-radius: 4px 12px 12px 4px;
  box-shadow: 8px 12px 22px rgba(6, 40, 30, .16); font-size: .95rem;
}
.cart-card h2 { font-size: 1.45rem; margin: 0 0 .15rem; }
.cart-card h2 a { text-decoration: none; }
.cart-card .muted { margin: 0 0 .7rem; }
.cart-actions { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; }
.cart-sub { margin: 0; font-family: var(--serif); font-size: 1.45rem; white-space: nowrap; }
.btn-text { background: none; border: 0; padding: 0; color: var(--danger); font-weight: 700; cursor: pointer; }
.cart-summary {
  position: sticky; top: 96px; background: white; border: 1px solid var(--line);
  border-radius: 22px; padding: 1.25rem; box-shadow: var(--shadow);
}
.cart-summary h2 { font-size: 1.6rem; }
.cart-summary .btn { width: 100%; margin-top: .4rem; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.sum-total { border-bottom: 0; padding-top: .9rem; }
.sum-total strong { font-family: var(--serif); font-size: 1.8rem; font-weight: 560; }
.cart-more { display: inline-block; margin-top: .8rem; color: var(--green-800); font-weight: 700; }
.cart-empty {
  max-width: 560px; margin: .4rem auto 0; text-align: center; background: white;
  border: 1px solid var(--line); border-radius: 24px; padding: 2.6rem 1.4rem;
}
.cart-empty h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 800; margin: 1rem 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.pay-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.2rem; }
.qris-frame { background: white; border-radius: 18px; padding: 1rem; border: 1px solid var(--line); text-align: center; }
.qris-frame img { width: min(320px, 100%); margin: .5rem auto; border-radius: 12px; border: 1px solid var(--line); }
.steps { margin: 0; padding-left: 1.1rem; }
.steps li { margin: .4rem 0; }
.code { font-family: var(--serif); font-size: 2rem; letter-spacing: .04em; }

.news-card img, .news-fallback { aspect-ratio: 16/10; width: 100%; object-fit: cover; display: block; }
.news-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.news-list .news-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr .85fr; }
.news-media { display: block; min-height: 0; background: var(--green-900); }
.news-feature .news-media img, .news-feature .news-fallback { height: 100%; aspect-ratio: auto; min-height: 240px; }
.news-card-body .muted { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { display: inline-flex; margin-top: .75rem; color: var(--green-800); font-weight: 700; text-decoration: none; }
.news-more:hover { color: var(--green-950); }
.article-section.section { padding-top: 1.5rem; }
.article-section h1 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 18ch; }
.article-cover { width: 100%; margin: .4rem 0 1.2rem; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--green-900); }
.article-cover img { display: block; width: 100%; max-height: 380px; object-fit: cover; }
.article-body { margin-bottom: 1.3rem; }
.ecatalog-grid a { display: block; background: white; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; }
.ecatalog-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.ecatalog-grid figcaption { padding: .9rem 1rem 1.1rem; }
.lightbox { position: fixed; inset: 0; background: rgba(6, 24, 18, .86); display: grid; place-items: center; z-index: 60; padding: 1.2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(980px, 100%); max-height: 90vh; background: white; border-radius: 12px; }

.cta {
  background: var(--green-900); color: white; border-radius: 28px; padding: 2.2rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.cta h2 { color: white; font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 16ch; }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.path-grid a { display: block; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem; text-decoration: none; min-height: 180px; }
.path-grid a:hover { border-color: var(--green-700); }
.path-grid strong { display: block; font-family: var(--serif); font-size: 1.7rem; margin-bottom: .4rem; }

.site-footer { background: var(--green-950); color: rgba(255,255,255,.86); padding: 3rem 0 1.4rem; margin-top: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr .8fr 1fr; gap: 1.5rem; }
.site-footer a { color: white; text-decoration: none; }
.site-footer h3 { color: white; font-size: 1.15rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.footer-address { margin: 0; max-width: 28ch; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; color: rgba(255,255,255,.62); font-size: .88rem; }
.footer-brand { display: flex; gap: .75rem; align-items: center; margin-bottom: .8rem; }
.footer-brand img { width: 46px; height: 46px; object-fit: contain; }
.footer-brand.brand-mark img { width: auto; height: 72px; max-width: 260px; background: white; border-radius: 10px; padding: .2rem .35rem; }

.alert { border-radius: 14px; padding: .9rem 1rem; margin: 1rem 0; }
.alert-success { background: #e7f6ee; color: #0b3d2e; }
.alert-error { background: #fdeceb; color: #6d2c26; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.empty { background: white; border: 1px dashed var(--line); border-radius: 18px; padding: 2rem 1.2rem; text-align: center; }
.pager { display: flex; gap: .8rem; align-items: center; justify-content: center; margin-top: 1.5rem; }
.pager a, .pager span { text-decoration: none; padding: .45rem .8rem; border-radius: 999px; background: white; border: 1px solid var(--line); }
.hp { position: absolute; left: -9999px; }

.admin { min-height: 100vh; background: var(--paper); }
.side {
  position: fixed; inset: 0 auto 0 0; z-index: 40; width: 272px; height: 100vh; overflow: auto;
  display: flex; flex-direction: column; gap: .35rem; background: var(--green-950); color: white;
  padding: 1rem .85rem 1rem; transition: transform .22s ease;
}
.side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.side-close {
  display: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12);
  color: white; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.side nav { display: flex; flex-direction: column; gap: .2rem; }
.side nav a {
  color: rgba(255,255,255,.88); text-decoration: none; display: flex; align-items: center; gap: .7rem;
  padding: .72rem .85rem; border-radius: 12px; font-weight: 600;
}
.side nav a svg, .side form .btn svg { width: 18px; height: 18px; flex: none; }
.side nav a svg *, .side form .btn svg * { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side form .btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.side nav a:hover { background: rgba(255,255,255,.08); }
.side nav a.is-active { background: white; color: var(--green-950); }
.side .brand { color: white; margin: 0; }
.side .brand-mark { display: block; }
.side .brand-mark img { width: 100%; height: auto; max-width: none; max-height: 74px; background: white; border-radius: 12px; padding: .35rem .45rem; }
.side .brand small { color: rgba(255,255,255,.7); }
.side-label { margin: .85rem .85rem .15rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.side form { margin-top: auto; padding-top: 1rem; }
.side form .btn { width: 100%; }
.side-backdrop { display: none; }
.admin-main { margin-left: 272px; padding: 0 1.4rem 1.6rem; transition: margin-left .22s ease; min-height: 100vh; }
.admin.is-collapsed .side { transform: translateX(-105%); }
.admin.is-collapsed .admin-main { margin-left: 0; }
.admin-bar {
  display: flex; align-items: center; gap: .75rem; position: sticky; top: 0; z-index: 15;
  margin: 0 -1.4rem 1.2rem; padding: .8rem 1.2rem; background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(10px);
}
.menu-btn {
  width: 42px; height: 42px; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 0; cursor: pointer;
}
.menu-btn span { display: block; height: 2px; margin: 5px 11px; background: var(--green-900); }
.admin-top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.admin-top h1 { font-size: clamp(2rem, 3vw, 2.6rem); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.stat { background: white; border: 1px solid var(--line); border-top: 3px solid var(--green-800); border-radius: 16px; padding: 1rem 1rem .85rem; }
.stat span { color: var(--muted); font-size: .84rem; font-weight: 700; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; margin-top: .15rem; }
.panel { padding: 1.15rem 1.2rem; margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: linear-gradient(160deg, #0b3d2e, #06281e); }
.login-card { width: min(440px, 100%); background: white; border-radius: 24px; padding: 1.5rem; }
.login-card img { display: block; width: auto; height: 96px; max-width: 100%; object-fit: contain; margin: 0 auto .9rem; }
.login-card h1, .login-card .muted { text-align: center; }
.notice { background: #fff7e8; border: 1px solid #f0e0bf; color: #6a4b12; border-radius: 14px; padding: .9rem 1rem; margin-bottom: 1rem; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.preview { width: 56px; height: 76px; object-fit: cover; border-radius: 8px; }
.preview-lg { width: 120px; height: 164px; margin-top: .7rem; }
.preview-empty { display: grid; place-items: center; background: var(--green-100); color: var(--green-900); font-size: .68rem; text-align: center; padding: .3rem; }
.crud-search { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.crud-search input { flex: 1 1 220px; max-width: 420px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: .75rem .9rem; }
.book-admin-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .9rem; align-items: center; padding: .95rem 0; border-top: 1px solid var(--line); }
.book-admin-row strong a { text-decoration: none; }
.book-admin-row .muted { margin: .15rem 0 .4rem; }
.book-admin-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .65rem; }
.book-admin-price { margin: 0; font-weight: 800; color: var(--green-900); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: .15rem .55rem; background: var(--green-900); color: white; font-size: .72rem; font-weight: 700; }
.tag-soft { background: var(--green-100); color: var(--green-900); }
.tag-line { background: white; color: var(--green-900); border: 1px solid var(--line); }
.tag-muted { background: #eef1ef; color: var(--muted); }
.form-sections { display: grid; gap: .9rem; }
.form-sections h2 { font-size: 1.35rem; margin-bottom: .8rem; }
.file-grid, .choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.choice-grid { grid-template-columns: repeat(3, 1fr); }
.choice { display: flex; gap: .65rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: .85rem; background: var(--paper); font-weight: 500; }
.choice input { margin-top: .25rem; }
.choice span { display: grid; gap: .15rem; }
.choice small { color: var(--muted); font-weight: 500; line-height: 1.4; }
.form-bar { display: flex; justify-content: flex-end; gap: .6rem; margin: 1rem 0 1.4rem; }
.ecatalog-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.ecatalog-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ecatalog-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--green-100); }
.ecatalog-card div { display: grid; gap: .35rem; padding: .85rem .9rem 1rem; }
.ecatalog-card .muted, .ecatalog-card strong { margin: 0; }
.ecatalog-card .field { margin: .2rem 0 0; }
.modal { width: min(520px, calc(100vw - 1.5rem)); max-height: calc(100vh - 2rem); overflow: auto; padding: 0; border: 0; border-radius: 18px; background: white; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(6, 24, 18, .52); }
.modal-card { padding: 1.15rem 1.2rem 1.25rem; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.modal-head h2 { margin: 0; font-size: 1.7rem; }
.modal-close { width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.modal-preview { width: 120px; height: 90px; object-fit: cover; border-radius: 12px; margin: .2rem 0 .8rem; }
.modal .form-bar { margin-bottom: 0; }
.file-list { display: grid; gap: .7rem; margin-bottom: 1.2rem; }
.file-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.file-row .muted { margin: .15rem 0 0; }
.ms-top { align-items: flex-start; }
.ms-top .tags { margin-top: .35rem; }
.ms-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: .9rem; align-items: start; }
.ms-person { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.ms-person strong { display: block; font-size: 1.05rem; }
.ms-person .muted { margin: 0; }
.ms-avatar { width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 16px; background: var(--green-900); color: white; font-family: var(--serif); font-size: 1.35rem; }
.ms-meta { display: grid; gap: .7rem; margin: 0; }
.ms-meta div { display: grid; gap: .05rem; }
.ms-meta dt { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ms-meta dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.ms-meta a { color: var(--green-800); }
.ms-grid h2 { font-size: 1.45rem; }
.ms-files { display: grid; gap: .7rem; }
.ms-file { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .4rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.ms-file-body { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.ms-file-mark { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--green-900); color: white; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.ms-file p { margin: .1rem 0 0; }
.price-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.price-head h1 { margin: 0; }
.price-note { margin: 0; color: var(--muted); font-style: italic; }
.price-pack { margin: 0 0 .7rem; background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.price-pack summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.1rem; cursor: pointer; font-weight: 700; list-style: none; }
.price-pack summary::-webkit-details-marker { display: none; }
.price-pack[open] summary { background: var(--green-50); color: var(--green-900); }
.price-chevron { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.price-pack[open] .price-chevron { transform: rotate(225deg); }
.price-pack-body { padding: .4rem 1rem 1.1rem; }
.price-pack-body h2 { text-align: center; font-size: 1.15rem; margin: 1rem 0 .6rem; }
.price-scroll { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.price-table th, .price-table td { padding: .7rem .8rem; border: 1px solid #d5e3dc; text-align: right; }
.price-table thead th { background: var(--green-800); color: white; text-align: center; font-weight: 700; }
.price-table thead th small { display: block; font-weight: 500; opacity: .85; }
.price-table tbody th { text-align: left; font-weight: 650; background: white; }
.price-table tbody tr:nth-child(even) td, .price-table tbody tr:nth-child(even) th { background: var(--green-50); }
.price-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.price-notes article { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.15rem 1.15rem; }
.price-notes h2 { font-size: 1.2rem; margin: 0 0 .6rem; }
.price-notes ul { margin: 0; padding-left: 1.1rem; }
.price-notes li { margin: .25rem 0; }
.paper-block { margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.paper-block-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.paper-block-head .field { flex: 1; }
.price-edit { width: 100%; border-collapse: collapse; min-width: 720px; }
.price-edit th, .price-edit td { padding: .3rem; vertical-align: middle; }
.price-edit input { width: 100%; }
.profile-block { margin-top: 1.6rem; }
.profile-block h2 { margin-bottom: .35rem; }
.contact-map { margin: 1.1rem 0 1.3rem; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: white; }
.contact-map iframe { display: block; width: 100%; height: 320px; border: 0; }
.contact-map figcaption { margin: 0; padding: .75rem 1rem; background: var(--green-900); color: white; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.2rem; align-items: start; }
.contact-layout h2 { margin-top: 0; }
.person { margin: 0 0 .7rem; padding: 1rem 1.05rem; border: 1px solid var(--line); border-radius: 16px; background: white; }
.person .eyebrow { margin-bottom: .25rem; }
.person p { margin: .25rem 0 0; }
.person a { color: var(--green-800); }
.sample-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .35rem; }
.sample-row label { margin: 0; }
.slide-upload .field { margin-bottom: .45rem; }
.slide-upload strong { font-size: .84rem; }
.cert-slider { position: relative; z-index: 0; isolation: isolate; overflow: hidden; background: white; border-bottom: 1px solid var(--line); }
.cert-viewport { overflow: clip; contain: paint; }
.cert-track { display: flex; flex-direction: row; transition: transform .45s ease; }
.cert-slide { flex: 0 0 100%; width: 100%; min-width: 100%; margin: 0; padding: 1.15rem 4.2rem .4rem; display: grid; justify-items: center; gap: .55rem; }
.cert-slide img { width: auto; max-width: min(920px, 100%); max-height: 420px; object-fit: contain; border-radius: 12px; background: var(--paper); }
.cert-slide figcaption { display: grid; justify-items: center; gap: .1rem; text-align: center; }
.cert-slide figcaption span { color: var(--muted); font-size: .92rem; }
.cert-arrow { position: absolute; top: 42%; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--green-900); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.cert-prev { left: 1rem; }
.cert-next { right: 1rem; }
.cert-dots { display: flex; justify-content: center; gap: .4rem; padding: 0 0 .9rem; }
.cert-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; }
.cert-dots button[aria-current="true"] { background: var(--green-900); width: 22px; }
.hero .cert-slider { border: 0; border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.hero .cert-slide { padding: .75rem 2.6rem .2rem; }
.hero .cert-slide img { max-height: 320px; }
.hero .cert-prev { left: .45rem; }
.hero .cert-next { right: .45rem; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; margin-left: auto; }
  .nav-row { padding: 0; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 25;
    border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); padding: .7rem .9rem 1rem;
    flex-direction: column; align-items: stretch;
  }
  .nav.is-open { display: flex; }
  .nav a { justify-content: flex-start; }
  .site-header { position: sticky; }
  .hero-grid, .detail, .pay-grid, .checkout-grid, .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .cart-summary { position: static; }
  .book-stage { position: static; }
  .book-stage img, .book-stage .cover-fallback { width: min(100%, 280px); }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-main { margin-left: 0; }
  .side { transform: translateX(-105%); }
  .admin.is-collapsed .side { transform: translateX(-105%); }
  .admin.is-open .side { transform: none; }
  .side-close { display: inline-grid; place-items: center; }
  .side-backdrop { position: fixed; inset: 0; z-index: 30; border: 0; padding: 0; background: rgba(6, 24, 18, .46); cursor: pointer; }
  .admin.is-open .side-backdrop { display: block; }
}
@media (max-width: 760px) {
  .header-bar, .admin-bar { flex-wrap: wrap; }
  .site-footer { padding: 1.25rem 0 .85rem; }
  .footer-brand { margin-bottom: .25rem; }
  .footer-brand.brand-mark img { height: 44px; max-width: 168px; }
  .footer-grid > :first-child p { display: none; }
  .site-footer h3 { font-size: .95rem; margin: 0 0 .2rem; }
  .site-footer li { margin: .1rem 0; font-size: .88rem; }
  .legal { margin-top: .75rem; padding-top: .65rem; font-size: .78rem; }
  .header-search, .admin-search { flex: 1 1 100%; margin: 0 0 .75rem; }
  .header-search input, .admin-search input { flex: 1; width: auto; }
  .admin-search { margin-left: 0; }
  .header-search { order: 3; }
  .header-bar { position: relative; }
  .book-grid, .news-grid, .ecatalog-grid, .path-grid, .band-grid, .service-grid, .form-grid, .contact-layout, .price-notes { grid-template-columns: 1fr; }
  .price-head { flex-direction: column; align-items: flex-start; }
  .contact-map iframe { height: 220px; }
  .book-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .news-list, .news-list .news-feature { grid-template-columns: 1fr; }
  .news-list .news-card:not(.news-feature) { display: grid; grid-template-columns: 92px minmax(0, 1fr); }
  .news-list .news-card:not(.news-feature) .news-media img,
  .news-list .news-card:not(.news-feature) .news-fallback { aspect-ratio: 1; height: 100%; font-size: .85rem; }
  .news-list .news-card:not(.news-feature) .muted { display: none; }
  .news-feature .news-media img, .news-feature .news-fallback { min-height: 0; aspect-ratio: 16/8; max-height: 180px; }
  .news-list .news-card-body { padding: .7rem .8rem .8rem; }
  .article-section.section { padding: .8rem 0 1.6rem; }
  .article-section h1 { font-size: 1.65rem; }
  .article-cover { margin: .2rem 0 .8rem; }
  .article-cover img { max-height: 150px; }
  .book-card-body { padding: .65rem .7rem .75rem; }
  .book-card h3 { font-size: 1.02rem; }
  .book-card .price { margin-top: .35rem; }
  .band-grid div + div, .service + .service { border-left: 0; border-top: 1px solid var(--line); }
  .section-head, .cta, .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-grid { padding: 2.6rem 0 2rem; }
  .hero-covers { display: flex; overflow: auto; }
  .hero-covers a, .hero-covers .fake { min-width: 42%; }
  .hero-covers a:nth-child(2) { transform: none; }
  .facts, .spec-grid { grid-template-columns: 1fr; }
  .book-buy .btn { width: auto; flex: 1; padding: .65rem .7rem; font-size: .88rem; }
  .qty-row { flex-wrap: nowrap; }
  .book-section.section { padding: .7rem 0 1.8rem; }
  .crumb { margin-bottom: .55rem; font-size: .82rem; }
  .detail { grid-template-columns: 104px minmax(0, 1fr); gap: .35rem .8rem; align-items: start; }
  .book-copy { display: contents; }
  .book-stage { grid-column: 1; grid-row: 1 / span 3; padding: .45rem; border-radius: 16px; }
  .book-stage img, .book-stage .cover-fallback { width: 100%; box-shadow: 6px 10px 16px rgba(6, 40, 30, .16); }
  .book-kicker, .book-copy h1, .book-by { grid-column: 2; }
  .book-copy h1 { font-size: 1.45rem; margin: .15rem 0; }
  .book-by { font-size: .92rem; margin: 0; }
  .book-buy, .prose, .spec-title, .spec-grid { grid-column: 1 / -1; }
  .book-buy { margin: .35rem 0 .5rem; padding: .75rem .8rem; border-radius: 16px; }
  .book-buy .price { font-size: 1.4rem; }
  .prose p { font-size: .95rem; }
  .spec-title { margin: .8rem 0 .45rem; font-size: 1.15rem; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .related { margin-top: 1.6rem; }
  .span-2 { grid-column: auto; }
  .book-admin-row { grid-template-columns: 64px minmax(0, 1fr); align-items: start; }
  .crud-search input { max-width: none; flex-basis: 100%; }
  .file-grid, .choice-grid { grid-template-columns: 1fr; }
  .form-bar { flex-direction: column; align-items: stretch; }
  .file-row { flex-direction: column; align-items: stretch; }
  .ms-top, .ms-file { flex-direction: column; align-items: stretch; }
  .cert-slide { padding: .85rem 2.8rem .2rem; }
  .cert-slide img { max-height: 220px; }
  .cert-arrow { width: 34px; height: 34px; }
  .cert-prev { left: .4rem; }
  .cert-next { right: .4rem; }
  .ms-grid { grid-template-columns: 1fr; }
  .cart-card { grid-template-columns: 78px 1fr; }
  .cart-sub { grid-column: 2; }
  .section { padding: 3rem 0; }
}
