:root,
[data-bs-theme="light"] {
  --ebook-paper: #faf8f4;
  --ebook-white: #fffefa;
  --ebook-ink: #251c31;
  --ebook-muted: #62586b;
  --ebook-purple: #563784;
  --ebook-purple-dark: #3e255f;
  --ebook-lilac: #ece3f4;
  --ebook-line: #e7e0e9;
  --ebook-serif: "Fraunces", Georgia, serif;
  --ebook-sans: "DM Sans", system-ui, sans-serif;
  --bs-body-font-family: var(--ebook-sans);
  --bs-body-color: var(--ebook-ink);
  --bs-body-bg: var(--ebook-paper);
  --bs-primary: var(--ebook-purple);
  --bs-primary-rgb: 86, 55, 132;
  --bs-link-color-rgb: 86, 55, 132;
  --bs-link-hover-color-rgb: 62, 37, 95;
  --bs-border-color: var(--ebook-line);
}

body { background: var(--ebook-paper); color: var(--ebook-ink); font-family: var(--ebook-sans); }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ebook-purple);
  outline-offset: 4px;
}
.btn-primary {
  --bs-btn-bg: var(--ebook-purple);
  --bs-btn-border-color: var(--ebook-purple);
  --bs-btn-hover-bg: var(--ebook-purple-dark);
  --bs-btn-hover-border-color: var(--ebook-purple-dark);
  --bs-btn-active-bg: var(--ebook-purple-dark);
  --bs-btn-active-border-color: var(--ebook-purple-dark);
  --bs-btn-disabled-bg: var(--ebook-purple);
  --bs-btn-disabled-border-color: var(--ebook-purple);
  --bs-btn-focus-shadow-rgb: 86, 55, 132;
}
.btn-outline-primary {
  --bs-btn-color: var(--ebook-purple);
  --bs-btn-border-color: var(--ebook-purple);
  --bs-btn-hover-bg: var(--ebook-purple);
  --bs-btn-hover-border-color: var(--ebook-purple);
  --bs-btn-active-bg: var(--ebook-purple-dark);
  --bs-btn-active-border-color: var(--ebook-purple-dark);
  --bs-btn-focus-shadow-rgb: 86, 55, 132;
}

#header { background: var(--ebook-paper); border-bottom: 1px solid var(--ebook-line); }
.ebook-topline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  padding: .48rem .75rem;
  background: var(--ebook-ink);
  color: #fbf7ff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .025em;
  text-align: center;
}
.ebook-topline .material-icons { font-size: 1.05rem; color: #dcc5fd; }
.ebook-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}
.ebook-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .63rem;
  width: fit-content;
  color: inherit;
  font-family: var(--ebook-serif);
  font-size: 1.41rem;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}
.ebook-brand:hover { color: var(--ebook-purple); }
.ebook-brand__mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: .72rem;
  background: var(--ebook-purple);
  color: white;
}
.ebook-brand__mark .material-icons { font-size: 1.23rem; }
.ebook-nav { display: flex; align-items: center; justify-content: center; gap: clamp(1.25rem, 3vw, 2.75rem); }
.ebook-nav a { color: var(--ebook-ink); font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ebook-nav a:hover { color: var(--ebook-purple); text-decoration: underline; text-underline-offset: .3em; }
.ebook-header__actions { display: flex; align-items: center; justify-content: end; gap: .32rem; }
.ebook-icon-link {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  color: var(--ebook-ink);
  text-decoration: none;
  cursor: pointer;
}
.ebook-icon-link:hover, .ebook-search[open] > summary { background: var(--ebook-lilac); color: var(--ebook-purple); }
.ebook-icon-link .material-icons { font-size: 1.33rem; }
.ebook-cart__count {
  position: absolute;
  inset: 0 .02rem auto auto;
  display: grid;
  place-items: center;
  min-width: 1.13rem;
  min-height: 1.13rem;
  padding: 0 .15rem;
  border: 1px solid var(--ebook-paper);
  border-radius: 1rem;
  background: var(--ebook-purple);
  color: white;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1;
}
.ebook-search > summary { list-style: none; }
.ebook-search > summary::-webkit-details-marker { display: none; }
.ebook-search__form {
  position: absolute;
  z-index: 11;
  inset: calc(100% - .25rem) var(--bs-gutter-x, 1.5rem) auto auto;
  display: flex;
  gap: .5rem;
  width: min(22rem, calc(100% - 2rem));
  padding: .6rem;
  border: 1px solid var(--ebook-line);
  border-radius: .75rem;
  background: var(--ebook-white);
  box-shadow: 0 12px 30px #251c3121;
}
.ebook-search__form > input { min-width: 0; }
.ebook-search__form > button { display: grid; place-items: center; flex-shrink: 0; }

.ebook-home { padding-top: clamp(1.25rem, 3.4vw, 2.75rem); padding-bottom: clamp(2.75rem, 7vw, 6.75rem); }
.ebook-hero {
  display: grid;
  position: relative;
  min-height: clamp(385px, 35vw, 500px);
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid #e4d8ee;
  border-radius: 1.15rem;
  background: #ede4f4;
  isolation: isolate;
}
.ebook-hero__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.8rem, 5.2vw, 5.25rem);
}
.ebook-hero h1 {
  margin: 0 0 1.25rem;
  color: var(--ebook-ink);
  font: 550 clamp(2.55rem, 5.1vw, 5.15rem)/.99 var(--ebook-serif);
  letter-spacing: -.064em;
}
.ebook-hero h1 em { color: var(--ebook-purple); font-weight: 500; }
.ebook-hero p { max-width: 28ch; margin: 0 0 1.8rem; color: var(--ebook-muted); font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.58; }
.ebook-hero__image { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 52% 50%; }
.ebook-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .86rem 1.24rem;
  border: 1px solid transparent;
  border-radius: 3rem;
  background: var(--ebook-purple);
  color: white;
  font-size: .91rem;
  font-weight: 700;
  text-decoration: none;
}
.ebook-button:hover { background: var(--ebook-purple-dark); color: white; }
.ebook-button .material-icons, .ebook-shelf__link .material-icons { font-size: 1.15rem; }
.ebook-promise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.65rem 0 0;
  padding: .85rem 0;
  border-block: 1px solid var(--ebook-line);
  list-style: none;
}
.ebook-promise li { display: flex; align-items: center; justify-content: center; gap: .7rem; min-width: 0; padding: .45rem .6rem; }
.ebook-promise li + li { border-left: 1px solid var(--ebook-line); }
.ebook-promise i {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--ebook-lilac);
  color: var(--ebook-purple);
  font-size: 1.18rem;
}
.ebook-promise strong, .ebook-promise small { display: block; line-height: 1.35; }
.ebook-promise strong { font-size: .91rem; }
.ebook-promise small { margin-top: .12rem; color: var(--ebook-muted); font-size: .79rem; }
.ebook-shelf { padding-top: clamp(2.6rem, 6.25vw, 5.5rem); scroll-margin-top: 1rem; }
.ebook-shelf__heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.4rem; }
.ebook-shelf__heading h2, .ebook-help h2 {
  margin: 0 0 .4rem;
  font: 550 clamp(2rem, 3.65vw, 3.45rem)/1.05 var(--ebook-serif);
  letter-spacing: -.052em;
}
.ebook-shelf__heading p, .ebook-help__intro p { margin: 0; color: var(--ebook-muted); }
.ebook-shelf__link { display: inline-flex; align-items: center; gap: .45rem; padding-block: .5rem; color: var(--ebook-purple); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.ebook-shelf__link:hover { text-decoration: underline; text-underline-offset: .3em; }
.ebook-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 1.8vw, 1.45rem); }
.ebook-card { min-width: 0; }
.ebook-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ebook-line);
  border-radius: .86rem;
  background: var(--ebook-white);
  color: var(--ebook-ink);
  text-decoration: none;
  transition: box-shadow .2s, border-color .2s;
}
.ebook-card__link:hover { border-color: #cdbcdc; color: var(--ebook-ink); box-shadow: 0 10px 26px #251c3112; }
.ebook-card__art { overflow: hidden; aspect-ratio: 1; background: var(--ebook-lilac); }
.ebook-card__art img { display: block; width: 100%; height: auto; transition: transform .25s; }
.ebook-card__link:hover img { transform: scale(1.035); }
.ebook-card__details { display: flex; flex: 1; flex-direction: column; padding: clamp(.75rem, 1.4vw, 1.22rem); }
.ebook-card__category {
  align-self: flex-start;
  padding: .24rem .48rem;
  border-radius: .3rem;
  background: #f1eaf6;
  color: var(--ebook-purple);
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .045em;
  line-height: 1;
  text-transform: uppercase;
}
.ebook-card h3 { margin: .63rem 0 .55rem; font: 550 clamp(1.13rem, 1.8vw, 1.55rem)/1.15 var(--ebook-serif); letter-spacing: -.035em; }
.ebook-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: .35rem; margin-top: auto; }
.ebook-card__price { font-weight: 750; }
.ebook-card__arrow { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: var(--ebook-lilac); color: var(--ebook-purple); }
.ebook-card__arrow .material-icons { font-size: 1rem; }
.ebook-card__link:hover .ebook-card__arrow { background: var(--ebook-purple); color: white; }

.ebook-help {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: start;
  gap: clamp(1.6rem, 5vw, 4rem);
  margin-top: clamp(3.5rem, 7.5vw, 6.75rem);
  padding: clamp(1.35rem, 4.3vw, 3.75rem);
  border: 1px solid #e5d8ee;
  border-radius: 1.15rem;
  background: #f1e9f5;
  scroll-margin-top: 1rem;
}
.ebook-help ol { display: grid; gap: .95rem; margin: 0; padding: 0; list-style: none; counter-reset: ebook-steps; }
.ebook-help li { position: relative; padding: .25rem 0 .25rem 3.1rem; color: var(--ebook-muted); counter-increment: ebook-steps; }
.ebook-help li + li { padding-top: .85rem; border-top: 1px solid #dfd4e7; }
.ebook-help li::before {
  position: absolute;
  top: .05rem;
  left: 0;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 50%;
  background: #e6d8ef;
  color: var(--ebook-purple);
  content: counter(ebook-steps);
  font-size: .88rem;
  font-weight: 750;
}
.ebook-help li + li::before { top: .68rem; }
.ebook-help li strong, .ebook-help li span { display: block; }
.ebook-help li strong { margin-bottom: .15rem; color: var(--ebook-ink); }

#footer { background: var(--ebook-ink); }
.ebook-footer { padding: clamp(2.75rem, 5.2vw, 4.6rem) 0 1.3rem; background: var(--ebook-ink); color: #f5edfc; }
.ebook-footer__main { display: grid; grid-template-columns: 1.35fr .8fr .95fr 1fr; gap: 1.6rem 1.4rem; }
.ebook-footer .ebook-brand { color: white; }
.ebook-footer .ebook-brand__mark { background: #e7d6f8; color: var(--ebook-purple-dark); }
.ebook-footer p { margin: .95rem 0 0; color: #d5c7df; font-size: .92rem; }
.ebook-footer nav { display: grid; align-content: start; gap: .45rem; }
.ebook-footer nav strong { margin-bottom: .14rem; font-size: .89rem; }
.ebook-footer nav a { width: fit-content; color: #d5c7df; font-size: .88rem; text-decoration: none; }
.ebook-footer nav a:hover { color: white; text-decoration: underline; }
.ebook-footer :focus-visible { outline-color: #e7d6f8; }
.ebook-footer__base { margin-top: 2.4rem; padding-top: 1.1rem; border-top: 1px solid #4c3c5a; color: #d5c7df; font-size: .78rem; }
.ebook-seller { margin-top: .85rem; font-size: .78rem !important; line-height: 1.45; }
.ebook-footer .ebook-seller--missing { color: #f3ddb0 !important; }
.ebook-seller-card { margin: 0 0 1.4rem; padding: 1rem 1.15rem; border: 1px solid var(--ebook-line); border-radius: .8rem; background: var(--ebook-white); }
.ebook-seller-card h2 { margin: 0 0 .45rem; font-family: var(--ebook-serif); font-size: 1.45rem; }
.ebook-facts { display: grid; grid-template-columns: 8.6rem 1fr; gap: .28rem .7rem; margin: .15rem 0 .75rem; }
.ebook-facts div { display: contents; }
.ebook-facts dt { color: var(--ebook-ink); font-weight: 700; }
.ebook-facts dd { margin: 0; }
.ebook-legal h2 { margin: 1.5rem 0 .55rem; font-family: var(--ebook-serif); font-size: 1.45rem; letter-spacing: -.03em; }
.ebook-legal h3 { margin: 1.1rem 0 .35rem; font-size: 1.02rem; }
.ebook-legal p, .ebook-legal li { line-height: 1.55; }
.ebook-legal ul { padding-left: 1.15rem; }
.ebook-consent-note { margin: .85rem 0 0; color: var(--ebook-muted); font-size: .9rem; line-height: 1.45; }
#conditions-to-approve .form-check { align-items: flex-start; }
#conditions-to-approve .form-check-input { margin-top: .35rem; }
#conditions-to-approve .form-check-label { line-height: 1.45; }

body:not(#index) #wrapper h1,
.product__name,
.page-header h1 {
  color: var(--ebook-ink);
  font-family: var(--ebook-serif);
  font-weight: 550;
  letter-spacing: -.045em;
}
.product__container { gap: clamp(1.5rem, 5vw, 4rem); }
.product__left img { border-radius: .9rem; }
.product__right { align-self: start; }
.product__name { font-size: clamp(2.3rem, 4.15vw, 4.35rem); line-height: 1.03; }
.product__description-short { color: var(--ebook-muted); line-height: 1.6; }
.product__current-price, .product-miniature__price { color: var(--ebook-ink); }
.product-miniature__image-container { border-radius: .75rem; overflow: hidden; }
.product-miniature__title { color: var(--ebook-ink); font-family: var(--ebook-serif); font-size: 1.2rem; text-decoration: none; }
.ebook-product-format, .ebook-product-delivery { display: inline-flex; align-items: center; gap: .45rem; }
.ebook-product-format { padding: .32rem .65rem; border-radius: 2rem; background: var(--ebook-lilac); color: var(--ebook-purple); font-size: .81rem; font-weight: 700; }
.ebook-product-format .material-icons, .ebook-product-delivery .material-icons { font-size: 1.05rem; }
.ebook-product-delivery { margin-top: .9rem; color: var(--ebook-muted); font-size: .9rem; }
.product__add-to-cart-button { min-height: 2.6rem; border-radius: 2rem; font-weight: 700; }
.product__accordion { --bs-accordion-active-color: var(--ebook-purple); }
.ebook-delivery-note, .ebook-cart-delivery {
  display: flex;
  align-items: flex-start;
  gap: .68rem;
  border: 1px solid var(--ebook-line);
  border-radius: .8rem;
  background: #f2ebf6;
  color: var(--ebook-muted);
}
.ebook-delivery-note { padding: 1.2rem; }
.ebook-delivery-note .material-icons, .ebook-cart-delivery .material-icons { color: var(--ebook-purple); font-size: 1.2rem; }
.ebook-delivery-note h2 { margin: 0 0 .4rem; color: var(--ebook-ink); font-size: 1.06rem; }
.ebook-delivery-note p { margin: 0 0 .5rem; }
.ebook-delivery-note a { color: var(--ebook-purple); font-weight: 700; }
.ebook-cart-delivery { margin: .8rem 0 0; padding: .85rem; font-size: .89rem; }
body:has(.ebook-cart-delivery) #cart-subtotal-shipping { display: none; }
#checkout #header, #checkout #footer { border-color: var(--ebook-line); }

@media (max-width: 991.98px) {
  .ebook-hero__body { padding: clamp(1.4rem, 4.5vw, 3rem); }
  .ebook-hero h1 { font-size: clamp(2.5rem, 5.7vw, 4.2rem); }
}
@media (max-width: 767.98px) {
  .ebook-header__inner { grid-template-columns: 1fr auto; min-height: auto; gap: 0; }
  .ebook-header__inner > .ebook-brand, .ebook-header__actions { min-height: 3.8rem; }
  .ebook-header__actions { grid-column: 2; grid-row: 1; gap: .06rem; }
  .ebook-brand { font-size: 1.22rem; gap: .45rem; }
  .ebook-brand__mark { width: 1.95rem; height: 1.95rem; border-radius: .58rem; }
  .ebook-icon-link { width: 2.5rem; height: 2.5rem; }
  .ebook-nav { grid-column: 1 / -1; gap: clamp(1rem, 6vw, 2.6rem); padding: .62rem 0 .74rem; border-top: 1px solid var(--ebook-line); }
  .ebook-nav a { font-size: .86rem; }
  .ebook-search__form { top: 3.55rem; }
  .ebook-hero { grid-template-columns: 1fr; min-height: auto; }
  .ebook-hero__body { min-height: auto; padding: 1.65rem; }
  .ebook-hero h1 { font-size: clamp(2.7rem, 9.2vw, 4.2rem); }
  .ebook-hero__image { aspect-ratio: 1.85; }
  .ebook-promise { padding: .55rem 0; }
  .ebook-promise li { flex-direction: column; justify-content: start; text-align: center; gap: .4rem; }
  .ebook-promise strong { font-size: .74rem; }
  .ebook-promise small { display: none; }
  .ebook-promise i { width: 2.05rem; height: 2.05rem; font-size: 1.1rem; }
  .ebook-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ebook-help { grid-template-columns: 1fr; }
  .ebook-footer__main { grid-template-columns: 1fr 1fr; gap: 1.35rem 1rem; }
  .ebook-facts { grid-template-columns: 7.4rem 1fr; }
  .ebook-footer__main > div { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .ebook-shelf__heading { align-items: start; flex-direction: column; gap: .3rem; }
  .ebook-shelf__link { padding-block: .2rem; }
  .ebook-card__arrow { width: 1.65rem; height: 1.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ebook-card__link, .ebook-card__art img { transition: none; }
}
