:root {
  --ink: #14213d;
  --text: #2b3445;
  --muted: #5f6b7d;
  --bg: #ffffff;
  --soft: #f4f7fb;
  --line: #e3e8ef;
  --brand: #0f766e;
  --brand-dark: #0b5a54;
  --accent: #f59e0b;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 33, 61, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { color: var(--ink); line-height: 1.3; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
a { color: var(--brand); }

.btn {
  display: inline-block; background: var(--brand); color: #fff; text-decoration: none;
  padding: .7rem 1.3rem; border-radius: 999px; font-weight: 600; border: 2px solid var(--brand);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--soft); }
.btn-small { padding: .35rem .9rem; font-size: .95rem; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.15rem; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.links { display: flex; align-items: center; gap: 1.4rem; }
.links a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.links a:not(.btn):hover { color: var(--brand); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.3rem; padding: .2rem .6rem; cursor: pointer; }

/* hero */
.hero { background: linear-gradient(160deg, #ecfdf5 0%, #f4f7fb 55%, #fff 100%); padding: 64px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 600; letter-spacing: .02em; margin: 0 0 .5rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 40ch; }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 22px; border: 1px solid var(--line); }
.hc-row { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; }
.dot.ok { background: #16a34a; } .dot.warn { background: var(--accent); }
.hc-bar { height: 8px; background: var(--soft); border-radius: 99px; margin-top: 1rem; overflow: hidden; }
.hc-bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.hc-note { color: var(--muted); font-size: .9rem; margin: .5rem 0 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-size: 1.35rem; color: var(--ink); }
.stat span { color: var(--muted); }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--soft); }
.sub { color: var(--muted); margin: 0 0 2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(0,0,0,.02); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .tag { align-self: flex-start; background: #fef3c7; color: #92400e; font-size: .8rem; font-weight: 600; padding: .1rem .6rem; border-radius: 99px; margin-bottom: .6rem; }
.card p { color: var(--muted); margin: 0 0 .8rem; }
.card ul { margin: 0 0 1.2rem; padding-left: 1.1rem; color: var(--text); }
.card li { margin: .15rem 0; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.price { font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.price.ask { color: var(--muted); font-weight: 500; font-size: .95rem; }
.book-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; margin-bottom: .9rem; background: var(--soft); }
.empty { grid-column: 1 / -1; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; color: var(--muted); }

.subjects { margin-top: 2.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { background: #ecfdf5; color: var(--brand-dark); border: 1px solid #a7f3d0; padding: .3rem .9rem; border-radius: 99px; font-weight: 500; }

.why-item { padding: 6px 4px; }
.why-item .icon { font-size: 1.8rem; }
.why-item p { color: var(--muted); margin: .2rem 0 0; }

.contact { background: var(--ink); color: #dbe3ef; }
.contact h2 { color: #fff; }
.contact .sub { color: #aab6c8; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: .8rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 14px 16px; border-radius: 12px; color: #fff; text-decoration: none; }
.contact-item:hover { background: rgba(255,255,255,.12); }
.contact-item small { display: block; color: #aab6c8; }

.footer { background: #0d1628; color: #8c99ad; padding: 22px 0; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer a { color: #8c99ad; }

.notice { background: var(--accent); color: #3b2300; text-align: center; font-weight: 600; padding: .45rem 1rem; font-size: .95rem; }
.logo-img { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; background: #fff; }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; margin-bottom: .9rem; background: var(--soft); }
.card.book .book-img { aspect-ratio: 1/1; object-fit: contain; }
.card .tag-blue { background: #dbeafe; color: #1e40af; }
.price s { color: #94a3b8; font-weight: 400; font-size: .9rem; margin-left: .2rem; }
.price em { font-style: normal; background: #dcfce7; color: #166534; font-size: .78rem; padding: .05rem .45rem; border-radius: 99px; margin-left: .2rem; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: -1rem 0 1.5rem; }
.filter { font: inherit; background: #fff; border: 1px solid var(--line); color: var(--text); padding: .3rem 1rem; border-radius: 99px; cursor: pointer; }
.filter.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.more { text-align: center; margin-top: 2rem; }
.ci-icon { font-size: 1.4rem; }
.card.trainer { flex-direction: row; gap: 18px; align-items: flex-start; }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-text { display: grid; place-items: center; background: #ecfdf5; color: var(--brand-dark); font-weight: 700; font-size: 1.6rem; border: 2px solid #a7f3d0; }
.role { color: var(--brand) !important; font-weight: 600; }
.soon { margin-top: 24px; background: linear-gradient(135deg, #eff6ff, #ecfdf5); border: 1px dashed #93c5fd; border-radius: var(--radius); padding: 20px 22px; }
.soon p { color: var(--muted); margin: 0; }

/* shop */
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { font: inherit; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; cursor: pointer; color: var(--ink); position: relative; font-weight: 500; }
.icon-btn:hover { border-color: var(--brand); }
.badge { position: absolute; top: -6px; right: -6px; background: var(--accent); color: #3b2300; font-size: .75rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; padding: 0 5px; }
button.btn { font: inherit; cursor: pointer; }
button.btn:disabled { opacity: .6; cursor: wait; }
dialog#modal { border: none; border-radius: 16px; padding: 28px 24px 24px; width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--text); }
dialog#modal::backdrop { background: rgba(13, 22, 40, .55); }
.modal-close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
#modal-body h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.form { display: grid; gap: .8rem; }
.form label { display: grid; gap: .25rem; font-weight: 500; font-size: .95rem; }
.form input, .form textarea { font: inherit; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid #99f6e4; border-color: var(--brand); }
.form .btn { width: 100%; }
.form-error { color: #b91c1c; margin: 0; min-height: 1.2em; font-size: .95rem; }
.form-links { text-align: center; margin: .2rem 0 0; font-size: .95rem; }
.area { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .8rem; display: grid; gap: .3rem; }
.area label { display: flex; gap: .5rem; font-weight: 400; }
.area input { width: auto; }
.muted { color: var(--muted); font-size: .92rem; margin: .2rem 0; }
.cart-lines { display: grid; gap: .6rem; max-height: 50vh; overflow: auto; }
.cart-line { display: flex; align-items: center; gap: .7rem; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.cart-line img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.cl-info { flex: 1; display: grid; font-size: .95rem; line-height: 1.35; }
.cl-info small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: .4rem; }
.qty button, .remove { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1rem; }
.remove { border: none; color: var(--muted); }
.cart-total { font-size: 1.1rem; margin: .8rem 0 .2rem; }
.order-row { display: flex; justify-content: space-between; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.order-row small { color: var(--muted); }
.status { font-size: .8rem; padding: .05rem .5rem; border-radius: 99px; background: #fef3c7; color: #92400e; }
.status.s-delivered, .status.s-confirmed { background: #dcfce7; color: #166534; }
.status.s-cancelled { background: #fee2e2; color: #991b1b; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .6rem 1.1rem; border-radius: 99px; z-index: 50; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

@media (max-width: 820px) {
  .hero-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .stats { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 1rem; align-items: flex-start; }
  .links.open { display: flex; }
}
