/* ==========================================================================
   Pagewell bookstore template
   Colours and fonts live in :root so the brand can be changed in one place.
   ========================================================================== */
:root {
  --coral: #d4675a;
  --coral-dark: #bf5548;
  --rose: #c27479;
  --navy: #2e4a5e;
  --navy-light: #3d5a6e;
  --pink: #f7e8e4;
  --pink-2: #efd3cd;
  --teal: #1e8c75;
  --text: #5b5b5b;
  --white: #fff;
  --radius: 14px;
  --font-head: 'Josefin Sans', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
  --container: 1400px;
  --shadow: 0 10px 30px rgba(46, 74, 94, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); margin: 0; line-height: 1.2; }
ul { list-style: none; margin: 0; padding: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 40px; border-radius: 50px; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: .5px; transition: background .25s, color .25s, transform .25s; }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--navy); }
.btn-white { background: var(--white); color: var(--coral); }
.btn-white:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: 12px 30px; font-size: 16px; }

.section { padding: 90px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 50px; flex-wrap: wrap; }
.section-title { font-size: clamp(30px, 3.4vw, 50px); font-weight: 700; }
.section-title.center { text-align: center; width: 100%; }

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.topbar { background: var(--coral); color: var(--white); font-size: 15px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.topbar-note { display: flex; align-items: center; gap: 10px; }
.topbar-right { display: flex; align-items: center; align-self: stretch; gap: 22px; }
.lang { position: relative; }
.lang-btn { background: none; border: 0; color: inherit; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; background: var(--white); color: var(--navy); border-radius: 8px; box-shadow: var(--shadow);
  min-width: 140px; padding: 6px 0; display: none; z-index: 60; }
.lang.open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 6px 16px; }
.lang-menu a:hover { background: var(--pink); }
.topbar-social { display: flex; gap: 18px; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.6); }
.topbar-social a:hover { opacity: .75; }
.topbar-user { background: var(--navy); width: 52px; display: grid; place-items: center; font-size: 18px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header .container { display: flex; align-items: center; gap: 40px; padding-top: 22px; padding-bottom: 22px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 48px; height: 64px; }
.logo-text strong { display: block; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 48px; line-height: 1; color: var(--navy); letter-spacing: 1px; }
.logo-text small { display: block; font-size: 12px; letter-spacing: 6px; color: var(--navy); margin-top: 6px; }
.search { flex: 1; display: flex; align-items: center; background: var(--pink); border: 1px solid var(--coral); border-radius: 50px; padding: 5px; max-width: 820px; }
.search select { border: 0; background: transparent; color: var(--navy); padding: 10px 14px 10px 28px; cursor: pointer; outline: none; font-size: 17px; }
.search-divider { width: 1px; height: 26px; background: var(--coral); margin: 0 10px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 10px; outline: none; color: var(--navy); font-size: 17px; }
.search input::placeholder { color: var(--navy); opacity: .85; }
.search button { width: 100px; height: 58px; border-radius: 50px; border: 0; background: var(--rose); color: var(--white); font-size: 22px; cursor: pointer; transition: background .25s; }
.search button:hover { background: var(--coral); }
.header-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.circle-btn { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; position: relative; transition: transform .25s; }
.circle-btn:hover { transform: translateY(-2px); }
.circle-outline { border: 1px solid var(--coral); color: var(--coral); background: var(--white); }
.circle-fill { background: var(--coral); color: var(--white); }
.call-text span { display: block; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 20px; }
.call-text a { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 26px; white-space: nowrap; }
.count { position: absolute; top: -4px; right: -4px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--white); color: var(--coral);
  border: 2px solid var(--coral); font-size: 13px; font-weight: 600; display: grid; place-items: center; line-height: 1; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav { background: var(--rose); position: sticky; top: 0; z-index: 50; }
.nav .container { display: flex; align-items: center; min-height: 100px; }
.cat-menu { position: relative; align-self: stretch; }
.cat-toggle { height: 100%; width: 424px; background: var(--navy); color: var(--white); border: 0; display: flex; align-items: center; gap: 14px; padding: 0 50px;
  font-family: var(--font-head); font-size: 20px; font-weight: 600; cursor: pointer; }
.cat-toggle .fa-caret-down { margin-left: auto; transition: transform .25s; }
.cat-menu.open .cat-toggle .fa-caret-down { transform: rotate(180deg); }
.cat-list { position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); box-shadow: var(--shadow); display: none; z-index: 40; padding: 10px 0; }
.cat-menu.open .cat-list { display: block; }
.cat-list a { display: flex; align-items: center; gap: 14px; padding: 12px 50px; color: var(--navy); font-weight: 500; }
.cat-list a i { color: var(--coral); width: 20px; text-align: center; }
.cat-list a:hover { background: var(--pink); }
.menu { display: flex; gap: 6px; margin-left: 80px; }
.menu a { display: block; padding: 36px 30px; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 20px; position: relative; }
.menu a::after { content: ''; position: absolute; left: 30px; right: 30px; bottom: 0; height: 5px; background: var(--navy); transform: scaleX(0); transition: transform .25s; }
.menu a:hover::after, .menu a.active::after { transform: scaleX(1); }
.nav-cart { margin-left: auto; background: var(--navy); color: var(--white); width: 76px; height: 76px; font-size: 28px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 26px; cursor: pointer; padding: 10px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { background: var(--pink); position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 720px; position: relative; z-index: 1; }
.hero-text h1 { font-size: clamp(42px, 5vw, 82px); font-weight: 700; line-height: 1.25; }
.hero-text h1 em { font-style: normal; color: var(--coral); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 10px; }
.hero-text p { font-size: 20px; margin: 30px 0 40px; }
.hero-text .btn { padding: 22px 56px; font-size: 22px; }
.hero-art { position: relative; height: 620px; }
.hero-frame { position: absolute; right: 2%; top: 40px; width: 64%; height: 420px; border: 56px solid var(--pink-2); }
.hero-blob { position: absolute; left: 0; top: 110px; width: 230px; height: 300px; background: var(--pink-2); border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; opacity: .7; }
.hero-book { position: absolute; box-shadow: 14px 20px 40px rgba(0,0,0,.25); }
.hero-book img { width: 100%; height: 100%; object-fit: cover; }
.hero-book.b1 { left: 10%; top: 280px; width: 34%; aspect-ratio: 2/3; }
.hero-book.b2 { left: 34%; top: 210px; width: 40%; aspect-ratio: 2/3; z-index: 2; }
.hero-book.b3 { left: 66%; top: 430px; width: 36%; aspect-ratio: 2/3; z-index: 1; }
.hero-leaf { position: absolute; top: 0; right: -40px; width: 300px; color: var(--coral); opacity: .75; z-index: 3; }
.hero-petals { position: absolute; left: 0; top: 0; width: 280px; color: var(--pink-2); }
.hero-dot { position: absolute; border-radius: 50%; background: var(--pink-2); }

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 40px; }
.product-card { min-width: 0; }
.product-thumb { position: relative; aspect-ratio: 268 / 426; overflow: hidden; background: var(--pink); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.badges { position: absolute; top: 14px; left: 14px; display: flex; z-index: 2; }
.badge { padding: 2px 13px; color: var(--white); font-size: 15px; }
.badge.hot { background: var(--coral); }
.badge.off { background: var(--navy); }
.icon-btn { position: absolute; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--white); color: var(--coral);
  display: grid; place-items: center; cursor: pointer; font-size: 17px; z-index: 2; transition: background .25s, color .25s, opacity .25s, transform .25s; }
.icon-btn:hover { background: var(--coral); color: var(--white); }
.icon-btn.wish { top: 14px; }
.icon-btn.wish.active { background: var(--coral); color: var(--white); }
.icon-btn.cart { top: 66px; opacity: 0; transform: translateX(16px); }
.product-card:hover .icon-btn.cart, .icon-btn.cart:focus-visible { opacity: 1; transform: none; }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 22px; font-size: 19px; flex-wrap: wrap; }
.rating i, .stars i { color: var(--coral); }
.price { font-family: var(--font-head); font-weight: 700; color: var(--coral); font-size: 21px; white-space: nowrap; }
.price del { color: var(--text); font-family: var(--font-body); font-weight: 400; font-size: 15px; margin-right: 4px; }
.author { margin: 6px 0 2px; font-size: 17px; }
.product-title { font-size: 25px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-title a:hover { color: var(--coral); }

/* Horizontal product card (top categories list) */
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 80px 40px; margin-top: 70px; }
.list-card { display: flex; gap: 28px; align-items: center; }
.list-card .product-thumb { width: 180px; flex-shrink: 0; aspect-ratio: 180 / 285; }
.list-card .icon-btn.wish { width: 34px; height: 34px; font-size: 14px; top: 12px; right: 12px; }
.list-card .badges { top: 12px; left: 12px; }
.list-card .badge { font-size: 14px; padding: 1px 12px; }
.list-card h3 { font-size: 32px; font-weight: 600; margin: 10px 0 6px; }
.list-card .price { font-size: 28px; }
.list-card .price del { font-size: 22px; }
.list-card .btn { margin-top: 16px; padding: 18px 36px; font-size: 21px; }
.stars { display: flex; gap: 4px; font-size: 20px; }

/* --------------------------------------------------------------------------
   Promo banners
   -------------------------------------------------------------------------- */
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.promo { position: relative; overflow: hidden; display: flex; align-items: center; gap: 40px; padding: 50px 40px; min-height: 400px; }
.promo-pink { background: var(--pink); }
.promo-teal { background: linear-gradient(90deg, #4ea592 0%, var(--teal) 40%, #137a62 100%); color: var(--white); }
.promo-teal h3 { color: var(--white); }
.promo-books { position: relative; width: 320px; height: 290px; flex-shrink: 0; }
.promo-books img { position: absolute; box-shadow: 10px 14px 30px rgba(0,0,0,.25); aspect-ratio: 2/3; object-fit: cover; border-radius: 4px 8px 8px 4px; }
.promo-books img:first-child { left: 0; top: 0; width: 210px; }
.promo-books img:last-child { left: 160px; top: 60px; width: 160px; }
.promo .stars { font-size: 22px; }
.promo-teal .stars i { color: var(--white); }
.promo h3 { font-size: clamp(30px, 2.6vw, 42px); font-weight: 700; margin: 16px 0 14px; }
.promo p { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--navy); margin: 0 0 30px; }
.promo-teal p { color: var(--white); }
.promo p span { color: var(--coral); }
.promo-teal p span { color: var(--white); }
.promo-shape { position: absolute; border-radius: 50% 40% 60% 45%; opacity: .5; }

/* --------------------------------------------------------------------------
   Top categories
   -------------------------------------------------------------------------- */
.categories { background: var(--pink); position: relative; overflow: hidden; }
.categories::before { content: ''; position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background: url('../images/pattern.svg') center / 520px repeat; }
.categories .container { position: relative; }
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 40px; }
.cat-card { background: var(--white); border-radius: var(--radius); padding: 50px 20px 46px; text-align: center; transition: transform .3s, box-shadow .3s; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card i { font-size: 92px; color: var(--coral); height: 110px; display: grid; place-items: center; }
.cat-card h3 { font-size: 27px; font-weight: 600; margin-top: 26px; }
.categories .more { text-align: center; margin-top: 80px; }
.categories .more .btn { padding: 24px 58px; font-size: 22px; }

/* --------------------------------------------------------------------------
   Author of the month
   -------------------------------------------------------------------------- */
.author-sec { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.author-sec .brush { position: absolute; width: 60%; height: 140px; background: var(--navy-light); filter: url(#rough); opacity: .7; }
.author-sec .brush.top { top: -50px; left: -5%; transform: rotate(-3deg); }
.author-sec .brush.bottom { bottom: -60px; right: -5%; transform: rotate(-4deg); }
.author-sec .container { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.author-sec h2 { color: var(--white); font-size: clamp(34px, 3.5vw, 58px); font-weight: 700; }
.author-sec h3 { color: var(--white); font-size: 40px; font-weight: 600; margin-top: 44px; }
.author-sec .books-count { color: var(--coral); font-family: var(--font-head); font-weight: 700; font-size: 22px; margin: 10px 0 24px; }
.author-sec p { font-size: 20px; line-height: 1.8; }
.author-sec .btn { margin-top: 30px; padding: 22px 56px; font-size: 22px; }
.author-media { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; }
.author-photo { position: relative; padding-top: 70px; }
.author-photo img { width: 100%; aspect-ratio: 584 / 690; object-fit: cover; }
.seller-badge { position: absolute; top: 0; left: 6%; right: 26%; background: var(--white); border-left: 5px solid var(--coral); border-right: 5px solid var(--coral);
  display: flex; align-items: center; gap: 28px; padding: 22px 30px; z-index: 1; }
.seller-badge i { font-size: 66px; color: var(--coral); }
.seller-badge strong { font-family: var(--font-head); color: var(--navy); font-size: 27px; font-weight: 600; line-height: 1.5; }
.author-books { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 36px; padding-top: 135px; }
.author-books img { width: 100%; aspect-ratio: 2/3; object-fit: cover; box-shadow: 0 10px 24px rgba(0,0,0,.3); }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testi .container { display: grid; grid-template-columns: 1fr 1.45fr; position: relative; }
.testi-art { background: var(--coral); position: relative; min-height: 890px; overflow: hidden; z-index: 1; }
.testi-art .swirl { position: absolute; left: -60px; top: 40px; width: 420px; height: 760px; }
.testi-art img { position: absolute; left: 18%; top: 236px; width: 58%; aspect-ratio: 2/3; object-fit: cover; box-shadow: 20px 28px 50px rgba(0,0,0,.35); }
.testi-art .spoon { position: absolute; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f3ecdf, #c7b89c 60%, #8b7a5a); box-shadow: inset 0 0 0 8px #d9ccb3; }
.testi-art .spoon::after { content: ''; position: absolute; left: 50%; top: 96%; width: 8px; height: 220px; background: linear-gradient(90deg, #8b7a5a, #d9ccb3, #8b7a5a); border-radius: 4px; transform: translateX(-50%) rotate(-6deg); transform-origin: top; }
.testi-body { padding: 70px 0 0 42px; }
.testi-body .eyebrow { color: var(--coral); font-family: var(--font-head); font-weight: 700; font-size: 26px; letter-spacing: 1px; }
.testi-body h2 { font-size: clamp(34px, 3.6vw, 66px); font-weight: 700; margin: 20px 0 34px; }
.testi-body > p { font-size: 20px; max-width: 940px; }
.testi-panel { background: var(--pink); margin: 60px 0 0 -42px; padding: 56px 56px 60px 42px; position: relative; }
.testi-panel::before { content: ''; position: absolute; top: 0; bottom: 0; right: 100%; width: 100vw; max-width: 0; }
.testi-slides { position: relative; }
.testi-slide { display: none; animation: fade .5s; }
.testi-slide.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reviewer { display: flex; align-items: center; gap: 28px; }
.avatar { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 36px; color: var(--white); flex-shrink: 0; }
.reviewer h3 { font-size: 36px; font-weight: 600; margin: 8px 0 4px; }
.reviewer span { font-size: 20px; }
.quote-mark { position: absolute; right: 0; top: -6px; font-size: 92px; color: var(--pink-2); }
.testi-slide h4 { display: flex; align-items: center; gap: 14px; font-size: 28px; font-weight: 600; margin: 50px 0 22px; }
.testi-slide h4 i { background: var(--coral); color: var(--white); width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; font-size: 18px; }
.testi-slide p { font-size: 21px; line-height: 1.75; margin: 0; }
.testi-dots { display: flex; gap: 10px; margin-top: 34px; }
.testi-dots button { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--coral); background: transparent; cursor: pointer; padding: 0; }
.testi-dots button.active { background: var(--coral); }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.blog-card { border-radius: 20px 20px 0 0; overflow: hidden; background: var(--pink); transition: background .3s, color .3s; }
.blog-card:hover, .blog-card.featured { background: var(--rose); color: var(--white); }
.blog-card:hover h3, .blog-card.featured h3 { color: var(--white); }
.blog-img { position: relative; aspect-ratio: 578 / 413; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-date { position: absolute; right: 26px; bottom: 26px; width: 80px; height: 82px; border-radius: 20px; background: var(--white); border: 4px solid var(--coral);
  text-align: center; font-family: var(--font-head); color: var(--coral); display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.blog-date strong { font-size: 32px; }
.blog-date span { font-size: 20px; margin-top: 4px; }
.blog-body { padding: 40px 54px 44px; }
.blog-meta { display: flex; gap: 34px; font-size: 20px; flex-wrap: wrap; }
.blog-meta i { margin-right: 6px; }
.blog-card h3 { font-size: 32px; font-weight: 600; margin: 30px 0 34px; line-height: 1.4; }
.blog-card h3 a:hover { text-decoration: underline; }
.blog-body hr { border: 0; border-top: 1px dashed currentColor; opacity: .5; margin: 0 0 24px; }
.read-link { font-family: var(--font-head); font-weight: 700; font-size: 19px; display: inline-flex; gap: 10px; align-items: center; }

/* --------------------------------------------------------------------------
   Newsletter + footer
   -------------------------------------------------------------------------- */
.footer { background: var(--navy); color: var(--white); margin-top: 180px; }
.newsletter { display: grid; grid-template-columns: 370px 1fr; border-radius: 20px; overflow: hidden; transform: translateY(-50%); margin-bottom: -60px; }
.newsletter-logo { background: var(--coral); display: grid; place-items: center; padding: 44px 30px; border-right: 1px solid rgba(255,255,255,.4); }
.newsletter-logo .logo-text strong, .newsletter-logo .logo-text small { color: var(--white); }
.newsletter-main { background: var(--rose); display: flex; align-items: center; gap: 36px; padding: 40px 80px; flex-wrap: wrap; }
.newsletter-copy { display: flex; align-items: center; gap: 28px; }
.newsletter-copy i { font-size: 70px; color: var(--white); }
.newsletter-copy h3 { color: var(--white); font-size: 36px; font-weight: 700; }
.newsletter-copy p { margin: 4px 0 0; font-size: 21px; }
.newsletter-form { flex: 1; min-width: 280px; display: flex; background: var(--white); border-radius: 50px; padding: 0 0 0 40px; margin-left: auto; max-width: 730px; }
.newsletter-form input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 19px; color: var(--navy); background: transparent; }
.newsletter-form button { background: var(--navy); color: var(--white); border-radius: 50px; padding: 22px 44px; font-size: 22px; }
.form-note { width: 100%; text-align: right; margin: -16px 0 0; font-size: 16px; min-height: 0; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1.5fr 1.1fr; gap: 40px; padding: 30px 0 100px; }
.footer h4 { color: var(--white); font-size: 34px; font-weight: 700; }
.footer h4::after { content: ''; display: block; width: 104px; height: 5px; margin: 22px 0 36px;
  background: linear-gradient(90deg, var(--coral) 70%, transparent 70%, transparent 76%, var(--coral) 76%, var(--coral) 84%, transparent 84%, transparent 90%, var(--coral) 90%); border-radius: 3px; }
.footer-links li { margin-bottom: 14px; font-size: 21px; }
.footer-links a { display: inline-flex; gap: 12px; align-items: center; transition: color .2s, transform .2s; }
.footer-links a i { font-size: 14px; }
.footer-links a:hover { color: var(--coral); transform: translateX(4px); }
.footer-links.two-col { columns: 2; column-gap: 30px; }
.contact-list li { display: flex; gap: 20px; margin-bottom: 26px; font-size: 21px; }
.contact-list i { color: var(--white); font-size: 22px; margin-top: 6px; width: 24px; }
.footer-bottom { background: var(--navy-light); }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 120px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.footer-social { display: flex; gap: 22px; }
.footer-social a { width: 56px; height: 56px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; font-size: 22px; transition: background .25s; }
.footer-social a:hover { background: var(--white); color: var(--coral); }
.footer-legal { display: flex; gap: 34px; font-size: 22px; }
.footer-legal a:hover { color: var(--coral); }
.payments { display: flex; gap: 12px; font-size: 40px; color: var(--white); }

/* --------------------------------------------------------------------------
   Scroll progress / back to top + toast
   -------------------------------------------------------------------------- */
.progress-top { position: fixed; right: 18px; bottom: 18px; width: 92px; height: 92px; border-radius: 50%; border: 0; cursor: pointer; z-index: 80; padding: 0;
  background: conic-gradient(var(--navy) calc(var(--p, 0) * 1%), var(--coral) 0); display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.progress-top.show { opacity: 1; visibility: visible; }
.progress-top span { width: 74px; height: 74px; border-radius: 50%; background: var(--coral); border: 2px solid var(--white); color: var(--white); font-weight: 600; font-size: 16px; display: grid; place-items: center; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: var(--navy); color: var(--white); padding: 14px 26px; border-radius: 50px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 90; font-size: 15px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1500px) {
  .product-grid { gap: 28px; }
  .product-meta { font-size: 16px; }
  .price { font-size: 18px; }
  .price del { font-size: 13px; }
  .author { font-size: 15px; }
  .product-title { font-size: 21px; }
  .cat-toggle { width: 340px; padding: 0 36px; }
  .menu { margin-left: 30px; }
  .menu a { padding: 36px 22px; }
  .list-card h3 { font-size: 26px; }
  .list-card .price { font-size: 24px; } .list-card .price del { font-size: 18px; }
  .list-card .btn { padding: 15px 30px; font-size: 18px; }
  .list-card .product-thumb { width: 150px; }
  .footer h4 { font-size: 28px; }
  .footer-links li, .contact-list li { font-size: 18px; }
}
@media (max-width: 1280px) {
  .header .container { gap: 24px; }
  .call-text { display: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .list-grid { grid-template-columns: repeat(2, 1fr); }
  .promo { flex-direction: column; align-items: flex-start; }
  .author-sec .container { grid-template-columns: 1fr; }
  .testi-body h2 { font-size: 44px; }
  .blog-body { padding: 30px; }
  .blog-card h3 { font-size: 26px; }
  .blog-meta { font-size: 17px; }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter-logo { display: none; }
  .newsletter-main { padding: 34px 40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
  .topbar-note { font-size: 14px; }
  .topbar-social { display: none; }
  .header .container { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .circle-btn { width: 56px; height: 56px; font-size: 20px; }
  .nav .container { min-height: 70px; position: relative; }
  .cat-toggle { width: auto; padding: 0 22px; font-size: 17px; }
  .menu-toggle { display: block; margin-left: auto; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; background: var(--rose); padding: 6px 0 14px; box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .menu a { padding: 14px 24px; }
  .menu a::after { left: 24px; right: auto; width: 40px; }
  .nav-cart { margin-left: 12px; width: 56px; height: 56px; font-size: 22px; }
  .hero .container { grid-template-columns: 1fr; min-height: 0; padding-top: 70px; }
  .hero-art { height: 520px; }
  .promos { grid-template-columns: 1fr; }
  .testi .container { grid-template-columns: 1fr; }
  .testi-art { min-height: 520px; }
  .testi-art img { width: 40%; left: 30%; top: 60px; }
  .testi-art .swirl { height: 520px; }
  .testi-body { padding: 50px 0 0; }
  .testi-panel { margin: 40px 0 0; padding: 40px 30px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid .blog-card:last-child { display: none; }
  .section { padding: 70px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar-note span { display: none; }
  .topbar-note::after { content: 'Fast city delivery'; }
  .logo-mark { width: 34px; height: 46px; }
  .logo-text strong { font-size: 34px; }
  .logo-text small { font-size: 10px; letter-spacing: 4px; }
  .header-actions { gap: 10px; }
  .circle-btn { width: 46px; height: 46px; font-size: 18px; }
  .search { padding: 4px; }
  .search select { padding: 8px 6px 8px 14px; font-size: 14px; max-width: 120px; }
  .search-divider { margin: 0 4px; }
  .search input { font-size: 15px; padding: 10px 6px; }
  .search button { width: 56px; height: 46px; font-size: 18px; }
  .cat-toggle span { display: none; }
  .cat-toggle { padding: 0 18px; }
  .nav-cart { width: 50px; height: 50px; font-size: 19px; }
  .hero .container { padding-top: 50px; }
  .hero-text p { font-size: 17px; }
  .hero-text .btn { padding: 18px 44px; font-size: 19px; }
  .hero-art { height: 400px; }
  .hero-frame { border-width: 34px; height: 280px; }
  .hero-book.b1 { top: 170px; } .hero-book.b2 { top: 120px; } .hero-book.b3 { top: 250px; }
  .hero-leaf { width: 170px; right: -30px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .product-meta { margin-top: 14px; }
  .product-title { font-size: 19px; }
  .icon-btn { width: 34px; height: 34px; font-size: 14px; right: 10px; }
  .icon-btn.wish { top: 10px; } .icon-btn.cart { top: 52px; opacity: 1; transform: none; }
  .badges { top: 10px; left: 10px; } .badge { font-size: 12px; padding: 1px 8px; }
  .section-head .btn { padding: 12px 24px; font-size: 16px; }
  .promo { padding: 34px 22px; min-height: 0; }
  .promo-books { width: 260px; height: 240px; }
  .promo-books img:first-child { width: 170px; } .promo-books img:last-child { left: 130px; top: 50px; width: 130px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cat-card { padding: 30px 12px; }
  .cat-card i { font-size: 60px; height: 72px; }
  .cat-card h3 { font-size: 21px; margin-top: 16px; }
  .list-grid { grid-template-columns: 1fr; gap: 34px; margin-top: 44px; }
  .list-card { gap: 18px; }
  .list-card .product-thumb { width: 120px; }
  .list-card h3 { font-size: 22px; }
  .list-card .price { font-size: 20px; } .list-card .price del { font-size: 16px; }
  .list-card .btn { padding: 12px 22px; font-size: 16px; }
  .stars { font-size: 16px; }
  .categories .more { margin-top: 50px; }
  .author-media { grid-template-columns: 1fr; }
  .author-books { padding-top: 0; }
  .seller-badge { left: 0; right: 0; padding: 14px 18px; gap: 16px; }
  .seller-badge i { font-size: 44px; } .seller-badge strong { font-size: 20px; }
  .author-sec h3 { font-size: 30px; }
  .author-sec p { font-size: 17px; }
  .testi-art { min-height: 420px; }
  .testi-art img { width: 52%; left: 24%; top: 46px; }
  .testi-art .spoon { transform: scale(.6); }
  .testi-body .eyebrow { font-size: 20px; }
  .testi-body > p { font-size: 17px; }
  .reviewer { gap: 18px; }
  .avatar { width: 76px; height: 76px; font-size: 26px; }
  .reviewer h3 { font-size: 26px; } .reviewer span { font-size: 16px; }
  .quote-mark { font-size: 54px; }
  .testi-slide h4 { font-size: 21px; margin-top: 30px; }
  .testi-slide p { font-size: 17px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid .blog-card:last-child { display: block; }
  .blog-body { padding: 26px 24px; }
  .blog-meta { gap: 20px; font-size: 16px; }
  .blog-card h3 { font-size: 23px; margin: 20px 0 24px; }
  .footer { margin-top: 140px; }
  .newsletter { transform: translateY(-40%); margin-bottom: -80px; }
  .newsletter-main { padding: 28px 20px; gap: 22px; }
  .newsletter-copy i { font-size: 44px; }
  .newsletter-copy h3 { font-size: 26px; } .newsletter-copy p { font-size: 16px; }
  .newsletter-form { padding-left: 20px; }
  .newsletter-form input { font-size: 15px; }
  .newsletter-form button { padding: 14px 20px; font-size: 16px; }
  .footer-cols { grid-template-columns: 1fr; padding-bottom: 60px; }
  .footer h4 { font-size: 26px; }
  .footer h4::after { margin: 16px 0 24px; }
  .footer-legal { font-size: 17px; gap: 20px; }
  .payments { font-size: 32px; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .progress-top { width: 64px; height: 64px; right: 12px; bottom: 12px; }
  .progress-top span { width: 52px; height: 52px; font-size: 13px; }
}

/* --------------------------------------------------------------------------
   Layout refinements
   -------------------------------------------------------------------------- */
.hero-text h1 { font-size: clamp(40px, 4.3vw, 76px); }
.promo { gap: 30px; }
.promo > div:last-child { position: relative; z-index: 1; }
.promo-shape { z-index: 0; }
.promo-books { width: 290px; z-index: 1; }
.promo-books img:first-child { width: 190px; }
.promo-books img:last-child { left: 140px; width: 150px; }
.seller-badge { right: 8%; }
.seller-badge strong { white-space: nowrap; }
.newsletter { grid-template-columns: 300px 1fr; }
.newsletter-main { min-width: 0; padding: 40px 50px; }
.newsletter-form { min-width: 0; flex: 1 1 360px; }
.newsletter-form button { padding: 18px 32px; font-size: 20px; }
.search { min-width: 0; }
.search input { width: 0; }
@media (max-width: 1280px) { .newsletter { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .search { width: 100%; }
  .newsletter-form { flex-basis: 100%; }
  .seller-badge { right: 0; }
  .promo-books { width: 260px; }
  .promo-books img:first-child { width: 170px; } .promo-books img:last-child { left: 130px; width: 130px; }
}
@media (max-width: 991px) {
  .hero-art { max-width: 620px; width: 100%; margin: 0 auto; height: 600px; }
}
@media (max-width: 640px) {
  .hero-art { height: 420px; }
  .cat-toggle span { display: inline; font-size: 15px; }
  .cat-toggle .fa-caret-down { display: none; }
  .newsletter-main { flex-direction: column; align-items: stretch; }
  .newsletter-form { flex: none; width: 100%; margin-left: 0; }
  .form-note { text-align: left; margin: 0; }
}
.count[hidden] { display: none; }
@media (max-width: 640px) {
  .newsletter-main { padding: 28px 20px; }
  .newsletter-form button { padding: 14px 20px; font-size: 16px; }
}

/* Covers use a 3:4 shape (matches real publisher covers) */
.product-thumb { aspect-ratio: 3 / 4; }
.list-card .product-thumb { aspect-ratio: 3 / 4; }
.hero-book.b1, .hero-book.b2, .hero-book.b3, .promo-books img, .author-books img, .testi-art img { aspect-ratio: 3 / 4; }
.hero-book.b1 { top: 300px; } .hero-book.b2 { top: 220px; } .hero-book.b3 { top: 400px; }
.hero-book img { object-position: top; }
@media (max-width: 640px) { .hero-book.b1 { top: 180px; } .hero-book.b2 { top: 120px; } .hero-book.b3 { top: 230px; } }
/* Allow long real book titles to use two lines */
.product-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.4em; }

/* ==========================================================================
   Typography v2: calmer, more readable sizes (Poppins headings, Inter text)
   ========================================================================== */
:root { --font-head: 'Poppins', system-ui, sans-serif; --font-body: 'Inter', system-ui, sans-serif; --text: #5a6470; }
body { font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { letter-spacing: -.01em; }
.container { max-width: 1320px; }
.btn { font-size: 15px; font-weight: 600; padding: 13px 30px; letter-spacing: .2px; }
.section { padding: 80px 0; }
.section-head { margin-bottom: 36px; }
.section-title { font-size: clamp(26px, 2.4vw, 36px); font-weight: 600; }

.topbar { font-size: 14px; }
.topbar .container { min-height: 44px; }
.topbar-user { width: 44px; font-size: 15px; }

.header .container { padding-top: 18px; padding-bottom: 18px; gap: 32px; }
.logo-svg { height: 58px; width: auto; display: block; }
.search { max-width: 640px; }
.search select, .search input { font-size: 15px; }
.search select { padding: 8px 12px 8px 22px; }
.search input { padding: 10px; }
.search button { width: 64px; height: 46px; font-size: 17px; }
.header-actions { gap: 16px; }
.circle-btn { width: 54px; height: 54px; font-size: 19px; }
.call-text span { font-size: 13px; font-weight: 500; color: var(--text); font-family: var(--font-body); }
.call-text a { font-size: 19px; font-weight: 600; }
.count { min-width: 20px; height: 20px; font-size: 11px; top: -3px; right: -3px; border-width: 1.5px; }

.nav .container { min-height: 64px; }
.cat-toggle { width: 270px; padding: 0 26px; font-size: 15px; font-weight: 500; }
.cat-list a { padding: 10px 26px; font-size: 15px; }
.menu { margin-left: 40px; }
.menu a { padding: 21px 20px; font-size: 15.5px; font-weight: 500; }
.menu a::after { left: 20px; right: 20px; height: 3px; }
.nav-cart { width: 52px; height: 52px; font-size: 19px; }

.hero .container { min-height: 600px; }
.hero-text h1 { font-size: clamp(34px, 3.8vw, 56px); font-weight: 700; line-height: 1.18; }
.hero-text h1 em { text-underline-offset: 8px; }
.hero-text p { font-size: 18px; margin: 22px 0 32px; }
.hero-text .btn { padding: 15px 36px; font-size: 16px; }
.hero-art { height: 560px; }
.hero-frame { border-width: 44px; height: 380px; }

.product-grid { gap: 28px; }
.product-meta { margin-top: 14px; font-size: 14px; }
.price { font-size: 17px; font-weight: 600; }
.price del { font-size: 13px; }
.badge { font-size: 12px; padding: 2px 9px; font-weight: 500; }
.icon-btn { width: 34px; height: 34px; font-size: 14px; }
.icon-btn.cart { top: 56px; }
.author { font-size: 13.5px; margin: 4px 0 2px; }
.product-title { font-size: 16.5px; font-weight: 600; line-height: 1.35; min-height: 2.7em; }

.list-grid { gap: 48px 32px; margin-top: 56px; }
.list-card { gap: 22px; }
.list-card .product-thumb { width: 140px; }
.list-card h3 { font-size: 19px; margin: 6px 0 4px; }
.list-card .price { font-size: 18px; } .list-card .price del { font-size: 14px; }
.list-card .btn { margin-top: 12px; padding: 10px 22px; font-size: 14px; }
.stars { font-size: 14px; gap: 3px; }

.promo { min-height: 320px; padding: 40px 36px; }
.promo h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 600; margin: 12px 0 8px; }
.promo p { font-family: var(--font-body); font-size: 16px; font-weight: 500; margin-bottom: 22px; }
.promo .stars { font-size: 16px; }
.promo-books { width: 250px; height: 240px; }
.promo-books img:first-child { width: 160px; } .promo-books img:last-child { left: 120px; top: 50px; width: 130px; }

.cat-grid { gap: 24px; }
.cat-card { padding: 34px 16px 30px; }
.cat-card i { font-size: 52px; height: 64px; }
.cat-card h3 { font-size: 17px; margin-top: 16px; font-weight: 600; }
.categories .more { margin-top: 56px; }
.categories .more .btn { padding: 14px 36px; font-size: 15px; }

.author-sec h2 { font-size: clamp(28px, 2.6vw, 40px); font-weight: 600; }
.author-sec h3 { font-size: 26px; margin-top: 28px; }
.author-sec .books-count { font-family: var(--font-body); font-size: 15px; font-weight: 600; }
.author-sec p { font-size: 16.5px; line-height: 1.75; }
.author-sec .btn { margin-top: 22px; padding: 14px 34px; font-size: 15px; }
.seller-badge { padding: 16px 22px; gap: 16px; }
.seller-badge i { font-size: 44px; }
.seller-badge strong { font-size: 18px; }

.testi-art { min-height: 700px; }
.testi-art img { top: 200px; width: 54%; }
.testi-body .eyebrow { font-family: var(--font-body); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }
.testi-body h2 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; margin: 12px 0 18px; }
.testi-body > p { font-size: 16.5px; }
.testi-panel { margin-top: 40px; padding: 40px 44px 44px 42px; }
.avatar { width: 76px; height: 76px; font-size: 24px; }
.reviewer { gap: 20px; }
.reviewer h3 { font-size: 21px; margin: 6px 0 2px; }
.reviewer span { font-size: 14.5px; }
.quote-mark { font-size: 60px; }
.testi-slide h4 { font-size: 18px; margin: 30px 0 14px; gap: 12px; }
.testi-slide h4 i { width: 32px; height: 32px; font-size: 13px; }
.testi-slide p { font-size: 16.5px; }
.testi-dots { margin-top: 26px; }
.testi-dots button { width: 11px; height: 11px; }

.blog-grid { gap: 28px; }
.blog-date { width: 62px; height: 64px; border-radius: 14px; border-width: 3px; right: 18px; bottom: 18px; }
.blog-date strong { font-size: 22px; } .blog-date span { font-size: 14px; }
.blog-body { padding: 26px 30px 30px; }
.blog-meta { font-size: 14px; gap: 22px; }
.blog-card h3 { font-size: 20px; margin: 16px 0 22px; line-height: 1.4; }
.read-link { font-size: 15px; font-weight: 600; font-family: var(--font-body); }

.footer { margin-top: 150px; }
.newsletter { grid-template-columns: 290px 1fr; }
.newsletter-logo { padding: 30px; }
.newsletter-main { padding: 30px 44px; gap: 28px; }
.newsletter-copy { gap: 20px; }
.newsletter-copy i { font-size: 46px; }
.newsletter-copy h3 { font-size: 24px; font-weight: 600; }
.newsletter-copy p { font-size: 15px; }
.newsletter-form { padding-left: 26px; max-width: 560px; }
.newsletter-form input { font-size: 15px; }
.newsletter-form button { padding: 14px 26px; font-size: 15px; }
.footer-cols { padding: 20px 0 70px; }
.footer h4 { font-size: 20px; font-weight: 600; }
.footer h4::after { width: 80px; height: 4px; margin: 16px 0 24px; }
.footer-links li { font-size: 15px; margin-bottom: 11px; }
.footer-links a i { font-size: 11px; }
.contact-list li { font-size: 15px; gap: 14px; margin-bottom: 18px; }
.contact-list i { font-size: 17px; margin-top: 3px; }
.footer-bottom .container { min-height: 84px; }
.footer-social a { width: 40px; height: 40px; font-size: 16px; }
.footer-social { gap: 12px; }
.footer-legal { font-size: 15px; gap: 24px; }
.payments { font-size: 30px; gap: 10px; }
.progress-top { width: 64px; height: 64px; }
.progress-top span { width: 52px; height: 52px; font-size: 13px; }

@media (max-width: 1280px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 991px) {
  .menu a { padding: 12px 24px; }
  .menu a::after { left: 24px; }
  .cat-toggle { width: auto; padding: 0 20px; }
  .hero-art { height: 540px; }
  .testi-art { min-height: 480px; }
  .testi-art img { width: 40%; left: 30%; top: 50px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .logo-svg { height: 44px; }
  .circle-btn { width: 42px; height: 42px; font-size: 16px; }
  .search button { width: 50px; height: 42px; font-size: 16px; }
  .search select { max-width: 116px; font-size: 14px; padding: 8px 4px 8px 14px; }
  .search input { font-size: 14px; }
  .nav .container { min-height: 58px; }
  .nav-cart { width: 44px; height: 44px; font-size: 17px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head .btn { padding: 10px 20px; font-size: 14px; }
  .hero .container { padding-top: 40px; }
  .hero-text h1 { font-size: 34px; }
  .hero-text p { font-size: 16px; }
  .hero-art { height: 400px; }
  .hero-frame { border-width: 28px; height: 260px; }
  .product-grid { gap: 24px 14px; }
  .product-title { font-size: 15px; }
  .price { font-size: 15px; } .price del { font-size: 12px; }
  .product-meta { font-size: 13px; }
  .icon-btn { width: 30px; height: 30px; font-size: 12px; }
  .icon-btn.cart { top: 46px; }
  .list-card .product-thumb { width: 110px; }
  .list-card h3 { font-size: 17px; }
  .cat-card i { font-size: 42px; height: 52px; }
  .cat-card h3 { font-size: 15px; }
  .promo { padding: 30px 22px; }
  .promo h3 { font-size: 24px; }
  .author-sec h2 { font-size: 28px; }
  .author-sec h3 { font-size: 22px; }
  .seller-badge strong { font-size: 16px; } .seller-badge i { font-size: 34px; }
  .testi-art { min-height: 380px; }
  .testi-body h2 { font-size: 26px; }
  .testi-panel { padding: 30px 22px; }
  .avatar { width: 58px; height: 58px; font-size: 19px; }
  .reviewer h3 { font-size: 18px; }
  .testi-slide p { font-size: 15.5px; }
  .blog-card h3 { font-size: 18px; }
  .footer { margin-top: 130px; }
  .newsletter-main { padding: 26px 20px; }
  .newsletter-copy h3 { font-size: 21px; }
  .newsletter-form button { padding: 12px 18px; font-size: 14px; }
  .footer h4 { font-size: 18px; }
}
/* Hero book placement for the 3:4 covers */
.hero-book.b1 { top: 190px; width: 32%; }
.hero-book.b2 { top: 110px; width: 38%; }
.hero-book.b3 { top: 270px; width: 32%; left: 68%; }
.hero-frame { top: 30px; }
@media (max-width: 640px) { .hero-book.b1 { top: 130px; } .hero-book.b2 { top: 80px; } .hero-book.b3 { top: 170px; } }
@media (max-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } .list-card .badge.off { display: none; } }
