/* ==========================================================================
   Shambhavi Publishing – main stylesheet (mobile-first)
   1. Base  2. Layout  3. Buttons & badges  4. Header  5. Footer
   6. Home  7. Book card & grid  8. Store  9. Book detail  10. Pages/forms
   11. Plugin components (plans, subjects, authors, account)  12. Utilities
   ========================================================================== */

/* 1. Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sp-font-body);
	font-size: var(--sp-fs-body);
	line-height: var(--sp-lh-body);
	color: var(--sp-text);
	background: var(--sp-white);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "kern";
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--sp-font-heading);
	line-height: var(--sp-lh-heading);
	color: var(--sp-navy);
	font-weight: 700;
	margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
a { color: var(--sp-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sp-navy-hover); }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sp-gold); outline-offset: 2px; }
::selection { background: var(--sp-gold-soft); color: var(--sp-navy); }
hr { border: 0; border-top: 1px solid var(--sp-border); margin: 2rem 0; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link:focus {
	clip: auto; clip-path: none; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--sp-navy); color: #fff; border-radius: var(--sp-radius);
}

/* 2. Layout ------------------------------------------------------------ */
.container { width: 100%; max-width: calc(var(--sp-container) + 2 * var(--sp-gutter)); margin: 0 auto; padding: 0 var(--sp-gutter); }
.section { padding-top: var(--sp-section); padding-bottom: var(--sp-section); }
.section + .section:not(.section--ivory):not(.section--navy):not(.section--newsletter) { padding-top: 0; }
.section--ivory { background: var(--sp-ivory); }
.section--navy { background: var(--sp-navy); color: #E6EAF0; }
.section--navy .section-title { color: #fff; }
.site-main { min-height: 50vh; outline: none; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title { font-size: var(--sp-fs-section); margin: 0; position: relative; padding-bottom: 10px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--sp-gold); border-radius: 2px; }
.section-sub { margin: 10px 0 0; color: var(--sp-text-2); }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-link:hover { color: var(--sp-gold); }
.eyebrow { font-size: var(--sp-fs-small); font-weight: 600; letter-spacing: .02em; color: var(--sp-gold); margin: 0 0 8px; }
.eyebrow a { color: inherit; text-decoration: none; }
.muted { color: var(--sp-text-2); }

.page-header { background: var(--sp-ivory); border-bottom: 1px solid var(--sp-border); padding: 28px 0 32px; }
.page-title { font-size: var(--sp-fs-page); margin: 0; }
.page-desc { color: var(--sp-text-2); max-width: 760px; margin-top: 8px; }
.page-desc p:last-child { margin: 0; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; font-size: var(--sp-fs-small); color: var(--sp-text-2); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--sp-text-muted); }
.breadcrumbs a { color: var(--sp-text-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--sp-navy); }

/* 3. Buttons & badges -------------------------------------------------- */
.sp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 24px; min-height: 46px; border-radius: var(--sp-radius); border: 1px solid transparent;
	font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .2s var(--sp-ease), color .2s, border-color .2s, box-shadow .2s;
	white-space: nowrap;
}
.sp-btn--primary { background: var(--sp-navy); color: #fff; }
.sp-btn--primary:hover { background: var(--sp-navy-hover); color: #fff; }
.sp-btn--secondary { background: var(--sp-gold); color: var(--sp-navy); }
.sp-btn--secondary:hover { background: var(--sp-gold-hover); color: var(--sp-navy); }
.sp-btn--outline { background: transparent; border-color: var(--sp-navy); color: var(--sp-navy); }
.sp-btn--outline:hover { background: var(--sp-navy); color: #fff; }
.sp-btn--ghost { background: transparent; color: var(--sp-navy); border-color: var(--sp-border); }
.sp-btn--ghost:hover { border-color: var(--sp-navy); color: var(--sp-navy); }
.sp-btn--sm { padding: 8px 14px; min-height: 38px; font-size: 14px; }
.sp-btn--lg { padding: 14px 28px; min-height: 52px; font-size: 17px; }
.sp-btn--block { width: 100%; }
.sp-btn[disabled], .sp-btn.is-disabled { opacity: .55; pointer-events: none; }

.sp-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; line-height: 1.6; background: var(--sp-ivory); color: var(--sp-navy); }
.sp-badge--gold { background: var(--sp-gold); color: var(--sp-navy); }
.sp-badge--navy { background: var(--sp-navy); color: #fff; }
.sp-badge--success { background: var(--sp-success); color: #fff; }

.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 0; color: var(--sp-text-2); cursor: pointer; text-decoration: none; font-size: 15px; }
.link-btn:hover, .link-btn.is-on { color: var(--sp-navy); }
.sp-wish-inline.is-on .sp-icon { fill: var(--sp-error); stroke: var(--sp-error); }

.notice { padding: 12px 16px; border-radius: var(--sp-radius); border-left: 4px solid var(--sp-info); background: #EEF4FA; margin: 0 0 20px; }
.notice--info { border-color: var(--sp-info); }

/* 4. Header ------------------------------------------------------------ */
.announcement { background: var(--sp-navy); color: #E9EDF2; font-size: 14px; text-align: center; padding: 8px 0; }
.announcement a { color: var(--sp-gold-hover); text-decoration: none; }
.announcement a:hover { text-decoration: underline; }

.site-header { background: var(--sp-white); border-bottom: 1px solid var(--sp-border); position: relative; z-index: 50; }
.has-sticky-header .site-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar.has-sticky-header .site-header { top: 32px; } }
.site-header.is-scrolled { box-shadow: var(--sp-shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.site-header__brand { flex: 1; min-width: 0; }
.site-header__actions { display: flex; align-items: center; gap: 2px; }

.site-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sp-navy); }
.site-brand__mark {
	width: 42px; height: 42px; border-radius: 10px; background: var(--sp-navy); color: var(--sp-gold);
	display: inline-flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; flex-shrink: 0;
	box-shadow: inset 0 0 0 2px rgba(196, 154, 82, .35);
}
.site-brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.site-brand__name { font-family: var(--sp-font-heading); font-weight: 700; font-size: 21px; white-space: nowrap; }
.site-brand__tag { font-size: 12px; color: var(--sp-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.custom-logo-link img { max-height: 52px; width: auto; }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 8px;
	border: 0; background: transparent; color: var(--sp-navy); border-radius: var(--sp-radius); cursor: pointer; text-decoration: none; position: relative;
}
.icon-btn:hover { background: var(--sp-grey); color: var(--sp-navy); }
.icon-btn__label { font-size: 15px; font-weight: 500; display: none; }
.cart-count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px;
	background: var(--sp-gold); color: var(--sp-navy); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-count[data-count="0"] { display: none; }

/* Mobile off-canvas nav */
.site-nav {
	position: fixed; inset: 0 auto 0 0; width: min(86vw, 360px); background: var(--sp-white); z-index: 100;
	transform: translateX(-100%); transition: transform .28s var(--sp-ease); overflow-y: auto; padding: 0 0 24px;
	display: flex; flex-direction: column; visibility: hidden;
}
.site-nav.is-open { transform: none; visibility: visible; box-shadow: var(--sp-shadow-md); }
.site-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px var(--sp-gutter); border-bottom: 1px solid var(--sp-border); }
.site-nav .menu { list-style: none; margin: 0; padding: 8px 0; }
.site-nav .menu a { display: block; padding: 12px var(--sp-gutter); text-decoration: none; color: var(--sp-text); font-weight: 500; font-size: 17px; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { color: var(--sp-navy); background: var(--sp-ivory); }
.site-nav .sub-menu { list-style: none; padding: 0 0 0 16px; margin: 0; }
.site-nav__account { display: grid; gap: 10px; padding: 16px var(--sp-gutter); margin-top: auto; border-top: 1px solid var(--sp-border); }
.nav-overlay { position: fixed; inset: 0; background: rgba(15, 30, 50, .45); z-index: 90; }
.nav-overlay[hidden] { display: none; }

.header-search { border-top: 1px solid var(--sp-border); background: var(--sp-white); padding: 14px 0; }
.header-search[hidden] { display: none; }
.header-search__form { display: flex; gap: 8px; }
.header-search__form input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); }

@media (min-width: 1024px) {
	.nav-toggle, .site-nav__head, .site-nav__account, .nav-overlay { display: none !important; }
	.site-header__brand { flex: 0 0 auto; }
	.site-nav { position: static; transform: none; width: auto; visibility: visible; padding: 0; overflow: visible; flex: 1; flex-direction: row; justify-content: center; background: none; }
	.site-nav .menu { display: flex; gap: 2px; padding: 0; }
	.site-nav .menu > li { position: relative; }
	.site-nav .menu a { padding: 8px 12px; font-size: 16px; border-radius: var(--sp-radius); }
	.site-nav .menu a:hover, .site-nav .current-menu-item > a { background: none; color: var(--sp-gold); }
	.site-nav .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--sp-gold); border-radius: 0; }
	.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); box-shadow: var(--sp-shadow-md); padding: 6px; }
	.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
	.icon-btn__label { display: inline; }
}
@media (max-width: 599px) {
	.hide-sm { display: none !important; }
	.site-brand__name { font-size: 18px; }
	.site-brand__mark { width: 38px; height: 38px; font-size: 22px; }
	.site-brand__tag { display: none; }
}

/* 5. Footer ------------------------------------------------------------ */
.site-footer { background: var(--sp-navy-deep); color: #C9D1DB; margin-top: 0; }
.site-footer a { color: #DCE2E9; text-decoration: none; }
.site-footer a:hover { color: var(--sp-gold-hover); }
.footer-newsletter { background: var(--sp-navy); border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 36px 0; }
.footer-newsletter__title { color: #fff; font-size: 24px; margin: 0 0 4px; }
.footer-newsletter p { margin: 0; }
.footer-grid { display: grid; gap: 36px; padding-top: 56px; padding-bottom: 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-col--brand .site-brand { color: #fff; margin-bottom: 14px; }
.footer-col--brand .site-brand__tag { color: #9FAAB7; }
.footer-col--brand p { max-width: 380px; font-size: 15px; }
.footer-title { color: #fff; font-size: 17px; margin: 0 0 14px; }
.footer-links, .footer-contact, .legal-links, .social-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 4px 0; font-size: 15px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 15px; }
.footer-contact .sp-icon { color: var(--sp-gold); flex-shrink: 0; margin-top: 4px; }
.footer-contact + .footer-links { margin-top: 10px; }
.social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); display: inline-flex; align-items: center; justify-content: center; }
.social-links a:hover { border-color: var(--sp-gold); color: var(--sp-gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: 14px; }
.footer-bottom__inner { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.copyright { margin: 0; color: #9FAAB7; }
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* 6. Home ---------------------------------------------------------------- */
.hero { background: radial-gradient(1200px 400px at 85% 0%, var(--sp-gold-soft), transparent 60%), var(--sp-ivory); border-bottom: 1px solid var(--sp-border); overflow: hidden; }
.hero__inner { display: grid; gap: 40px; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 96px); align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.15fr .85fr; } }
.hero__inner > * { min-width: 0; }
.hero__title { overflow-wrap: anywhere; font-size: var(--sp-fs-hero); line-height: 1.22; margin-bottom: 18px; letter-spacing: -.005em; }
.hero__intro { font-size: clamp(17px, 1.6vw, 19px); color: var(--sp-text-2); max-width: 600px; margin-bottom: 28px; }
.hero-search {
	display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--sp-border); border-radius: 12px;
	padding: 6px 6px 6px 14px; box-shadow: var(--sp-shadow-sm); max-width: 600px;
}
.hero-search .sp-icon { color: var(--sp-text-muted); flex-shrink: 0; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; height: 46px; background: transparent; font-size: 16px; }
.hero-search:focus-within { border-color: var(--sp-navy); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero__visual { display: flex; justify-content: center; }
.hero__image { border-radius: var(--sp-radius-lg); box-shadow: var(--sp-shadow-md); }
.hero__stack { position: relative; width: min(100%, 420px); aspect-ratio: 1 / 1; }
.hero__book { position: absolute; width: 52%; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; box-shadow: var(--sp-shadow-book); background: var(--sp-navy); }
.hero__book img { width: 100%; height: 100%; object-fit: cover; }
.hero__book--1 { left: 24%; top: 4%; z-index: 3; }
.hero__book--2 { left: 2%; top: 18%; z-index: 2; transform: rotate(-6deg); }
.hero__book--3 { left: 46%; top: 18%; z-index: 1; transform: rotate(6deg); }
.hero__stack--1 .hero__book--1 { left: 24%; }
.hero__emblem { width: 260px; height: 260px; border-radius: 50%; background: var(--sp-navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(196, 154, 82, .18), var(--sp-shadow-md); }
.hero__emblem span { font-size: 140px; font-weight: 700; color: var(--sp-gold); line-height: 1; }
@media (max-width: 899px) { .hero__visual { order: -1; } .hero__stack { width: min(80%, 300px); } .hero__visual:has(.hero__emblem) { display: none; } }

.subject-tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .subject-tiles { grid-template-columns: repeat(4, 1fr); } }
.subject-tile { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); text-decoration: none; background: #fff; transition: border-color .2s, box-shadow .2s; }
.subject-tile:hover { border-color: var(--sp-gold); box-shadow: var(--sp-shadow-sm); }
.subject-tile__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--sp-ivory); color: var(--sp-gold); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.subject-tile__name { font-weight: 700; color: var(--sp-navy); font-size: 18px; line-height: 1.35; }
.subject-tile__count { font-size: var(--sp-fs-small); color: var(--sp-text-2); }

.why-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-item { padding: 26px 22px; border-radius: var(--sp-radius-lg); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.why-item__icon { display: inline-flex; width: 52px; height: 52px; border-radius: 12px; align-items: center; justify-content: center; background: rgba(196, 154, 82, .14); color: var(--sp-gold); margin-bottom: 14px; }
.why-item h3 { color: #fff; font-size: 19px; }
.why-item p { margin: 0; color: #C5CED9; font-size: 16px; }
.section--navy .section-title::after { background: var(--sp-gold); }

.author-intro { display: grid; gap: 32px; align-items: center; }
@media (min-width: 800px) { .author-intro { grid-template-columns: 320px 1fr; gap: 56px; } }
.author-intro__photo img { border-radius: var(--sp-radius-lg); box-shadow: var(--sp-shadow-md); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.author-intro__mono { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/5; border-radius: var(--sp-radius-lg); background: var(--sp-navy); color: var(--sp-gold); font-size: 120px; font-weight: 700; }
.author-intro__bio { color: var(--sp-text-2); margin: 16px 0 20px; }

.testimonials { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial { margin: 0; padding: 26px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); background: #fff; display: flex; flex-direction: column; gap: 16px; position: relative; }
.testimonial::before { content: "“"; position: absolute; top: 4px; right: 18px; font-size: 64px; line-height: 1; color: var(--sp-gold-soft); font-family: Georgia, serif; }
.testimonial blockquote { margin: 0; color: var(--sp-text); }
.testimonial blockquote p:last-child { margin: 0; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial figcaption span { display: flex; flex-direction: column; line-height: 1.4; }
.testimonial small { color: var(--sp-text-2); }
.testimonial__photo, .testimonial__mono { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial__mono { display: inline-flex; align-items: center; justify-content: center; background: var(--sp-ivory); color: var(--sp-navy); font-weight: 700; }

.section--newsletter { background: var(--sp-navy); }
.newsletter-box { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .newsletter-box { grid-template-columns: 1fr 1fr; gap: 48px; } }
.section--newsletter .section-title { color: #fff; }
.section--newsletter p { color: #C9D1DB; margin: 12px 0 0; }
.sp-newsletter { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.sp-newsletter input[type="email"] { flex: 1 1 220px; min-width: 0; height: 50px; padding: 0 16px; border-radius: var(--sp-radius); border: 1px solid var(--sp-border); background: #fff; color: var(--sp-text); }
.sp-newsletter--dark input[type="email"] { border-color: transparent; }
.sp-newsletter .sp-btn { min-height: 50px; }
.sp-newsletter .sp-form__msg { flex-basis: 100%; margin: 0; min-height: 1.4em; font-size: 15px; }
.sp-newsletter--dark .sp-form__msg.is-success { color: #8ED1B3; }
.sp-newsletter--dark .sp-form__msg.is-error { color: #F0A5A5; }

/* 7. Book card & grid ---------------------------------------------------- */
.sp-grid { display: grid; gap: 28px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .sp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; } }
@media (min-width: 1100px) { .sp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sp-book-card { display: flex; flex-direction: column; background: transparent; }
.sp-book-card__media { position: relative; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: var(--sp-ivory); box-shadow: var(--sp-shadow-sm); transition: box-shadow .25s var(--sp-ease), transform .25s var(--sp-ease); }
.sp-book-card:hover .sp-book-card__media { box-shadow: var(--sp-shadow-book); transform: translateY(-3px); }
.sp-book-card__cover, .sp-book-card__cover img { display: block; width: 100%; height: 100%; }
.sp-book-card__cover img { object-fit: cover; }
.sp-book-card__badge { position: absolute; top: 10px; left: 10px; box-shadow: var(--sp-shadow-sm); }
.sp-wish { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: #CFC8BA; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--sp-shadow-sm); transition: color .2s; }
.sp-wish:hover { color: var(--sp-error); }
.sp-wish.is-on { color: var(--sp-error); }
.sp-book-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 2px 0; flex: 1; }
.sp-book-card__title { font-size: var(--sp-fs-book); line-height: 1.35; margin: 0; font-weight: 700; }
.sp-book-card__title a { color: var(--sp-navy); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-book-card__title a:hover { color: var(--sp-navy-hover); }
.sp-book-card__author { margin: 0; color: var(--sp-text-2); font-size: 15px; }
.sp-book-card__price { margin: 4px 0 10px; }
.sp-book-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.sp-book-card__actions .sp-btn { padding: 8px 6px; font-size: 14px; white-space: normal; text-align: center; }
@media (max-width: 400px) { .sp-book-card__actions { grid-template-columns: 1fr; } }

.sp-price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.sp-price ins { text-decoration: none; font-weight: 700; color: var(--sp-navy); font-size: 19px; }
.sp-price del { color: var(--sp-text-muted); font-size: 15px; }
.sp-price--free { color: var(--sp-success); font-weight: 700; font-size: 18px; }
.sp-price--member { color: var(--sp-navy); font-weight: 600; }
.sp-badge--discount { background: #FBEFEF; color: var(--sp-error); }

.sp-rating { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--sp-text-2); }
.sp-stars { --sp-rating: 0; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 2px; }
.sp-stars::before { content: "★★★★★"; background: linear-gradient(90deg, var(--sp-gold) calc(var(--sp-rating) / 5 * 100%), #DCD7CC 0); -webkit-background-clip: text; background-clip: text; color: transparent; }

.sp-cover-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 18px; text-align: center; background: linear-gradient(160deg, var(--sp-navy), var(--sp-navy-deep)); color: var(--sp-gold); font-weight: 700; font-size: 18px; line-height: 1.4; border: 6px double rgba(196, 154, 82, .4); }

/* 8. Store --------------------------------------------------------------- */
.store { display: grid; gap: 24px; }
@media (min-width: 1024px) { .store { grid-template-columns: 270px 1fr; gap: 40px; align-items: start; } .store__filters { position: sticky; top: 100px; } }
.filters { border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); background: #fff; }
.filters__toggle { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--sp-navy); display: flex; align-items: center; gap: 8px; }
.filters__toggle::-webkit-details-marker { display: none; }
.filters__toggle::after { content: "▾"; margin-left: auto; color: var(--sp-text-muted); }
.filters[open] .filters__toggle::after { content: "▴"; }
.filters__form { padding: 4px 18px 18px; display: grid; gap: 14px; border-top: 1px solid var(--sp-border); }
.field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--sp-text); padding: 0; }
.field input, .field select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); background: #fff; }
.field--price { border: 0; padding: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.field--price legend { grid-column: 1 / -1; margin-bottom: 6px; }
.filters__actions { display: flex; gap: 8px; }
.filters__actions .sp-btn { flex: 1; }
.store__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.store__count { margin: 0; color: var(--sp-text-2); }

.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0; margin: 40px 0 0; }
.pagination a, .pagination span { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); text-decoration: none; color: var(--sp-navy); }
.pagination .current { background: var(--sp-navy); color: #fff; border-color: var(--sp-navy); }
.pagination a:hover { border-color: var(--sp-navy); }

.empty-state { text-align: center; padding: 48px 20px; border: 1px dashed var(--sp-border); border-radius: var(--sp-radius-lg); background: var(--sp-ivory); }
.empty-state h2 { font-size: 24px; }

/* 9. Book detail ------------------------------------------------------- */
.book-hero { background: var(--sp-ivory); border-bottom: 1px solid var(--sp-border); padding: 24px 0 48px; }
.book-detail { display: grid; gap: 28px; margin-top: 12px; }
@media (min-width: 820px) { .book-detail { grid-template-columns: minmax(240px, 360px) 1fr; gap: 56px; align-items: start; } }
.book-detail__cover { max-width: 360px; margin: 0 auto; width: 100%; }
.book-detail__cover img, .book-detail__cover .sp-cover-placeholder { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; box-shadow: var(--sp-shadow-book); }
.book-detail__title { font-size: var(--sp-fs-page); margin-bottom: 6px; }
.book-detail__subtitle { font-size: 19px; color: var(--sp-text-2); margin-bottom: 10px; }
.book-detail__author { font-size: 17px; margin-bottom: 10px; }
.book-detail__author a { font-weight: 600; }
.book-detail__price { margin: 16px 0 20px; }
.book-detail__price .sp-price ins { font-size: 28px; }
.book-detail__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 519px) { .book-detail__actions .sp-btn { width: 100%; } }
.book-detail__minor { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; }
.book-trust { list-style: none; padding: 16px 0 0; margin: 20px 0 0; border-top: 1px solid var(--sp-border); display: grid; gap: 6px; font-size: 15px; color: var(--sp-text-2); }
.book-trust li { display: flex; gap: 8px; align-items: center; }
.book-trust .sp-icon { color: var(--sp-gold); }

.book-body { display: grid; gap: 32px; }
@media (min-width: 1024px) { .book-body { grid-template-columns: 1fr 340px; gap: 56px; align-items: start; } .book-body__side { position: sticky; top: 100px; } }
.book-block { margin-bottom: 40px; }
.book-block h2 { font-size: 24px; padding-bottom: 8px; border-bottom: 1px solid var(--sp-border); }
.check-list, .toc-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; background: var(--sp-gold-soft); color: var(--sp-navy); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.toc-list { counter-reset: toc; }
.toc-list li { counter-increment: toc; padding: 10px 14px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); background: #fff; display: flex; gap: 12px; }
.toc-list li::before { content: counter(toc, devanagari) "."; color: var(--sp-gold); font-weight: 700; min-width: 22px; }
.spec-card { border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); padding: 22px; background: #fff; }
.spec-card h2 { font-size: 19px; margin-bottom: 12px; }
.spec-list { margin: 0; display: grid; }
.spec-list div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--sp-border); font-size: 15px; }
.spec-list div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--sp-text-2); }
.spec-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* Reviews */
.comments__title { font-size: 24px; }
.comment-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.comment-list .children { list-style: none; padding-left: 24px; }
.review__body { border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); padding: 18px; background: #fff; }
.review__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.review__head img { border-radius: 50%; }
.review__meta { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--sp-text-2); }
.review__text p:last-child { margin: 0; }
.comment-respond { border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); padding: 22px; background: var(--sp-ivory); }
.comment-reply-title { font-size: 20px; }
.comment-form p { margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); background: #fff; }
.comment-form .submit { background: var(--sp-navy); color: #fff; border: 0; border-radius: var(--sp-radius); padding: 12px 24px; font-weight: 600; cursor: pointer; }
.comment-form .submit:hover { background: var(--sp-navy-hover); }
.comment-form-cookies-consent { flex-direction: row !important; align-items: center; font-size: 14px; }
.sp-rate { border: 0; padding: 0; margin: 0 0 14px; }
.sp-rate legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.sp-rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.sp-rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sp-rate__stars label { font-size: 32px; line-height: 1; color: #D6D0C3; cursor: pointer; padding: 2px; }
.sp-rate__stars input:checked ~ label, .sp-rate__stars label:hover, .sp-rate__stars label:hover ~ label { color: var(--sp-gold); }
.sp-rate__stars input:focus-visible + label { outline: 2px solid var(--sp-navy); border-radius: 4px; }

/* 10. Pages, entries, forms --------------------------------------------- */
.entry-content { max-width: 780px; }
.entry--page .entry-content, .entry-content--wide { max-width: none; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.entry-content h3 { font-size: 21px; margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--sp-gold); color: var(--sp-text-2); }
.entry-content details, .wp-block-details { border: 1px solid var(--sp-border); border-radius: var(--sp-radius); padding: 0; background: #fff; margin: 0 0 10px; }
.entry-content details > summary, .wp-block-details > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--sp-navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.entry-content details > summary::-webkit-details-marker { display: none; }
.entry-content details > summary::after { content: "+"; color: var(--sp-gold); font-size: 22px; line-height: 1; }
.entry-content details[open] > summary::after { content: "−"; }
.entry-content details > :not(summary) { padding: 0 18px 14px; margin: 0; }
.entry-meta { color: var(--sp-text-2); font-size: var(--sp-fs-small); }
.entry-thumb img { border-radius: var(--sp-radius-lg); margin-bottom: 24px; }

.post-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.post-card__thumb img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-size: 20px; }
.post-card__title a { text-decoration: none; }

.sp-form .sp-field, .sp-contact .sp-field { margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.sp-field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .sp-field-row { grid-template-columns: 1fr 1fr; } }
.sp-field label { font-weight: 600; font-size: 15px; }
.sp-field input, .sp-field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); background: #fff; }
.sp-field input:focus, .sp-field textarea:focus, .field input:focus, .field select:focus { border-color: var(--sp-navy); outline: 2px solid rgba(23, 43, 69, .12); outline-offset: 0; }
.sp-contact { max-width: 720px; padding: 26px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); background: var(--sp-ivory); }
.sp-form__msg { margin: 8px 0 0; min-height: 1.4em; }
.sp-form__msg.is-success { color: var(--sp-success); }
.sp-form__msg.is-error { color: var(--sp-error); }
.sp-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.error-404__inner { text-align: center; max-width: 640px; }
.error-404__code { font-size: clamp(80px, 16vw, 140px); line-height: 1; font-weight: 700; color: var(--sp-gold); margin: 0 0 8px; }
.error-404 .hero-search { margin: 24px auto; }
.error-404__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 11. Plugin components ------------------------------------------------ */
.sp-plans { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 700px) { .sp-plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sp-plans { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.sp-plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px 24px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); background: #fff; }
.sp-plan--highlight { border: 2px solid var(--sp-gold); box-shadow: var(--sp-shadow-md); }
.sp-plan__ribbon { position: absolute; top: -13px; left: 24px; background: var(--sp-gold); color: var(--sp-navy); font-size: 13px; font-weight: 700; padding: 2px 12px; border-radius: 99px; }
.sp-plan__name { font-size: 21px; margin: 0; }
.sp-plan__price { font-size: 32px; font-weight: 700; color: var(--sp-navy); margin: 6px 0; line-height: 1.2; }
.sp-plan__price small { font-size: 15px; font-weight: 500; color: var(--sp-text-2); }
.sp-plan__desc { color: var(--sp-text-2); font-size: 15px; }
.sp-plan__features { list-style: none; margin: 4px 0 20px; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.sp-plan__features li { padding-left: 26px; position: relative; }
.sp-plan__features li::before { content: "✓"; position: absolute; left: 0; color: var(--sp-success); font-weight: 700; }
.sp-plan__cta { margin-top: auto; }
.sp-plan__cta .sp-btn { width: 100%; }

.sp-subjects { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sp-subject { display: flex; flex-direction: column; gap: 4px; padding: 22px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); background: #fff; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.sp-subject:hover { border-color: var(--sp-gold); box-shadow: var(--sp-shadow-sm); }
.sp-subject__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--sp-navy); color: var(--sp-gold); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.sp-subject__name { font-size: 19px; font-weight: 700; color: var(--sp-navy); }
.sp-subject__count { font-size: 14px; color: var(--sp-gold); font-weight: 600; }
.sp-subject__desc { font-size: 15px; color: var(--sp-text-2); }

.sp-authors { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .sp-authors { grid-template-columns: 1fr 1fr; } }
.sp-author { display: grid; grid-template-columns: 88px 1fr; gap: 18px; padding: 20px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); background: #fff; }
.sp-author__photo img, .sp-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.sp-avatar { display: flex; align-items: center; justify-content: center; background: var(--sp-ivory); color: var(--sp-navy); font-size: 34px; font-weight: 700; }
.sp-author__name { font-size: 20px; margin: 0; }
.sp-author__name a { text-decoration: none; }
.sp-author__count { color: var(--sp-gold); font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.sp-author__bio { font-size: 15px; color: var(--sp-text-2); margin: 0; }
.author-head { display: flex; gap: 24px; align-items: center; }
.author-head__photo img, .author-head .author-intro__mono { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; aspect-ratio: 1; font-size: 48px; }

/* Thank-you */
.sp-thankyou { border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); padding: 22px; background: var(--sp-ivory); margin-bottom: 28px; }
.sp-thankyou__list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.sp-thankyou__list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border-radius: var(--sp-radius); border: 1px solid var(--sp-border); }
.sp-notice { padding: 12px 16px; border-radius: var(--sp-radius); margin: 0 0 20px; }
.sp-notice--info { background: #EEF4FA; border-left: 4px solid var(--sp-info); }

/* Toast + WhatsApp */
.sp-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--sp-navy); color: #fff; padding: 12px 20px; border-radius: var(--sp-radius); box-shadow: var(--sp-shadow-md); opacity: 0; pointer-events: none; transition: .25s var(--sp-ease); z-index: 9999; max-width: 90vw; text-align: center; }
.sp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.sp-wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); z-index: 80; }
.sp-wa-float:hover { color: #fff; transform: scale(1.04); }

/* 12. Utilities ---------------------------------------------------------- */
.alignwide { max-width: var(--sp-container); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, .wp-element-caption { font-size: var(--sp-fs-small); color: var(--sp-text-2); }
.sticky, .bypostauthor, .gallery-caption { outline: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .announcement, .sp-wa-float { display: none !important; } }
