/* Let's Read — shop styles. Colours come from the logo and banner. */
:root {
  --teal: #2bb3c0;
  --teal-d: #1a8f9b;
  --orange: #f7a42b;
  --coral: #e8604f;
  --purple: #8b7bc1;
  --sky: #eaf6fd;
  --sky-2: #d7eefa;
  --ink: #23364a;
  --ink-2: #5b6b7c;
  --line: #e3edf3;
  --card: #ffffff;
  --bg: #f7fbfe;
  --radius: 18px;
  --shadow: 0 6px 22px rgba(35, 54, 74, 0.08);
  --font: 'Baloo Bhaijaan 2', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 1.2em; height: 1.2em; flex: none; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.block { margin-block: 36px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.center .btn { margin-top: 8px; }

/* announcement bar */
.announce { background: var(--teal); color: #fff; font-size: 14px; }
.announce .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.announce span { display: inline-flex; align-items: center; gap: 8px; }
.announce nav { display: flex; gap: 18px; }
.announce nav a:hover { text-decoration: underline; }
@media (max-width: 700px) { .announce nav { display: none; } .announce .wrap { justify-content: center; } }

/* header */
.site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head-row { display: flex; align-items: center; gap: 20px; padding-block: 10px; }
.logo img { height: 64px; width: auto; }
.search { flex: 1; display: flex; max-width: 520px; margin-inline: auto; background: var(--sky); border-radius: 999px; padding: 4px; border: 1px solid transparent; }
.search:focus-within { border-color: var(--teal); background: #fff; }
.search input { flex: 1; border: 0; background: transparent; padding: 8px 14px; min-width: 0; outline: none; }
.search button { border: 0; background: var(--teal); color: #fff; border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 700; }
.cart-btn:hover { filter: brightness(0.96); }
.cart-count { position: absolute; top: -6px; inset-inline-start: -6px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 13px; display: grid; place-items: center; padding-inline: 6px; border: 2px solid #fff; }
.main-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { white-space: nowrap; padding: 6px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; }
.main-nav a:hover { background: var(--sky); color: var(--ink); }
.main-nav a[aria-current] { background: var(--sky-2); color: var(--teal-d); }
@media (max-width: 700px) {
  .site-head { position: static; }
  .head-row { flex-wrap: wrap; gap: 10px; }
  .logo img { height: 48px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .cart-btn { margin-inline-start: auto; padding: 8px 14px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--teal); color: #fff; border: 0; border-radius: 14px; padding: 12px 26px; font-weight: 700; font-size: 18px; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: var(--teal-d); }
.btn:active { transform: scale(.98); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* hero */
.hero { background: var(--sky); }
.hero-banner img { width: 100%; max-width: 1672px; margin-inline: auto; }
.hero-cta { display: none; }
@media (max-width: 700px) { .hero-cta { display: flex; justify-content: center; padding-block: 4px 20px; } }

/* section titles */
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sec-title, .page-title { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.3; margin: 0 0 18px; color: var(--ink); font-weight: 800; }
.page-title { color: var(--teal-d); }
.more { display: inline-flex; align-items: center; gap: 4px; color: var(--teal-d); font-weight: 700; }
.more svg { transform: scaleX(-1); }

/* categories */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat { background: #fff; border-radius: var(--radius); padding: 14px 10px 12px; text-align: center; box-shadow: var(--shadow); transition: transform .2s; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cat:hover { transform: translateY(-4px); }
.cat-icon { height: 96px; display: grid; place-items: center; }
.cat-icon img { max-height: 96px; width: auto; }
.cat-name { color: #1878b5; font-weight: 700; font-size: 17px; line-height: 1.3; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .cat-icon, .cat-icon img { height: 72px; max-height: 72px; } .cat-name { font-size: 15px; } .cats { gap: 10px; } }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 1; background: var(--sky); display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.card.is-out .card-img img { opacity: .55; }
.noimg { font-size: 48px; }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; border-radius: 999px; padding: 2px 12px; font-size: 14px; font-weight: 700; color: #fff; }
.badge.out { background: var(--ink-2); }
.badge.sale { background: var(--coral); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-title { font-weight: 700; line-height: 1.35; font-size: 17px; }
.card-title:hover { color: var(--teal-d); }
.card-sub { color: var(--ink-2); font-size: 14px; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; color: var(--coral); font-size: 18px; }
.price s, .big-price s { color: var(--ink-2); font-weight: 500; font-size: .8em; margin-inline-start: 4px; }
.add { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--sky-2); color: var(--teal-d); border-radius: 12px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
.add:hover { background: var(--teal); color: #fff; }
@media (max-width: 420px) { .add span { display: none; } .add { padding: 8px; } }
.empty { color: var(--ink-2); padding: 24px 0; }
.count { color: var(--ink-2); margin: 0 0 12px; }

/* chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chips a { padding: 6px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; }
.chips a[aria-current] { background: var(--teal); border-color: var(--teal); color: #fff; }

/* perks */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk { background: #fff; border-radius: var(--radius); padding: 20px; display: grid; justify-items: center; text-align: center; gap: 2px; box-shadow: var(--shadow); }
.perk svg { width: 34px; height: 34px; color: var(--teal); margin-bottom: 4px; }
.perk b { font-size: 19px; }
.perk span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 640px) { .perks { grid-template-columns: 1fr; } .perk { grid-template-columns: auto 1fr; justify-items: start; text-align: start; column-gap: 12px; } .perk svg { grid-row: span 2; margin: 0; } }

/* book page */
.crumbs { color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
.crumbs a:hover { color: var(--teal-d); }
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 800px) { .book { grid-template-columns: 1fr; gap: 20px; } }
.main-img { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.main-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; border-radius: 12px; border: 2px solid var(--line); background: #fff; padding: 4px; cursor: pointer; }
.thumbs button[aria-current] { border-color: var(--teal); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.info h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.25; margin: 0; }
.info .en { color: var(--ink-2); margin: 2px 0 0; font-size: 18px; text-align: right; }
.big-price { font-size: 30px; font-weight: 800; color: var(--coral); margin: 14px 0 0; text-align: right; }
.stock { margin: 0; font-weight: 600; color: #2e9b5f; }
.stock.low { color: var(--orange); }
.stock.out { color: var(--ink-2); }
.buy { display: flex; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.qty button { width: 44px; height: 48px; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--teal-d); }
.qty input { width: 48px; text-align: center; border: 0; font-weight: 700; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.add-big { flex: 1; min-width: 200px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
.facts div { background: #fff; border-radius: 14px; padding: 10px 14px; border: 1px solid var(--line); }
.facts dt { color: var(--ink-2); font-size: 14px; }
.facts dd { margin: 0; font-weight: 700; }
.facts a { color: var(--teal-d); }
.desc p, .prose p { margin: 0 0 12px; }

/* cart */
.cart { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 860px) { .cart { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); margin-bottom: 12px; }
.line img { width: 84px; height: 84px; object-fit: contain; background: var(--sky); border-radius: 12px; padding: 4px; }
.line-title { font-weight: 700; line-height: 1.3; }
.line-meta { color: var(--ink-2); font-size: 14px; }
.line-warn { color: var(--coral); font-size: 14px; }
.line-end { display: grid; justify-items: end; gap: 6px; }
.line .qty button { width: 34px; height: 36px; font-size: 18px; }
.line .qty input { width: 36px; }
.remove { border: 0; background: none; color: var(--ink-2); font-size: 14px; cursor: pointer; text-decoration: underline; }
@media (max-width: 480px) { .line { grid-template-columns: 64px 1fr; } .line img { width: 64px; height: 64px; } .line-end { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; } }
.summary { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: sticky; top: 140px; }
@media (max-width: 860px) { .summary { position: static; } }
.field { display: grid; gap: 6px; font-weight: 600; margin-bottom: 12px; }
.field select { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.summary dl { margin: 0 0 12px; }
.summary dl div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; font-weight: 700; }
.summary .total dt, .summary .total dd { color: var(--ink); font-size: 20px; font-weight: 800; }
.free-note { background: #fff6e6; color: #9a6110; border-radius: 12px; padding: 8px 12px; font-size: 15px; margin: 0 0 12px; }
.secure { display: flex; gap: 6px; align-items: flex-start; color: var(--ink-2); font-size: 14px; margin: 10px 0 0; }
.secure svg { color: var(--teal); margin-top: 3px; }
.err { color: var(--coral); font-weight: 600; margin: 10px 0 0; }

/* thanks */
.thanks-star { margin: 0 auto 8px; }
.order-no { font-size: 20px; }
.thanks-items { list-style: none; padding: 0; margin: 18px auto; max-width: 460px; text-align: start; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.thanks-items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.thanks-items li.total { font-weight: 800; border: 0; }

/* contact */
.contact { display: grid; gap: 10px; }
.contact-row { display: flex; justify-content: space-between; background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); }
.contact-row b { color: var(--teal-d); }

/* footer */
.site-foot { background: #fff; border-top: 1px solid var(--line); margin-top: 56px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 24px; padding-block: 32px 20px; }
.foot-grid h3 { margin: 0 0 8px; font-size: 18px; color: var(--teal-d); }
.foot-grid a, .foot-grid span { display: block; color: var(--ink-2); padding: 2px 0; }
.foot-grid a:hover { color: var(--ink); }
.foot-grid p { color: var(--ink-2); margin: 8px 0 0; }
.foot-logo { width: 130px; }
.pay-note { display: inline-flex !important; align-items: center; gap: 6px; margin-top: 6px; }
.foot-base { border-top: 1px solid var(--line); padding-block: 14px; color: var(--ink-2); font-size: 14px; text-align: center; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); display: flex; gap: 14px; align-items: center; z-index: 50; max-width: calc(100% - 32px); }
.toast a { color: var(--orange); font-weight: 700; white-space: nowrap; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
