:root {
  --navy: #061435;
  --ink: #0d1b43;
  --muted: #5e6c88;
  --blue: #0075ff;
  --blue-deep: #0a4ec9;
  --orange: #fe951c;
  --orange-deep: #ff7b00;
  --green: #13a871;
  --green-deep: #087b59;
  --paper: #ffffff;
  --soft: #f4f8fd;
  --line: rgba(8, 24, 67, 0.1);
  --shadow-sm: 0 16px 34px rgba(8, 24, 67, 0.08);
  --shadow-md: 0 24px 58px rgba(8, 24, 67, 0.13);
  --shadow-hero: 0 34px 76px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0d1118;
  color: var(--ink);
  padding-top: 90px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.bookshop-page {
  overflow: hidden;
  background: #0d1118;
}

.container {
  width: min(100% - 32px, 1180px);
}

.bookshop-hero {
  position: relative;
  padding: clamp(24px, 4vw, 48px) 0 clamp(24px, 4vw, 48px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #061435 0%, #0b347e 54%, #101827 100%);
  background-size:
    72px 72px,
    72px 72px,
    auto;
}

.bookshop-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(13, 17, 24, 0) 0%, #0d1118 100%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
}

.hero-copy .section-kicker {
  margin-bottom: 10px;
  padding: 6px 12px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 18px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #a7d3ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker-dark {
  background: #eaf3ff;
  border-color: #d8e9ff;
  color: var(--blue-deep);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 16px;
  color: rgba(239, 246, 255, 0.86);
  font-size: 1.07rem;
  line-height: 1.55;
}

.hero-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
  width: min(100%, 660px);
  min-height: 54px;
  padding: 8px 10px 8px 20px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.hero-search i {
  color: var(--blue);
  font-size: 1.18rem;
}

.hero-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-weight: 650;
  background: transparent;
}

.hero-search input::placeholder {
  color: #7b879d;
  font-weight: 600;
}

.hero-search button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: #eef4fb;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.hero-search button.show {
  opacity: 1;
  pointer-events: auto;
}

.hero-search button:hover {
  background: var(--blue);
  color: #fff;
}

.hero-search button i {
  color: inherit;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: #fff;
  color: var(--blue-deep);
  transform: translateY(-2px);
}

.filter-pill.active {
  border-color: #9fcfff;
  box-shadow: inset 0 0 0 1px #9fcfff;
}

.filter-pill:focus-visible {
  outline: 2px solid #9fcfff;
  outline-offset: 3px;
}

.filter-pill-free.active,
.filter-pill-free:hover {
  color: var(--green-deep);
}

.hero-media {
  position: relative;
  justify-self: end;
  width: min(100%, 500px);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-hero);
}

.hero-media-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(6, 20, 53, 0.82);
  color: #fff;
  backdrop-filter: blur(14px);
}

.hero-media-panel span {
  display: block;
  margin-bottom: 4px;
  color: #8de0bd;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-media-panel strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.35;
}

.featured-free-section {
  padding: 48px 0 52px;
  background: var(--soft);
}

html[data-theme="dark"] .bookshop-page > .bookshop-coach-section {
  background: linear-gradient(180deg, #07090d 0, #0c111a 160px);
}

.section-heading {
  max-width: 900px;
  margin: 0 0 22px;
}

.section-heading h2,
.results-top h2,
.premium-copy h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.results-top p,
.premium-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.78;
}

.featured-free-section .section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1fr);
  align-items: end;
  gap: 28px;
  max-width: none;
}

.featured-free-section .section-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.featured-free-section .section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3.05rem);
}

.featured-free-section .section-heading p {
  max-width: 650px;
  padding-bottom: 8px;
}

.free-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.free-path-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: flex-start;
  min-height: 154px;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(19, 168, 113, 0.18);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.free-path-card:hover {
  transform: translateY(-4px);
  border-color: rgba(19, 168, 113, 0.38);
  box-shadow: var(--shadow-md);
}

.free-path-number {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e7fbf2;
  color: var(--green-deep);
  font-weight: 900;
}

.free-path-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.free-path-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.18rem;
}

.free-path-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.free-path-card > i {
  color: var(--green-deep);
  font-size: 1.18rem;
}

.bookshop-results-section {
  padding: 96px 0 104px;
  background: #fff;
}

body.search-active .featured-free-section {
  display: none;
}

body.search-active .bookshop-results-section {
  padding-top: 54px;
}

.results-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-bottom: 20px;
  padding: 14px clamp(12px, 2vw, 22px);
  border: 1px solid rgba(0, 117, 255, 0.2);
  border-inline-start: 3px solid #3186f6;
  border-radius: 16px;
  background: #f7fbff;
}

.results-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-icon {
  display: grid;
  flex: 0 0 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  background: rgba(49, 134, 246, 0.16);
  color: #1657aa;
  font-size: 1.15rem;
}

html[data-theme="dark"] .results-icon {
  color: #9bcaff;
}

.results-top .results-heading h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.75rem);
}

.results-top .results-heading p {
  margin: 3px 0 0;
  font-size: 0.875rem;
  line-height: 1.35;
}

.legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 750;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.75rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
}

.status-free {
  background: var(--green);
}

.status-premium {
  background: var(--orange);
}

.bookshop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.bookshop-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 235px) minmax(0, 1fr);
  align-items: stretch;
  min-height: 142px;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(8, 24, 67, 0.06);
  box-shadow: 0 18px 45px rgba(8, 24, 67, 0.07);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.bookshop-card::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 258px;
  width: 4px;
  border-radius: 999px;
  background: var(--blue);
  z-index: 2;
}

.bookshop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 62px rgba(8, 24, 67, 0.11);
}

.bookshop-card[hidden] {
  display: none;
}

.bookshop-card-free:hover,
.bookshop-card-premium:hover {
  border-color: rgba(0, 117, 255, 0.18);
}

.bookshop-media {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  background: #071633;
}

.bookshop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.bookshop-card:hover .bookshop-media img {
  transform: scale(1.045);
}

.access-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.access-free {
  background: var(--green);
}

.access-premium {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
}

.bookshop-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 22px 28px 22px 48px;
}

.bookshop-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.bookshop-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #eef4fb;
  color: #51607a;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.bookshop-card-free .bookshop-meta span:first-child {
  background: #e7fbf2;
  color: var(--green-deep);
}

.bookshop-card-premium .bookshop-meta span:first-child {
  background: #fff1df;
  color: #b95b00;
}

.bookshop-copy h3 {
  position: relative;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.34rem;
  line-height: 1.2;
}

.bookshop-copy h3::before {
  content: "\f4f4";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 12px;
  border: 2px solid var(--blue);
  border-radius: 10px;
  color: var(--blue);
  font-family: "bootstrap-icons";
  font-size: 1rem;
  line-height: 1;
  vertical-align: middle;
}

.bookshop-card-premium .bookshop-copy h3::before {
  content: "\f586";
}

.bookshop-card-free .bookshop-copy h3::before {
  content: "\f5ff";
}

.bookshop-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.bookshop-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.bookshop-copy li {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px 5px 24px;
  border-radius: 999px;
  background: #f3f7fc;
  color: #34435e;
  font-size: 0.92rem;
  line-height: 1.45;
}

.bookshop-copy li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
}

.bookshop-card-free .bookshop-copy li::before {
  background: var(--green);
}

.bookshop-card-premium .bookshop-copy li::before {
  background: var(--orange);
}

.bookshop-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  width: max-content;
  max-width: 100%;
  margin-top: auto;
  padding: 9px 16px;
  border-radius: 8px;
  background: #eef4fb;
  color: var(--blue-deep);
  font-weight: 850;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.bookshop-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.bookshop-actions-row .bookshop-action {
  margin-top: 0;
}

.bookshop-buy-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  width: max-content;
  max-width: 100%;
  padding: 9px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(254, 149, 28, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.bookshop-buy-action:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(254, 149, 28, 0.25);
}

.bookshop-action:hover {
  background: var(--blue);
  color: #fff;
}

.bookshop-action-free {
  background: #e7fbf2;
  color: var(--green-deep);
}

.bookshop-action-free:hover {
  background: var(--green);
  color: #fff;
}

.no-results {
  margin-top: 28px;
  padding: 44px 24px;
  border-radius: 8px;
  text-align: center;
  background: var(--soft);
  border: 1px solid var(--line);
}

.no-results i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-size: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.no-results h3 {
  margin: 0 0 8px;
  color: var(--ink);
}

.no-results p {
  margin: 0;
  color: var(--muted);
}

.premium-section {
  padding: 96px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #061435 0%, #0b347e 58%, #111827 100%);
  background-size:
    72px 72px,
    72px 72px,
    auto;
}

.premium-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 450px);
  align-items: center;
  gap: 52px;
}

.premium-copy h2 {
  color: #fff;
  max-width: 720px;
}

.premium-copy p {
  color: rgba(239, 246, 255, 0.84);
  max-width: 650px;
}

.premium-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 850;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  box-shadow: 0 18px 36px rgba(254, 149, 28, 0.24);
}

.hero-btn-primary:hover {
  color: #fff;
  box-shadow: 0 22px 42px rgba(254, 149, 28, 0.3);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.premium-checklist {
  display: grid;
  gap: 14px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 750;
  backdrop-filter: blur(14px);
}

.check-row i {
  color: var(--orange);
  font-size: 1.18rem;
  flex: 0 0 auto;
}

body.modal-open {
  overflow: hidden;
}

.bookshop-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(12, 24, 58, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.bookshop-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.bookshop-modal-close {
  position: fixed;
  top: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.28rem;
  backdrop-filter: blur(12px);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.bookshop-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.bookshop-modal-card {
  width: min(100%, 720px);
  max-height: min(90vh, 760px);
  overflow: hidden auto;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.22s ease;
}

.bookshop-modal.show .bookshop-modal-card {
  transform: translateY(0) scale(1);
}

.bookshop-modal-media {
  position: relative;
  height: clamp(250px, 46vh, 430px);
  overflow: hidden;
  background: #071633;
}

.bookshop-modal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 12, 31, 0.36) 0%,
    rgba(5, 12, 31, 0.12) 48%,
    rgba(5, 12, 31, 0) 100%
  );
  pointer-events: none;
}

.bookshop-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bookshop-modal-access {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.bookshop-modal-access.free {
  background: var(--green);
}

.bookshop-modal-access.premium {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
}

.bookshop-modal-body {
  padding: 28px 34px 30px;
}

.bookshop-modal-meta {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.bookshop-modal-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 8px;
  background: #eef4fb;
  color: #365174;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bookshop-modal-meta span:first-child {
  background: #e7fbf2;
  color: var(--green-deep);
}

.bookshop-modal-body h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.bookshop-modal-body p {
  max-width: 720px;
  margin: 0 0 18px;
  color: #5d6a86;
  font-size: 1rem;
  line-height: 1.65;
}

.bookshop-modal-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.bookshop-modal-points span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px 7px 28px;
  border-radius: 999px;
  background: #f3f7fc;
  color: #34435e;
  font-weight: 650;
}

.bookshop-modal-points span::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
}

.bookshop-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bookshop-modal-action,
.bookshop-modal-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.bookshop-modal-buy[hidden] {
  display: none;
}

.bookshop-modal-action:hover,
.bookshop-modal-buy:hover {
  transform: translateY(-2px);
}

.bookshop-modal-action.free {
  background: #e7fbf2;
  color: var(--green-deep);
}

.bookshop-modal-action.free:hover {
  background: var(--green);
  color: #fff;
}

.bookshop-modal-action.premium {
  background: #fff1df;
  color: #b95b00;
}

.bookshop-modal-action.premium:hover {
  background: var(--orange);
  color: #fff;
}

.bookshop-modal-buy {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  box-shadow: 0 14px 30px rgba(254, 149, 28, 0.22);
}

.bookshop-modal-buy:hover {
  color: #fff;
  box-shadow: 0 18px 34px rgba(254, 149, 28, 0.3);
}

.footer-section {
  background: #071633;
  color: #fff;
  padding: 70px 0 30px;
}

.footer-title {
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-subtitle {
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-text {
  color: #cbd5e1;
  line-height: 1.65;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #cbd5e1;
  transition:
    color 0.25s ease,
    padding-left 0.25s ease;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.footer-social a:hover {
  background: var(--blue);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  color: #aeb8c8;
  font-size: 14px;
}

.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal {
  transform: translateY(34px);
}

.reveal-left {
  transform: translateX(-34px);
}

.reveal-right {
  transform: translateX(34px);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

@media (max-width: 1199px) {
  .bookshop-card {
    grid-template-columns: minmax(150px, 215px) minmax(0, 1fr);
  }

  .bookshop-card::before {
    left: 238px;
  }
}

@media (max-width: 991px) {
  body {
    padding-top: 84px;
  }

  .hero-layout,
  .premium-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-media {
    justify-self: center;
  }

  .hero-media img {
    aspect-ratio: 16 / 9;
  }

  .free-path-grid {
    grid-template-columns: 1fr;
  }

  .featured-free-section .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .featured-free-section .section-heading p {
    padding-bottom: 0;
  }

  .bookshop-card {
    grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
  }

  .bookshop-card::before {
    left: 212px;
  }

  .bookshop-copy {
    padding: 20px 22px 20px 44px;
  }
}

@media (max-width: 767px) {
  .hero-copy h1 {
    font-size: clamp(1.9rem, 6vw, 2.5rem);
  }

  .section-heading p,
  .results-top p,
  .premium-copy p {
    font-size: 1rem;
    line-height: 1.72;
  }

  .hero-search {
    min-height: 52px;
    grid-template-columns: 22px minmax(0, 1fr) 34px;
    padding-left: 16px;
  }

  .hero-search input {
    font-size: 0.94rem;
  }

  .filter-pill {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 0;
  }

  .featured-free-section,
  .bookshop-results-section,
  .premium-section {
    padding: 72px 0;
  }

  .featured-free-section {
    padding: 44px 0;
  }

  .featured-free-section .section-heading h2 {
    font-size: 2rem;
  }

  .bookshop-grid {
    gap: 16px;
  }

  .bookshop-card {
    display: block;
    min-height: 118px;
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(8, 24, 67, 0.07);
  }

  .bookshop-card-free {
    border-color: rgba(19, 168, 113, 0.2);
  }

  .bookshop-card-premium {
    border-color: rgba(254, 149, 28, 0.22);
  }

  .bookshop-card::before {
    top: 24px;
    bottom: 24px;
    left: 30px;
    width: 4px;
    height: auto;
  }

  .bookshop-card-free::before {
    background: var(--green);
  }

  .bookshop-card-premium::before {
    background: var(--orange);
  }

  .bookshop-media {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 76px;
    height: 76px;
    min-height: 0;
    border-radius: 18px;
    transform: translateY(-50%);
    opacity: 1;
    pointer-events: none;
    border: 1px solid rgba(8, 24, 67, 0.08);
    box-shadow: 0 12px 24px rgba(8, 24, 67, 0.13);
  }

  .bookshop-media img {
    transform: none;
    filter: saturate(1.08) contrast(1.03);
  }

  .bookshop-card:hover .bookshop-media img {
    transform: none;
  }

  .access-badge,
  .bookshop-meta,
  .bookshop-copy ul {
    display: none;
  }

  .bookshop-copy {
    min-height: 118px;
    padding: 25px 108px 22px 58px;
    justify-content: center;
  }

  .bookshop-copy h3 {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    color: #06113a;
    font-size: 1.12rem;
    font-weight: 850;
    line-height: 1.25;
  }

  .bookshop-copy h3::before {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin-right: 14px;
    border-radius: 9px;
    font-size: 0.88rem;
  }

  .bookshop-card-free .bookshop-copy h3::before {
    border-color: var(--green);
    color: var(--green);
  }

  .bookshop-card-premium .bookshop-copy h3::before {
    border-color: var(--orange);
    color: var(--orange);
  }

  .bookshop-copy p {
    display: -webkit-box;
    margin: 6px 0 0;
    color: #5d6a86;
    font-size: 0.82rem;
    line-height: 1.38;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .bookshop-action {
    position: absolute;
    inset: 0;
    width: auto;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 22px;
    opacity: 0;
    color: transparent;
    background: transparent;
  }

  .bookshop-action i {
    display: none;
  }

  .bookshop-actions-row {
    display: none;
  }

  .premium-actions .hero-btn {
    width: 100%;
  }

  .bookshop-modal {
    align-items: center;
    padding: 74px 12px 22px;
  }

  .bookshop-modal-close {
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 1.05rem;
  }

  .bookshop-modal-card {
    width: min(100%, 360px);
    max-height: 78vh;
    border-radius: 22px;
  }

  .bookshop-modal-media {
    height: 190px;
  }

  .bookshop-modal-access {
    top: 16px;
    left: 16px;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 0.78rem;
  }

  .bookshop-modal-body {
    padding: 20px 18px 20px;
  }

  .bookshop-modal-meta {
    justify-content: flex-start;
    margin-bottom: 16px;
  }

  .bookshop-modal-meta span {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .bookshop-modal-body h2 {
    margin-bottom: 10px;
    font-size: 1.45rem;
  }

  .bookshop-modal-body p {
    margin-bottom: 14px;
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .bookshop-modal-points {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
  }

  .bookshop-modal-points span {
    width: max-content;
    max-width: 100%;
    min-height: 30px;
    padding: 6px 10px 6px 24px;
    font-size: 0.78rem;
  }

  .bookshop-modal-points span::before {
    left: 10px;
  }

  .bookshop-modal-action {
    width: 100%;
    min-height: 46px;
  }

  .bookshop-modal-buy {
    width: 100%;
    min-height: 46px;
  }
}

@media (max-width: 575px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 7vw, 2.15rem);
  }

  .section-heading h2,
  .results-top h2,
  .premium-copy h2 {
    font-size: 2rem;
  }

  .hero-media-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 8px 10px;
  }

  .free-path-card,
  .check-row {
    padding: 20px;
  }

  .bookshop-card {
    min-height: 104px;
    border-radius: 20px;
  }

  .bookshop-card::before {
    top: 22px;
    bottom: 22px;
    left: 24px;
  }

  .bookshop-media {
    right: 12px;
    width: 62px;
    height: 62px;
    border-radius: 16px;
    opacity: 1;
  }

  .bookshop-copy {
    min-height: 104px;
    padding: 21px 84px 19px 48px;
  }

  .bookshop-copy h3 {
    font-size: 0.98rem;
  }

  .bookshop-copy h3::before {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    border-radius: 8px;
    font-size: 0.82rem;
  }

  .bookshop-copy p {
    margin-top: 5px;
    font-size: 0.76rem;
    line-height: 1.32;
  }

  .free-path-card {
    grid-template-columns: 1fr auto;
    min-height: auto;
    gap: 12px;
  }

  .free-path-number {
    grid-column: 1 / -1;
    width: 40px;
    height: 40px;
  }

  .filter-pill {
    flex-basis: 100%;
  }

  .bookshop-modal-media {
    height: 160px;
  }

  .bookshop-modal-body h2 {
    font-size: 1.3rem;
  }

  .bookshop-modal-body p {
    font-size: 0.92rem;
  }
}
