.bookstore-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 38%, rgba(150, 207, 163, 0.25), transparent 26%),
    linear-gradient(110deg, #f8f1d9 0%, #faf5e1 55%, #eaf2e7 100%);
}
.bookstore-hero-inner {
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: center;
  gap: 32px;
  padding-block: 34px;
}
.bookstore-hero-copy { position: relative; z-index: 1; max-width: 640px; padding-block: 28px; }
.bookstore-hero h1 { max-width: 620px; font-size: clamp(42px, 6vw, 70px); }
.bookstore-hero h1 em { color: var(--green); font-style: normal; }
.bookstore-hero-copy > p:not(.eyebrow):not(.bookstore-preview-label) { max-width: 585px; color: var(--ink-soft); font-size: 18px; }
.bookstore-preview-label { display: inline-flex; align-items: center; gap: 9px; margin: 9px 0 0; padding: 9px 13px; border: 1px solid #d9dfd1; border-radius: 999px; background: rgba(255, 253, 247, 0.78); color: #43564a; font-size: 12px; font-weight: 750; }
.preview-dot { width: 8px; height: 8px; border-radius: 50%; background: #b67918; }
.bookstore-hero-art { position: relative; width: min(100%, 390px); justify-self: center; }
.bookstore-hero-art::before { position: absolute; inset: 10%; border-radius: 50%; background: #a5d5ac; content: ""; opacity: 0.6; }
.bookstore-hero-art img { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(35, 56, 41, 0.12)); }
.hero-sparkle { position: absolute; z-index: 1; color: #b17a16; font-size: 34px; }
.hero-sparkle-one { top: 5%; left: 8%; }
.hero-sparkle-two { right: 5%; top: 22%; font-size: 28px; }

.bookstore-content { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-block: 68px 82px; }
.bookstore-sidebar { align-self: start; position: sticky; top: 22px; padding: 22px 16px; border: 1px solid #e2dfd0; border-radius: 15px; background: #fffdf7; box-shadow: 0 8px 24px rgba(30, 49, 42, 0.045); }
.sidebar-title { margin: 0 0 14px; padding-inline: 9px; color: var(--green-dark); font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.shelf-nav { display: grid; gap: 5px; }
.shelf-link { min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: #46564b; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
.shelf-link span { width: 20px; color: #805b12; font-size: 18px; text-align: center; }
.shelf-link:hover { background: #f4f1e5; }
.shelf-link[aria-pressed="true"] { background: #e8f1e6; color: var(--green-dark); }
.shelf-link:focus-visible { outline: 3px solid #805b12; outline-offset: 2px; }
.sidebar-note { display: flex; align-items: center; gap: 10px; margin: 24px 4px 0; padding: 14px 8px 0; border-top: 1px solid #e7e3d6; }
.sidebar-note img { flex: 0 0 42px; width: 42px; height: 42px; object-fit: cover; }
.sidebar-note p { margin: 0; color: #526057; font-family: var(--font-display); font-size: 14px; font-weight: 600; line-height: 1.35; }
.bookstore-listing { min-width: 0; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.catalog-heading .eyebrow { margin-bottom: 6px; }
.catalog-heading h2 { margin-bottom: 7px; font-family: var(--font-display); font-size: clamp(31px, 4vw, 42px); font-weight: 650; letter-spacing: -0.025em; line-height: 1.1; }
.catalog-intro { max-width: 620px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.book-results-summary { flex: 0 0 auto; margin: 0 0 4px; color: #58665b; font-size: 13px; font-weight: 750; }
.catalog-tools { display: flex; gap: 12px; margin-bottom: 24px; }
.book-search { flex: 1; min-width: 0; position: relative; }
.book-search svg { position: absolute; top: 50%; left: 14px; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: #647166; stroke-width: 1.8; stroke-linecap: round; }
.book-search input, .book-sort select { width: 100%; min-height: 48px; border: 1px solid #bec8bd; border-radius: 9px; background: #fffefa; color: var(--ink); font-size: 14px; }
.book-search input { padding: 10px 14px 10px 43px; }
.book-search input:focus, .book-sort select:focus { outline: 3px solid rgba(40, 106, 86, 0.2); border-color: var(--green); }
.book-sort { flex: 0 0 180px; }
.book-sort select { padding: 9px 32px 9px 12px; }
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; }
.bookstore-empty { grid-column: 1 / -1; display: grid; justify-items: center; max-width: 650px; min-height: 360px; margin: 4px auto 0; padding: clamp(28px, 6vw, 55px); border: 1px dashed #c6d0c4; border-radius: 18px; background: rgba(255, 253, 247, 0.8); text-align: center; }
.empty-book-icon { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 18px; border-radius: 24px 24px 24px 6px; background: #e2efe1; color: var(--green-dark); }
.empty-book-icon svg { width: 53px; height: 53px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bookstore-empty .eyebrow { margin-bottom: 7px; color: #805b12; }
.bookstore-empty h3 { max-width: 440px; margin-bottom: 10px; font-family: var(--font-display); font-size: clamp(25px, 4vw, 34px); font-weight: 650; line-height: 1.15; }
.bookstore-empty > p:not(.eyebrow) { max-width: 470px; margin-bottom: 22px; color: var(--ink-soft); font-size: 15px; }

.book-card { overflow: hidden; border: 1px solid #e0e3dc; border-radius: 15px; background: #fffdf7; box-shadow: 0 8px 22px rgba(34, 59, 47, 0.045); }
.book-card-cover { display: block; overflow: hidden; background: #e9f1e5; }
.book-card-cover:hover .brand-book-cover--designed { transform: translateY(-2px); }
.brand-book-cover { position: relative; display: flex; width: 100%; aspect-ratio: 4 / 5; flex-direction: column; align-items: center; justify-content: space-between; overflow: hidden; padding: 7% 8%; border: 9px solid #fffdf7; background: radial-gradient(circle at 50% 42%, #c7e5c7 0 28%, transparent 29%), linear-gradient(145deg, #f5edcf, #e0efe1); color: var(--green-dark); text-align: center; transition: transform 180ms ease; }
.cover-brand { align-self: stretch; display: flex; justify-content: space-between; align-items: center; color: var(--green-dark); font-family: var(--font-display); font-size: clamp(13px, 1.6vw, 18px); font-weight: 700; }
.cover-brand small { color: #536159; font-family: var(--font-sans); font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-book-cover--designed > img { display: block; width: 45%; height: 39%; object-fit: contain; }
.cover-category { color: #805b12; font-size: clamp(9px, 1vw, 11px); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.cover-title { display: -webkit-box; max-width: 100%; overflow: hidden; color: var(--green-dark); font-family: var(--font-display); font-size: clamp(17px, 2.1vw, 25px); font-weight: 700; line-height: 1.05; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.cover-tagline { color: #536159; font-size: 9px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.brand-book-cover--uploaded { aspect-ratio: 2 / 3; padding: 0; background: #fffdf7; }
.brand-book-cover--uploaded img { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.book-card-copy { padding: 20px; }
.book-card-category { margin-bottom: 7px; color: #805b12; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.book-card h3 { margin-bottom: 8px; font-family: var(--font-display); font-size: 23px; font-weight: 650; line-height: 1.2; }
.book-card h3 a { text-decoration: none; }
.book-card h3 a:hover, .book-card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.book-card-price-note, .book-product-price-note { margin: 2px 0 12px; color: #665d40; font-size: 12px; line-height: 1.5; }
.book-product-price-note { margin-top: -13px; }
.book-card-copy > p:not(.book-card-category) { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.book-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 12px; border-top: 1px solid #e8e4d8; color: #58665b; font-size: 12px; font-weight: 700; }
.book-card-link { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; color: var(--green-dark); font-size: 14px; font-weight: 800; text-decoration: none; }

.bookstore-bottom-note { background: #eaf1e5; }
.bookstore-bottom-inner { min-height: 92px; display: flex; align-items: center; gap: 17px; }
.bottom-star { color: #805b12; font-size: 24px; }
.bookstore-bottom-inner p { flex: 1; margin: 0; color: var(--green-dark); font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.bookstore-bottom-inner a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--green-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.bookstore-bottom-inner a:hover { text-decoration: underline; text-underline-offset: 3px; }

.book-product-main { min-height: 65vh; padding-block: 25px 86px; }
.book-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 36px; color: #526057; font-size: 13px; }
.book-breadcrumbs a { color: var(--green-dark); font-weight: 700; text-underline-offset: 3px; }
.book-product-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: clamp(28px, 5vw, 58px); max-width: 1240px; margin: 0 auto; }
.book-product-sidebar { position: sticky; top: 22px; }
.shelf-nav a { text-decoration: none; }
.shelf-nav a:hover { background: #f4f1e5; }
.book-product-layout { display: grid; grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr); align-items: start; gap: clamp(32px, 7vw, 84px); max-width: 1000px; margin: 0 auto; }
.book-product-cover { position: sticky; top: 24px; overflow: hidden; margin: 0; border: 1px solid #e0e3dc; border-radius: 20px; background: #e6f0e4; box-shadow: var(--shadow); }
.book-product-cover .brand-book-cover { border: 12px solid #fffdf7; }
.book-product-copy { padding-block: 8px; }
.book-product-copy h1 { margin-bottom: 13px; font-size: clamp(38px, 5vw, 58px); }
.book-product-summary { color: var(--ink-soft); font-size: 18px; line-height: 1.65; }
.book-product-delivery { margin: 18px 0 8px; padding: 12px 15px; border-radius: 12px; background: #e8f2e7; color: var(--green-dark); font-weight: 800; }
.bookstore-delivery-note { margin: 0 0 12px; color: var(--green-dark); font-size: 15px; font-weight: 800; }
.book-product-price { margin: 18px 0; color: var(--green-dark); font-family: var(--font-display); font-size: 27px; font-weight: 700; }
.book-product-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0; padding: 20px 0; border-block: 1px solid #e0e3dc; }
.book-product-facts div { display: grid; gap: 3px; }
.book-product-facts dt { color: #59675d; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.book-product-facts dd { margin: 0; color: var(--ink); font-size: 15px; font-weight: 700; }
.book-product-description h2 { margin-bottom: 8px; font-family: var(--font-display); font-size: 26px; }
.book-product-description p { color: #47544d; font-size: 16px; line-height: 1.7; }
.bookstore-preview-notice { margin: 24px 0; padding: 16px 18px; border: 1px solid #e1d4b1; border-radius: 10px; background: #fbf5e4; color: #544823; font-size: 14px; line-height: 1.6; }

@media (max-width: 850px) {
  .bookstore-content { grid-template-columns: 1fr; gap: 28px; }
  .bookstore-sidebar { position: static; padding: 16px; }
  .sidebar-title { margin-bottom: 10px; }
  .shelf-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-note { display: none; }
  .book-product-shell { grid-template-columns: 1fr; gap: 25px; }
  .book-product-sidebar { position: static; }
  .book-product-layout { max-width: none; }
}
@media (max-width: 620px) {
  .bookstore-hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 6px; padding-block: 38px 22px; }
  .bookstore-hero-copy { padding-block: 8px; }
  .bookstore-hero-copy > p:not(.eyebrow):not(.bookstore-preview-label) { font-size: 16px; }
  .bookstore-hero-art { width: min(83%, 300px); margin: 0 auto; }
  .bookstore-content { padding-block: 38px 52px; }
  .shelf-nav { grid-template-columns: 1fr 1fr; }
  .shelf-link { min-height: 44px; gap: 6px; padding-inline: 7px; font-size: 12px; }
  .catalog-heading { align-items: start; flex-direction: column; gap: 10px; }
  .catalog-tools { flex-direction: column; }
  .book-sort { flex-basis: auto; }
  .book-grid { grid-template-columns: 1fr; }
  .bookstore-empty { min-height: 0; padding: 28px 20px; }
  .bookstore-bottom-inner { align-items: flex-start; flex-wrap: wrap; gap: 8px 12px; padding-block: 18px; }
  .bookstore-bottom-inner p { flex-basis: calc(100% - 45px); font-size: 16px; }
  .bookstore-bottom-inner a { margin-left: 36px; }
  .book-product-main { padding-block: 20px 58px; }
  .book-breadcrumbs { margin-bottom: 24px; font-size: 12px; }
  .book-product-shell { gap: 20px; }
  .book-product-layout { grid-template-columns: 1fr; gap: 26px; }
  .book-product-cover { position: static; width: min(100%, 340px); justify-self: center; }
  .book-product-cover img { aspect-ratio: 4 / 3; }
  .book-product-facts { grid-template-columns: 1fr 1fr; }
}
