/* ============================================================
   আতিক হাবিব — ই-বুক স্টোর
   রঙ: কাগজ, কালি, গাঢ় সবুজ (পাতা) আর সরষে-হলুদ (কিনুন বাটন)
   ============================================================ */
:root {
  --paper: #F5F6F1;
  --paper-2: #E9ECE3;
  --white: #FFFFFF;
  --ink: #16231E;
  --muted: #56655E;
  --line: #D5DBD0;
  --leaf: #0F5C4A;
  --leaf-2: #0A4436;
  --marigold: #F2B233;
  --marigold-2: #DE9E16;
  --danger: #B3261E;

  --serif: "Tiro Bangla", "Noto Serif Bengali", Georgia, serif;
  --sans: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;

  --wrap: 1120px;
  --r-sm: 6px;
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--leaf-2); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
code { background: var(--paper-2); padding: 1px 6px; border-radius: 4px; font-size: .9em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.narrow { max-width: 760px; }
.page-top { padding-top: 56px; padding-bottom: 96px; }
.center { text-align: center; }
.meta { color: var(--muted); font-size: 15px; line-height: 1.55; }
.lead { font-size: 20px; }
.empty { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1.2 var(--sans);
  padding: 14px 22px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--leaf); color: #fff; }
.btn-primary:hover { background: var(--leaf-2); color: #fff; }
.btn-buy { background: var(--marigold); color: var(--ink); font-size: 18px; padding: 16px 30px; }
.btn-buy:hover { background: var(--marigold-2); color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-danger { background: var(--white); color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn-xs { padding: 7px 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 20px; min-height: 64px; position: relative; }
.brand { font-family: var(--serif); font-size: 23px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--leaf); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a, .nav-drop summary {
  display: block; padding: 8px 12px; border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.nav-links a:hover, .nav-drop summary:hover { background: var(--paper-2); color: var(--ink); }
.nav-login { border: 1.5px solid var(--ink); margin-left: 6px; }
.nav-buy { margin-left: auto; }
.menu-toggle { display: none; margin-left: auto; font: 600 15px var(--sans); background: none; border: 1.5px solid var(--ink); border-radius: var(--r-sm); padding: 6px 14px; color: var(--ink); cursor: pointer; }

.nav-drop { position: relative; }
.nav-drop summary { list-style: none; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: 3px;
  border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); transition: transform .15s;
}
.nav-drop[open] summary::after { transform: rotate(-135deg); vertical-align: 0; }
.drop-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 300px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 8px; box-shadow: 0 16px 40px -16px rgba(22, 35, 30, .35);
}
.drop-panel a { display: flex; align-items: center; gap: 12px; padding: 8px; white-space: normal; }
.drop-panel strong { display: block; font-weight: 600; line-height: 1.35; }
.drop-panel small { color: var(--muted); font-size: 14px; }
.drop-panel .drop-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; color: var(--leaf); font-weight: 600; border-radius: 0; }

/* ---------- Flash ---------- */
.flashes { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: var(--r-sm); margin: 0 0 16px; border-left: 4px solid; background: var(--white); }
.flash-success { background: #E3F0E9; border-color: var(--leaf); }
.flash-error { background: #F8E5E3; border-color: var(--danger); }
.flash-info { background: #FFF3D6; border-color: var(--marigold); }

/* ---------- Book object (the one bold element) ---------- */
.book {
  position: relative; display: block; aspect-ratio: 2 / 3; width: 100%;
  border-radius: 2px 7px 7px 2px; overflow: hidden;
  background: var(--cover, var(--leaf));
  box-shadow: 0 1px 1px rgba(22, 35, 30, .12), 0 22px 30px -20px rgba(22, 35, 30, .6);
}
.book::before { /* spine */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 7%; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.14) 55%, rgba(0,0,0,.1));
}
.book::after { /* page-edge sheen */
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 3px; background: rgba(255,255,255,.18);
}
.book img { width: 100%; height: 100%; object-fit: cover; }
.book-type { color: #fff; padding: 16% 12% 11% 17%; display: flex; flex-direction: column; justify-content: space-between; }
.book-type-title { font-family: var(--serif); font-size: 1.45em; line-height: 1.35; }
.book-type-author { font-size: .72em; opacity: .85; border-top: 1px solid rgba(255,255,255,.4); padding-top: .7em; }
.book-md { font-size: 17px; max-width: 220px; }
.book-lg { font-size: 24px; }
.book-sm { font-size: 9px; width: 84px; flex: none; }
.book-xs { width: 40px; flex: none; border-radius: 1px 3px 3px 1px; box-shadow: 0 6px 10px -6px rgba(22,35,30,.6); }
.book-xs .book-type-title, .book-xs .book-type-author, .book-sm .book-type-author { display: none; }
.book-shelf { font-size: 12px; }

/* ---------- Hero + shelf ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: end; padding-top: 88px; }
.hero-text { padding-bottom: 40px; }
.hero-name { font-size: clamp(56px, 9vw, 112px); line-height: 1.05; margin: 0 0 .3em; letter-spacing: -.01em; }
.hero-lede { font-size: 21px; color: var(--muted); max-width: 30em; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.shelf { align-self: end; }
.shelf-books { display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding: 0 20px; }
.shelf-item {
  display: block; flex: none; transform-origin: bottom center;
  animation: land .7s cubic-bezier(.2, .8, .25, 1) both; animation-delay: calc(var(--i) * 110ms + 150ms);
  transition: transform .2s;
}
.shelf-item:nth-child(1) { width: 132px; transform: rotate(-3deg); }
.shelf-item:nth-child(2) { width: 150px; }
.shelf-item:nth-child(3) { width: 124px; transform: rotate(2deg); }
.shelf-item:nth-child(4) { width: 118px; transform: rotate(7deg) translateX(4px); }
.shelf-item:hover { transform: translateY(-12px); }
.shelf-plank { height: 16px; background: var(--leaf); border-radius: 3px 3px 0 0; box-shadow: 0 8px 0 var(--leaf-2); }
@keyframes land { from { opacity: 0; translate: 0 -40px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Sections ---------- */
.section-title { font-size: clamp(30px, 4vw, 42px); }
.section-lede { color: var(--muted); max-width: 36em; margin-bottom: 48px; }
.books { padding-top: 120px; padding-bottom: 120px; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 56px 40px; }
.book-item-cover { display: block; max-width: 220px; }
.book-item h3 { font-size: 23px; margin: 24px 0 6px; }
.book-item h3 a { color: var(--ink); text-decoration: none; }
.book-item h3 a:hover { color: var(--leaf); }
.book-item-sub { color: var(--muted); font-size: 16px; line-height: 1.6; margin-bottom: 12px; }
.price-row { margin-bottom: 16px; }
.price { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.price-old { color: var(--muted); font-size: 17px; margin-right: 4px; }

/* ---------- About ---------- */
.about { background: var(--leaf); color: #E3EEE9; padding: 112px 0; }
.about-inner { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.about .section-title { color: #fff; }
.about-photo img, .monogram { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.monogram { display: grid; place-items: center; background: var(--leaf-2); color: var(--marigold); font-family: var(--serif); font-size: 140px; line-height: 1; }
.about-text p { max-width: 36em; font-size: 18px; }
.roles { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.22); max-width: 36em; }
.roles li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.roles strong { font-weight: 600; color: #fff; }
.roles span { color: #B7D1C7; text-align: right; }

/* ---------- Footer ---------- */
.site-footer { padding: 36px 0; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
.about + .site-footer, main:has(> .about:last-child) + .site-footer { border-top: 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

/* ---------- Landing page ---------- */
.lp-hero { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 72px; align-items: center; padding-top: 64px; padding-bottom: 88px; }
.lp-title { font-size: clamp(38px, 5.5vw, 62px); line-height: 1.2; }
.lp-sub { font-size: 21px; color: var(--muted); max-width: 30em; }
.lp-facts { font-size: 15px; color: var(--muted); }
.lp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin: 28px 0; }
.lp-price .price { font-size: 44px; line-height: 1; }
.lp-price-center { justify-content: center; }
.save-tag { background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; padding: 3px 10px; border-radius: 999px; align-self: center; }
.lp-note { font-size: 15px; color: var(--muted); margin-top: 16px; max-width: 34em; }
.lp-section { padding: 72px 0; border-top: 1px solid var(--line); }
.lp-inner { max-width: 760px; }
.prose p { font-size: 18px; line-height: 1.85; }

.checklist, .plainlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; font-size: 18px; }
.checklist li { position: relative; padding-left: 40px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plainlist li { padding-left: 24px; position: relative; }
.plainlist li::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 2px; background: var(--leaf); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step, bengali); display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--leaf); margin-bottom: 14px; }
.steps strong { display: block; font-size: 19px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 16px; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--leaf); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.lp-final { background: var(--paper-2); text-align: center; padding: 88px 0; }
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--white); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 24px -18px rgba(22,35,30,.5);
}
.buybar strong { display: block; font-size: 15px; line-height: 1.3; }
.buybar-price .price { font-size: 20px; }
.buybar-price .price-old { font-size: 14px; }

/* ---------- Checkout ---------- */
.co { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 96px; }
.co-main { grid-column: 1; grid-row: 1; max-width: 640px; }
.co-summary { grid-column: 2; grid-row: 1; position: sticky; top: 88px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.co-book { display: flex; gap: 16px; align-items: center; }
.co-book strong { font-size: 18px; line-height: 1.4; display: block; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.co-total > span:first-child { color: var(--muted); margin-right: auto; }
.co-title { font-size: 40px; }

.pay-box { background: var(--ink); color: #E8EDEA; border-radius: var(--r); padding: 26px 26px 20px; margin: 8px 0 40px; }
.pay-label { color: #B7C3BD; font-size: 15px; margin-bottom: 4px; }
.pay-number-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.pay-number { font-family: var(--serif); font-size: 36px; color: #fff; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.copy-btn { font: 600 14px var(--sans); background: var(--marigold); color: var(--ink); border: 0; border-radius: var(--r-sm); padding: 9px 14px; cursor: pointer; }
.copy-btn:hover { background: var(--marigold-2); }
.pay-steps { margin: 0; padding-left: 1.4em; list-style: bengali; border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px; }
.pay-steps li { margin-bottom: 6px; padding-left: 4px; }
.pay-steps strong { color: #fff; }

fieldset { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
legend { font-family: var(--serif); font-size: 24px; margin-bottom: 14px; padding: 0; }
.who { color: var(--muted); }
.field { margin-bottom: 20px; }
.field label, .field .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), .field textarea, .search input {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  padding: 12px 14px; background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { line-height: 1.6; resize: vertical; }
.field input:focus, .field textarea:focus, .search input:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(15, 92, 74, .18); }
.field .hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.field .err { font-size: 14px; color: var(--danger); margin: 6px 0 0; font-weight: 500; }
.field.has-err input, .field.has-err textarea { border-color: var(--danger); }
input.trx { text-transform: uppercase; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

.methods { display: flex; flex-wrap: wrap; gap: 10px; }
.method { position: relative; }
.method input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.method span {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 600; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.method span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--dot); }
.method input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.method input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }

/* ---------- Thank you / dashboard ---------- */
.status-card { display: flex; gap: 20px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 28px 0; }
.status-card strong { display: block; font-size: 18px; }
.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-top: 6px; }
.badge-pending { background: #FFEFC7; color: #6E4B00; }
.badge-approved { background: #D9EDE3; color: var(--leaf-2); }
.badge-rejected { background: #F6DCD9; color: var(--danger); }

.order-list { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.order-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.order-row .book-xs { width: 48px; }
.order-row strong { font-size: 18px; }
.empty-box { background: var(--white); border: 1px dashed var(--line); border-radius: var(--r); padding: 40px; text-align: center; margin-top: 32px; }

/* ---------- Auth ---------- */
.auth { max-width: 440px; margin: 0 auto; padding: 64px 20px 112px; }
.auth h1 { font-size: 38px; }
.auth form { margin-top: 24px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; font-size: 15px; }
.message .btn { margin-top: 8px; }

/* ---------- Admin ---------- */
body.admin { font-size: 16px; }
.admin-bar { background: var(--ink); }
.admin-bar .brand, .admin-bar .nav-links a { color: #fff; }
.admin-bar .nav-links a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { padding-top: 32px; padding-bottom: 80px; }
.admin-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { font-size: 34px; margin: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-size: 15px; }
.tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search { display: flex; gap: 6px; }
.search input { padding: 7px 12px; font-size: 15px; min-width: 240px; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 14px; border-bottom: 1px solid var(--line); }
th { background: var(--paper-2); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .meta { font-size: 14px; }
.trx { font-weight: 600; letter-spacing: .05em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.method-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.method-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.actions { min-width: 210px; }
.actions form { margin: 0 0 6px; }
.inline-form { display: flex; gap: 6px; }
.inline-form input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; }
.book-cell { display: flex; gap: 12px; align-items: center; }
.admin-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.span-2 { grid-column: 1 / -1; }
.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; margin-bottom: 20px; cursor: pointer; }
.current-file { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.current-file .check { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 56px; }
  .hero-text { padding-bottom: 8px; }
  .shelf-item:nth-child(1) { width: 96px; } .shelf-item:nth-child(2) { width: 110px; }
  .shelf-item:nth-child(3) { width: 92px; }  .shelf-item:nth-child(4) { width: 86px; }
  .book-shelf { font-size: 9px; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 220px; }
  .lp-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
  .lp-cover { max-width: 230px; }
  .lp-cover .book-lg { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .co { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .co-summary { grid-column: 1; grid-row: 1; position: static; }
  .co-main { grid-row: 2; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: -20px; right: -20px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-login { margin: 8px 0 0; text-align: center; }
  .drop-panel { position: static; min-width: 0; border: 0; box-shadow: none; background: transparent; padding: 0 0 0 8px; }
  .books { padding-top: 80px; padding-bottom: 80px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .book-md { font-size: 12px; }
  .book-item h3 { font-size: 19px; }
  .book-item-sub { font-size: 14px; }
  .price { font-size: 22px; }
  .about { padding: 80px 0; }
  .roles li { flex-direction: column; gap: 0; }
  .roles span { text-align: left; }
  .buybar { display: flex; }
  body.is-landing .site-footer { padding-bottom: 100px; }
  .pay-number { font-size: 30px; }
  .order-row { grid-template-columns: 40px 1fr; }
  .order-row .book-xs { width: 40px; }
  .order-action { grid-column: 2; }
  .search input { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.lp-note.center { margin-left: auto; margin-right: auto; }
