/* ============================================================
   Inkwell Press — "Author & Writer" style storefront
   Orange + navy on peach/white · Poppins · soft cards
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --orange:   #f7941d;
  --orange-d: #e07314;
  --orange-l: #ffb24e;
  --navy:     #20203a;
  --navy-d:   #16162b;
  --peach:    #fdeada;
  --peach-2:  #fff4e8;
  --text:     #51515f;
  --muted:    #8b8b99;
  --line:     #ededf2;
  --white:    #ffffff;
  --font:     "Poppins", "Segoe UI", "Microsoft YaHei", sans-serif;
  --shadow:   0 22px 50px -26px rgba(31,31,58,.35);
  --shadow-sm:0 12px 30px -20px rgba(31,31,58,.4);
  --radius:   12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font); color: var(--text); background: var(--white);
  line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.18; letter-spacing: -.01em; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: 90px 0; }
.section--peach { background: var(--peach-2); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .2em; font-size: .75rem;
  font-weight: 700; color: var(--orange); margin-bottom: 1rem;
}
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); margin-top: .8rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .8rem 1.7rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .25s, background .25s, color .25s, box-shadow .25s;
}
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 12px 26px -12px rgba(247,148,29,.9); }
.btn--orange:hover { background: var(--orange-d); transform: translateY(-3px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-d); transform: translateY(-3px); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }

/* ============================================================
   Top bar
   ============================================================ */
.topbar { background: var(--orange); color: #fff; font-size: .82rem; padding: .55rem 0; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar__msg { display: flex; align-items: center; gap: .5rem; }
.topbar__right { display: flex; align-items: center; gap: 1rem; }
.topbar__right a { opacity: .9; transition: opacity .2s; }
.topbar__right a:hover { opacity: 1; }
.topbar__social { display: flex; gap: .8rem; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 10px 30px -20px rgba(31,31,58,.3); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .6rem; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--orange-l), var(--orange)); box-shadow: 0 8px 16px -8px rgba(247,148,29,.9);
  font-size: 1.2rem; font-weight: 800;
}
.brand__text { font-size: 1.25rem; font-weight: 700; color: var(--navy); }

.nav { display: flex; gap: 1.9rem; margin-left: auto; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--navy); position: relative; padding: 3px 0; transition: color .2s; }
.nav a:hover, .nav a.is-current { color: var(--orange); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--orange); transition: width .3s; }
.nav a:hover::after, .nav a.is-current::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: .8rem; }
.signin-btn { background: var(--orange); color: #fff; font-weight: 600; font-size: .9rem; padding: .55rem 1.3rem; border-radius: 8px; transition: .2s; }
.signin-btn:hover { background: var(--orange-d); transform: translateY(-2px); }
.cart-btn {
  position: relative; width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 8px;
  display: grid; place-items: center; font-size: 1.15rem; color: var(--navy); transition: .2s;
}
.cart-btn:hover { border-color: var(--orange); background: var(--peach-2); }
.cart-btn__count {
  position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--orange); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 20px;
  display: grid; place-items: center; box-shadow: 0 2px 6px rgba(247,148,29,.7);
}
.cart-btn__count.is-empty { background: var(--muted); box-shadow: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); transition: .3s; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; background: var(--peach); padding: 70px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(224,115,39,.07) 1px, transparent 1px); background-size: 24px 24px; opacity: .7;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5.4vw, 3.7rem); font-weight: 800; margin: .4rem 0 1.6rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px;
  border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; font-size: 1.4rem;
  background: rgba(255,255,255,.7); color: var(--navy); box-shadow: var(--shadow-sm); transition: .25s;
}
.hero__arrow--prev { left: 12px; }
.hero__arrow--next { right: 12px; background: var(--orange); color: #fff; }
.hero__arrow:hover { background: var(--orange-d); color: #fff; }

/* Hero book mock-ups */
.hero__art { position: relative; height: 420px; display: grid; place-items: center; }
.hero-book {
  position: absolute; border-radius: 8px 14px 14px 8px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; padding: 1.6rem 1.4rem; overflow: hidden;
}
.hero-book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: rgba(0,0,0,.12); }
.hero-book--back {
  width: 250px; height: 340px; left: 28%; top: 30px; transform: rotate(-4deg);
  background: linear-gradient(150deg, #cfe6e3, #a9d2cd);
}
.hero-book--back .hero-book__plate { margin: auto; width: 92px; height: 92px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); display: grid; place-items: center; color: #5b8b86; font-size: .7rem; letter-spacing: .12em; text-align: center; }
.hero-book--front {
  width: 200px; height: 280px; right: 18%; top: 70px; transform: rotate(5deg);
  background: linear-gradient(160deg, #2fb6a8, #169184); color: #fff; text-align: center; animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-12px); } }
.hero-book--front .hb-small { font-size: .8rem; letter-spacing: .1em; margin-top: .4rem; }
.hero-book--front .hb-script { font-size: 2.1rem; font-weight: 800; color: var(--orange-l); line-height: 1.1; margin: .3rem 0; }
.hero-book--front .hb-big { font-size: 1.5rem; font-weight: 700; letter-spacing: .15em; margin-top: auto; }

/* ============================================================
   Book cards  (My personal favorites / catalogue)
   ============================================================ */
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.bookcard {
  background: var(--white); border-radius: var(--radius); padding: 16px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
}
.bookcard:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.cover {
  aspect-ratio: 3/4.1; border-radius: 8px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; padding: 1.2rem 1rem; color: #fff; text-align: left;
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.5);
}
.cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: rgba(0,0,0,.16); }
.cover__cat { font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.cover__title { font-size: 1.5rem; font-weight: 800; line-height: 1.05; margin-top: .4rem; }
.cover__rule { width: 34px; height: 3px; background: currentColor; opacity: .7; margin: .7rem 0; }
.cover__author { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-top: auto; opacity: .9; }
.cover--ink { color: #2a2a2a; }
.cover--ink::before { background: rgba(0,0,0,.1); }
.bookcard__tag { position: absolute; top: .7rem; right: .7rem; background: var(--navy); color: #fff; font-size: .6rem; font-weight: 600; padding: .2rem .6rem; border-radius: 20px; letter-spacing: .04em; }

.bookcard__title { font-size: 1.02rem; font-weight: 600; margin-top: 1rem; }
.bookcard__title a:hover { color: var(--orange); }
.bookcard__by { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: .2rem; }
.bookcard__by b { color: var(--orange); }
.bookcard__foot { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: .7rem; }
.bookcard__price { font-weight: 700; color: var(--navy); font-size: 1rem; }
.bookcard__price del { color: var(--muted); font-weight: 400; font-size: .88rem; margin-right: .35rem; }
.bookcard__cart {
  width: 36px; height: 36px; border-radius: 8px; border: none; cursor: pointer; background: var(--peach);
  color: var(--orange-d); font-size: .95rem; display: grid; place-items: center; transition: .2s;
}
.bookcard__cart:hover { background: var(--orange); color: #fff; }

/* ============================================================
   Categories strip
   ============================================================ */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center; transition: .3s;
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.cat-tile__icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: var(--peach); }
.cat-tile h3 { font-size: 1.15rem; }
.cat-tile p { color: var(--muted); font-size: .85rem; margin-top: .3rem; }

/* ============================================================
   Feature band (about / quote)
   ============================================================ */
.feature { background: var(--peach-2); }
.feature__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature__art { position: relative; aspect-ratio: 1/1; border-radius: 20px; background: linear-gradient(150deg, var(--navy), var(--navy-d)); display: grid; place-items: center; box-shadow: var(--shadow); }
.feature__art span { color: var(--orange-l); font-weight: 800; font-size: 1.6rem; letter-spacing: .3em; }
.feature__art::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; }
.feature h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 1.2rem; }
.feature p { color: var(--text); margin-bottom: 1rem; }
.feature__list { list-style: none; margin: 0 0 1.8rem; }
.feature__list li { display: flex; gap: .6rem; padding: .35rem 0; }
.feature__list span { color: var(--orange); font-weight: 700; }
.feature__stats { display: flex; gap: 2.5rem; margin: 1.6rem 0 2rem; }
.feature__stats strong { display: block; font-size: 2rem; color: var(--navy); }
.feature__stats em { font-style: normal; font-size: .82rem; color: var(--muted); }

/* ============================================================
   Quote
   ============================================================ */
.quote { background: var(--navy); color: #fff; text-align: center; padding: 86px 0; position: relative; }
.quote::before { content: "\201C"; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 8rem; color: rgba(247,148,29,.3); }
.quote blockquote { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 600; line-height: 1.6; max-width: 48rem; margin: 0 auto 1.2rem; position: relative; }
.quote cite { font-style: normal; color: var(--orange-l); font-weight: 500; }

/* ============================================================
   Blog / journal
   ============================================================ */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .3s; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post__thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--peach-2); }
.post__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.post:hover .post__img { transform: scale(1.04); }
.pt1 { background: linear-gradient(135deg, #f7941d, #e07314); }
.pt2 { background: linear-gradient(135deg, #2fb6a8, #169184); }
.pt3 { background: linear-gradient(135deg, #20203a, #3a3a5e); }
.post__body { padding: 1.4rem 1.5rem 1.7rem; }
.post__cat { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.post__body h3 { font-size: 1.2rem; margin: .5rem 0 .6rem; }
.post__body p { font-size: .9rem; color: var(--muted); margin-bottom: .9rem; }
.post__meta { font-size: .78rem; color: var(--muted); }

/* ============================================================
   Newsletter
   ============================================================ */
.newsletter { background: linear-gradient(120deg, var(--orange), var(--orange-d)); color: #fff; padding: 70px 0; }
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.newsletter p { opacity: .92; margin-top: .6rem; }
.newsletter__form { display: flex; gap: .7rem; flex-wrap: wrap; }
.newsletter__form input { flex: 1 1 240px; padding: .95rem 1.2rem; border: none; border-radius: 8px; font-family: var(--font); font-size: .95rem; color: var(--navy); }
.newsletter__form input:focus { outline: 3px solid rgba(255,255,255,.5); }
.newsletter__form .btn--navy { background: var(--navy); }
.newsletter__note { flex-basis: 100%; font-size: .8rem; opacity: .85; margin-top: .2rem; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--navy-d); color: #b6b6c8; padding-top: 70px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.footer__brand .brand__text { color: #fff; }
.footer__brand p { margin-top: 1rem; font-size: .9rem; line-height: 1.8; }
.footer__col h4 { color: var(--orange-l); font-size: 1rem; margin-bottom: 1.1rem; }
.footer__col a { display: block; font-size: .9rem; padding: .32rem 0; color: #b6b6c8; transition: color .2s; }
.footer__col a:hover { color: var(--orange-l); }
.footer__contact p { font-size: .9rem; padding: .3rem 0; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0; }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; color: #80808f; }

/* ---------- Toast + to-top ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 90;
  background: var(--navy); color: #fff; padding: .85rem 1.5rem; border-radius: 8px; font-size: .92rem;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s; border-left: 3px solid var(--orange);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.to-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; background: var(--orange); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--shadow); z-index: 60; }
.to-top:hover { background: var(--orange-d); }

/* ---------- Page banner ---------- */
.pagehero { background: var(--peach); text-align: center; padding: 64px 0; }
.pagehero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.pagehero p { color: var(--text); max-width: 36rem; margin: .8rem auto 0; }
.pagehero__crumb { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.pagehero__crumb a { color: var(--orange); }

/* ---------- Catalogue toolbar / chips ---------- */
.book-filters { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 30px; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--navy); padding: .5rem 1.2rem; border-radius: 30px; font-size: .88rem; cursor: pointer; transition: .2s; font-family: var(--font); }
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip.is-active { background: var(--orange); color: #fff; border-color: var(--orange); }
.cat-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 26px; }
.cat-count { color: var(--muted); font-size: .9rem; }
.cat-sort select { padding: .5rem .9rem; border: 1.5px solid var(--line); border-radius: 8px; font-family: var(--font); color: var(--navy); cursor: pointer; }
.cat-search { display: flex; gap: .5rem; flex: 1 1 260px; max-width: 420px; }
.cat-search input { flex: 1; padding: .55rem 1rem; border: 1.5px solid var(--line); border-radius: 8px; font-family: var(--font); }
.cat-search input:focus { outline: 2px solid var(--orange); border-color: transparent; }
.cat-search .btn { padding: .55rem 1.2rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: 44px; flex-wrap: wrap; }
.pagination button { min-width: 42px; height: 42px; padding: 0 .6rem; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; font-family: var(--font); font-weight: 500; color: var(--navy); transition: .2s; }
.pagination button:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.pagination button.is-active { background: var(--orange); color: #fff; border-color: var(--orange); }
.pagination button:disabled { opacity: .4; cursor: default; }
.pagination__gap { color: var(--muted); padding: 0 .2rem; }

/* Image-based covers (when a product has an `image` URL) */
.cover--img { padding: 0; background: #f2f2f6; }
.cover--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover--img::before { display: none; }
.cover--img .bookcard__tag { z-index: 2; }

/* External product / official links on the detail page */
.pdp__links { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.6rem; }

/* Grid status messages + category chip counts */
.grid-msg { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
.chip small { opacity: .65; font-weight: 400; }

/* ============================================================
   Product detail page
   ============================================================ */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 26px 0 6px; }
.breadcrumb a { color: var(--navy); }
.breadcrumb a:hover { color: var(--orange); }
.pdp__grid { display: grid; grid-template-columns: .8fr 1fr; gap: 56px; align-items: start; margin: 16px 0 60px; }
.pdp__cover { position: sticky; top: 100px; max-width: 360px; }
.pdp__cover .cover { aspect-ratio: 3/4.1; }
.pdp__info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .4rem 0; }
.pdp__author { color: var(--muted); margin-bottom: 1rem; }
.pdp__author b { color: var(--orange); }
.pdp__rating { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.stars { color: var(--orange); letter-spacing: .1em; }
.pdp__price { font-size: 2rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.pdp__price del { color: var(--muted); font-weight: 400; font-size: 1.3rem; margin-right: .5rem; }
.pdp__save { background: #fff1e0; color: var(--orange-d); font-size: .8rem; font-weight: 700; padding: .25rem .7rem; border-radius: 30px; margin-left: .4rem; }
.pdp__lead { color: var(--text); margin-bottom: 1.6rem; max-width: 34em; }
.pdp__buy { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.8rem; }
.pdp__cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.pdp__meta { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 2rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.pdp__meta li { font-size: .9rem; display: flex; justify-content: space-between; border-bottom: 1px dotted var(--line); padding-bottom: .35rem; }
.pdp__meta span { color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 40px; height: 46px; border: none; background: none; font-size: 1.2rem; cursor: pointer; color: var(--navy); }
.qty button:hover { background: var(--peach); }
.qty input { width: 44px; height: 46px; border: none; text-align: center; font-family: var(--font); font-size: 1rem; }
.qty input:focus { outline: none; }
.qty--sm button { width: 32px; height: 36px; }
.qty--sm input { width: 36px; height: 36px; }

.pdp__tabs { margin-bottom: 70px; }
.tabbar { display: flex; gap: .4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; flex-wrap: wrap; }
.tab { border: none; background: none; padding: .8rem 1.3rem; font-family: var(--font); font-size: 1rem; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.is-active { color: var(--navy); border-color: var(--orange); }
.tabpanel { display: none; max-width: 60rem; color: var(--text); }
.tabpanel.is-active { display: block; }
.spec { width: 100%; max-width: 36rem; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: .6rem 1rem; border-bottom: 1px solid var(--line); font-weight: 400; }
.spec th { color: var(--muted); width: 35%; }
.review { background: var(--peach-2); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.review__head { display: flex; justify-content: space-between; margin-bottom: .4rem; }
.review__head strong { color: var(--navy); }
.section-head--left { text-align: left; max-width: none; margin-bottom: 30px; }

/* ============================================================
   Authors page
   ============================================================ */
.author-list { display: grid; gap: 24px; }
.author-row { display: grid; grid-template-columns: 130px 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.9rem; transition: .3s; }
.author-row:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.author-row__avatar { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; color: #fff; box-shadow: var(--shadow); }
.author-row__role { color: var(--orange); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.author-row h3 { font-size: 1.5rem; margin: .2rem 0 .5rem; }
.author-row__bio { color: var(--muted); margin-bottom: .9rem; }
.author-row__books { display: flex; flex-wrap: wrap; gap: .5rem; }
.author-row__books a { font-size: .8rem; border: 1px solid var(--line); border-radius: 30px; padding: .3rem .9rem; transition: .2s; }
.author-row__books a:hover { border-color: var(--orange); color: var(--orange); }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info__item { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-info__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--peach); color: var(--orange-d); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-info__item h4 { font-size: 1.05rem; margin-bottom: .2rem; }
.contact-info__item p { color: var(--muted); font-size: .9rem; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.1rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 8px; font-family: var(--font); font-size: .95rem; background: var(--peach-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); border-color: transparent; }
.field textarea { resize: vertical; min-height: 130px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-note { font-size: .9rem; color: var(--orange-d); margin-top: .6rem; min-height: 1.2em; font-weight: 600; }
.map-strip { margin-top: 50px; height: 240px; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy), var(--navy-d)); display: grid; place-items: center; color: var(--orange-l); font-weight: 700; letter-spacing: .15em; }

/* ============================================================
   Cart page
   ============================================================ */
.cartpage { padding-bottom: 90px; min-height: 60vh; }
.cartpage__title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 6px 0 30px; }
.cartpage__grid { display: grid; grid-template-columns: 1fr 350px; gap: 36px; align-items: start; }
.cart-items { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1.5rem; }
.cart-row { display: grid; grid-template-columns: 2.4fr .7fr 1fr .8fr auto; gap: 1rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.cart-row--head { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 1rem 0 .5rem; }
.cart-prod { display: flex; gap: 1rem; align-items: center; }
.cart-prod__cover { width: 52px; height: 70px; border-radius: 6px; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.cart-prod__cover::before { display: none; }
.cart-prod__title { display: block; font-weight: 600; color: var(--navy); }
.cart-prod__title:hover { color: var(--orange); }
.cart-prod__author { display: block; font-size: .8rem; color: var(--muted); }
.cart-cell--total { font-weight: 700; color: var(--navy); }
.cart-remove { border: none; background: none; color: var(--muted); font-size: 1rem; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; }
.cart-remove:hover { background: var(--peach); color: var(--orange-d); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0 .5rem; }
.cart-continue { font-weight: 500; color: var(--navy); }
.cart-continue:hover { color: var(--orange); }
.cart-clear { border: none; background: none; color: var(--muted); cursor: pointer; font-size: .88rem; text-decoration: underline; }
.cart-clear:hover { color: var(--orange-d); }
.cart-summary { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.9rem 1.7rem; position: sticky; top: 100px; box-shadow: var(--shadow); }
.cart-summary h2 { color: #fff; font-size: 1.4rem; margin-bottom: 1.2rem; }
.cart-summary__row { display: flex; justify-content: space-between; padding: .55rem 0; font-size: .95rem; color: #c7c7d6; }
.cart-summary__hint { font-size: .8rem; color: var(--orange-l); padding-bottom: .3rem; }
.cart-summary__row--total { border-top: 1px solid rgba(255,255,255,.15); margin-top: .5rem; padding-top: 1rem; font-size: 1.2rem; color: #fff; font-weight: 700; }
.cart-summary__checkout { width: 100%; margin: 1.3rem 0 1rem; }
.cart-summary__promo { display: flex; gap: .5rem; margin-bottom: 1rem; }
.cart-summary__promo input { flex: 1; padding: .65rem 1rem; border: none; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; font-family: var(--font); }
.cart-summary__promo input::placeholder { color: #9a9aab; }
.cart-summary__promo button { padding: .65rem 1rem; border: 1px solid rgba(255,255,255,.25); background: none; color: #fff; border-radius: 8px; cursor: pointer; }
.cart-summary__safe { font-size: .8rem; color: #9a9aab; text-align: center; }
.cart-empty { grid-column: 1/-1; text-align: center; padding: 80px 20px; }
.cart-empty__icon { font-size: 3.4rem; margin-bottom: 1rem; }
.cart-empty h2 { margin-bottom: .5rem; }
.cart-empty p { color: var(--muted); margin-bottom: 1.6rem; }

/* ============================================================
   Reveal + responsive
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero__inner, .feature__inner, .newsletter__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .book-grid, .cats { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .pdp__grid { grid-template-columns: 1fr; }
  .pdp__cover { position: relative; top: 0; }
  .cartpage__grid { grid-template-columns: 1fr; }
  .cart-summary { position: relative; top: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar__right .topbar__links { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: 76%; max-width: 320px; background: #fff;
    flex-direction: column; padding: 90px 30px; gap: 1.4rem; transform: translateX(100%);
    transition: transform .35s; z-index: 40; box-shadow: var(--shadow); margin-left: 0;
  }
  .nav.open { transform: none; }
  .nav-toggle { display: flex; z-index: 45; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .signin-btn { display: none; }
  .section { padding: 64px 0; }
  .cart-row--head { display: none; }
  .cart-row { grid-template-columns: 1fr auto; gap: .4rem 1rem; position: relative; }
  .cart-prod { grid-column: 1/-1; }
  .cart-cell { font-size: .88rem; color: var(--muted); }
  .cart-cell::before { content: attr(data-label) ": "; }
  .cart-remove { position: absolute; top: 1.1rem; right: 0; }
}
@media (max-width: 520px) {
  .book-grid, .cats, .footer__grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .author-row { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer__bar-inner { flex-direction: column; text-align: center; }
}
