.bookstore {
  --cs-navy: #10243e;
  --cs-blue: #247684;
  --cs-coral: #ee6542;
  --cs-paper: #fbfaf5;
  --cs-cream: #f5e2ae;
  --cs-mint: #e8f1ef;
  --cs-line: #dbe4e6;
  --cs-copy: #4c5e72;
  color: var(--cs-navy);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

.bookstore main {
  min-height: 56vh;
}

.bookstore p,
.bookstore li {
  color: var(--cs-copy);
}

.bookstore a,
.bookstore button,
.bookstore input,
.bookstore select,
.bookstore textarea {
  -webkit-tap-highlight-color: transparent;
}

.bookstore-header {
  position: relative;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(16, 36, 62, .04);
}

.bookstore .brand-word {
  text-wrap: nowrap;
}

.bookstore .book-search input::placeholder {
  color: #7c8997;
  opacity: 1;
}

.bookstore .shop-tools > a,
.bookstore .shelf-nav a,
.bookstore .category-menu > summary {
  font-weight: 750;
}

.bookstore .shop-tools > a:focus-visible,
.bookstore .shelf-nav a:focus-visible,
.bookstore .category-menu > summary:focus-visible {
  outline: 3px solid rgba(238, 101, 66, .28);
  outline-offset: 5px;
  border-radius: 7px;
}

.bookstore .category-row {
  overflow: visible;
}

.bookstore .category-menu > summary {
  min-height: 50px;
  border-radius: 8px;
  transition: color .2s, background-color .2s;
}

.bookstore .category-menu > summary:hover,
.bookstore .category-menu[open] > summary {
  color: var(--cs-coral);
  background: rgba(238, 101, 66, .08);
}

.bookstore .category-menu[open] .mega-menu {
  z-index: 30;
}

.bookstore .shelf-nav {
  overflow-x: auto;
  scrollbar-width: none;
}

.bookstore .shelf-nav::-webkit-scrollbar {
  display: none;
}

.bookstore .campaign-copy > * {
  opacity: 1;
  animation: none;
}

.bookstore .woocommerce-breadcrumb {
  color: #718092;
  font-size: 11px;
  line-height: 1.5;
}

.catalog-heading {
  max-width: 880px;
  margin: 12px 0 42px;
}

.catalog-heading h1 {
  max-width: 850px;
  margin: 14px 0 13px;
  font: 800 clamp(42px, 5.3vw, 72px)/.98 Manrope, sans-serif;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.catalog-heading p {
  max-width: 620px;
  color: var(--cs-copy);
  font-size: 17px;
  line-height: 1.7;
}

.catalog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #758394;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.catalog-breadcrumb a {
  color: var(--cs-blue);
}

.catalog-layout {
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 24px;
}

.filter-panel {
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 14px 40px rgba(16, 36, 62, .06);
}

.filter-panel > summary {
  padding: 20px 22px;
}

.filter-panel > form {
  padding: 0 22px 24px;
}

.filter-panel fieldset {
  border-color: rgba(16, 36, 62, .11);
}

.catalog-toolbar {
  min-height: 58px;
  margin-bottom: 26px;
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--cs-line);
  border-radius: 13px;
  background: #fff;
}

.catalog-toolbar > span {
  color: var(--cs-navy);
  font-weight: 800;
}

.catalog-toolbar select {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: var(--cs-mint);
  color: var(--cs-navy);
  font-weight: 700;
}

.catalog-results > .book-grid {
  gap: 44px 26px;
}

.book-card {
  min-width: 0;
}

.book-info h3 a {
  text-wrap: balance;
}

.bookstore .book-info h3 {
  color: var(--cs-navy);
  font-size: 18px;
  line-height: 1.42;
}

.bookstore .book-category {
  color: var(--cs-blue);
  font-weight: 800;
}

.bookstore .product-detail-grid {
  align-items: start;
  grid-template-columns: minmax(360px, .92fr) minmax(390px, 1.08fr);
  gap: clamp(48px, 6vw, 88px);
}

.bookstore .product-art {
  position: sticky;
  top: 24px;
  min-height: 570px;
  padding: 54px 64px 60px;
  overflow: hidden;
  isolation: isolate;
}

.bookstore .product-art::before,
.bookstore .product-art::after {
  position: absolute;
  z-index: -1;
  content: '';
  border-radius: 999px;
}

.bookstore .product-art::before {
  width: 300px;
  height: 300px;
  top: -170px;
  right: -90px;
  border: 50px solid rgba(255, 255, 255, .45);
}

.bookstore .product-art::after {
  width: 170px;
  height: 170px;
  left: -75px;
  bottom: -85px;
  background: rgba(238, 101, 66, .18);
}

.bookstore .product-art img {
  width: min(310px, 78%);
  max-height: 445px;
  object-fit: contain;
  box-shadow: 22px 30px 50px rgba(16, 36, 62, .23);
}

.product-art__label,
.product-art__note {
  position: absolute;
  z-index: 2;
  font-family: Manrope, sans-serif;
}

.product-art__label {
  top: 24px;
  left: 26px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--cs-navy);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.product-art__note {
  right: 24px;
  bottom: 22px;
  max-width: 190px;
  color: #53697b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

.bookstore .product-summary {
  padding-top: 16px;
}

.bookstore .product-summary .product_title {
  margin: 18px 0 24px;
  color: var(--cs-navy);
  font: 800 clamp(40px, 4.3vw, 62px)/1.02 Manrope, sans-serif;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.bookstore .product-summary .woocommerce-product-details__short-description {
  max-width: 650px;
}

.bookstore .product-summary .woocommerce-product-details__short-description p {
  color: var(--cs-copy);
  font-size: 16px;
  line-height: 1.78;
}

.bookstore .product-summary .price {
  margin: 27px 0 17px;
  font-size: clamp(31px, 3vw, 40px);
  letter-spacing: -.045em;
}

.bookstore .product-summary .cart {
  margin: 18px 0 20px;
}

.bookstore .product-summary .single_add_to_cart_button {
  min-width: 245px;
  justify-content: center;
}

.product-payments {
  margin-top: 22px;
  padding: 16px 18px 15px;
  border: 1px solid #dce5e7;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff 0%, #f6f9f8 100%);
  box-shadow: 0 12px 30px rgba(16, 36, 62, .055);
}

.product-payments__label {
  display: block;
  margin-bottom: 13px;
  color: var(--cs-navy);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: -.015em;
}

.product-payment-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.payment-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  padding: 0 15px;
  border-right: 1px solid #dce4e6;
  overflow: hidden;
}

.payment-mark img {
  display: block;
  width: auto;
  height: 23px;
  object-fit: contain;
}

.payment-mark:first-child {
  padding-left: 0;
}

.payment-mark:last-child {
  padding-right: 0;
  border-right: 0;
}

.payment-mark--apple img {
  width: 54px;
  height: 54px;
}

.payment-mark--google img {
  width: 64px;
  height: 64px;
}

.payment-mark--blik img {
  width: 66px;
  height: 31px;
}

.payment-mark--visa img {
  width: 58px;
  height: 58px;
}

.payment-mark--mastercard img {
  width: 54px;
  height: 38px;
}

.bookstore .product-summary .download-note {
  max-width: 500px;
  margin-top: 13px;
  color: #748293;
  font-size: 11px;
  line-height: 1.6;
}

.bookstore .product-tabs {
  margin-top: 72px;
}

.bookstore .product-tab-panel {
  background: #fff;
}

.bookstore .product-details,
.bookstore .product-tab-heading,
.bookstore .product-questions {
  max-width: 1060px;
  margin-inline: auto;
}

.bookstore .product-details p,
.bookstore .product-details li,
.bookstore .product-tab-heading p,
.bookstore .product-questions p {
  color: #42566b;
}

.bookstore .product-details > p:first-of-type {
  font-size: 18px;
  line-height: 1.82;
}

.page-shell {
  padding-bottom: clamp(70px, 9vw, 125px);
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--cs-line);
  background: linear-gradient(120deg, #e6f1ef 0%, #fbf7e9 62%, #f9ddcc 100%);
}

.page-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: 50px;
  min-height: 405px;
  padding-block: 64px;
}

.page-breadcrumb {
  display: inline-flex;
  margin-bottom: 36px;
  color: #65788b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-breadcrumb::after {
  width: 32px;
  height: 1px;
  margin: 7px 0 0 10px;
  background: rgba(16, 36, 62, .26);
  content: '';
}

.page-hero h1 {
  max-width: 820px;
  margin: 14px 0 20px;
  color: var(--cs-navy);
  font: 800 clamp(48px, 6.6vw, 86px)/.94 Manrope, sans-serif;
  letter-spacing: -.075em;
  text-wrap: balance;
}

.page-hero p {
  max-width: 630px;
  color: #516477;
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.7;
}

.page-hero__art {
  position: relative;
  display: grid;
  place-content: center;
  width: 280px;
  height: 280px;
  justify-self: end;
  border-radius: 50%;
  background: var(--cs-navy);
  box-shadow: 28px 28px 0 rgba(238, 101, 66, .2);
  color: #fff;
  font: italic 600 52px/.78 Literary, Georgia, serif;
  text-align: center;
  transform: rotate(-6deg);
}

.page-hero__art strong {
  color: #f5c16c;
  font-weight: 700;
}

.page-hero__art i {
  position: absolute;
  width: 90px;
  height: 90px;
  right: -28px;
  top: -18px;
  border: 2px solid var(--cs-coral);
  border-radius: 50%;
}

.page-content-wrap {
  position: relative;
  z-index: 2;
  margin-top: -34px;
}

.page-content {
  min-height: 0;
  padding: clamp(36px, 5.6vw, 76px);
  border: 1px solid rgba(16, 36, 62, .09);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(16, 36, 62, .09);
}

.page-content > :first-child {
  margin-top: 0;
}

.page-content > :last-child {
  margin-bottom: 0;
}

.page-content h2 {
  margin: 52px 0 18px;
  color: var(--cs-navy);
  font: 800 clamp(27px, 3vw, 42px)/1.08 Manrope, sans-serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.page-content h3 {
  margin: 34px 0 14px;
  color: var(--cs-navy);
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -.025em;
}

.page-content p,
.page-content li {
  max-width: 880px;
  color: #42566b;
  font-size: 15px;
  line-height: 1.86;
}

.page-content ul,
.page-content ol {
  max-width: 880px;
  margin: 18px 0 28px;
  padding-left: 24px;
}

.page-content a:not(.button) {
  color: var(--cs-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.page-shell--prywatnosc .page-content,
.page-shell--regulamin .page-content {
  max-width: 1040px;
  margin-inline: auto;
}

.page-shell--prywatnosc .page-hero__art,
.page-shell--regulamin .page-hero__art {
  background: var(--cs-blue);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 20px;
}

.contact-card {
  min-height: 330px;
  padding: clamp(30px, 4vw, 52px);
  border-radius: 21px;
  background: var(--cs-mint);
}

.contact-card--primary {
  background: var(--cs-navy);
  color: #fff;
}

.contact-card__label {
  display: block;
  margin-bottom: 24px;
  color: var(--cs-coral);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contact-card h2 {
  margin: 0 0 18px;
  font-size: clamp(29px, 3vw, 43px);
}

.contact-card--primary h2,
.contact-card--primary p {
  color: #fff;
}

.contact-card p {
  margin-bottom: 22px;
}

.contact-mail,
.contact-phone {
  display: block;
  width: fit-content;
  margin-top: 10px;
  color: #f6c16d !important;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -.025em;
  text-decoration: none !important;
}

.contact-card small {
  display: block;
  margin-top: 32px;
  color: #aebdca;
  font-size: 11px;
}

.store-status-note {
  max-width: none !important;
  margin: 20px 0 0 !important;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff0e8;
  color: #74432f !important;
  font-size: 12px !important;
  font-weight: 700;
}

.page-library-content > .cs-library {
  padding-top: clamp(64px, 8vw, 112px);
}

.page-library-content .cs-library h1 {
  color: var(--cs-navy);
  font-family: Manrope, sans-serif;
  font-weight: 800;
  letter-spacing: -.07em;
}

.page-library-content .cs-library__card {
  border-color: var(--cs-line);
}

.page-library-content .cs-library__card h2 {
  color: var(--cs-navy);
  font-family: Manrope, sans-serif;
  font-weight: 800;
  letter-spacing: -.035em;
}

.commerce-page {
  padding-block: clamp(48px, 6vw, 86px) clamp(72px, 9vw, 124px);
}

.commerce-page--moje-konto {
  padding-top: clamp(34px, 5vw, 68px);
}

.commerce-page--zamowienie {
  padding-top: clamp(34px, 5vw, 62px);
}

.empty-cart-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 55px;
  min-height: 470px;
  padding: clamp(44px, 7vw, 84px);
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(125deg, #e4f0ef 0%, #fbf6e6 70%);
}

.empty-cart-copy {
  position: relative;
  z-index: 2;
}

.empty-cart-copy > svg {
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  color: var(--cs-coral);
}

.empty-cart-copy h1 {
  max-width: 650px;
  margin: 0 0 20px;
  color: var(--cs-navy);
  font: 800 clamp(42px, 5vw, 72px)/.98 Manrope, sans-serif;
  letter-spacing: -.07em;
  text-wrap: balance;
}

.empty-cart-copy p {
  max-width: 540px;
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.75;
}

.empty-cart-art {
  position: relative;
  display: grid;
  place-content: center;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: var(--cs-navy);
  color: #fff;
  box-shadow: 30px 30px 0 rgba(238, 101, 66, .2);
}

.empty-cart-art svg {
  width: 82px;
  height: 82px;
  color: #f7c169;
}

.empty-cart-art::before,
.empty-cart-art::after {
  position: absolute;
  content: '';
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
}

.empty-cart-art::before {
  inset: 28px;
}

.empty-cart-art::after {
  width: 92px;
  height: 92px;
  top: -18px;
  right: -18px;
  border-color: var(--cs-coral);
}

.bookstore .woocommerce-notices-wrapper + .empty-cart-shell {
  margin-top: 0;
}

.bookstore .woocommerce-message,
.bookstore .woocommerce-info,
.bookstore .woocommerce-error {
  border: 1px solid rgba(36, 118, 132, .15);
  border-left: 4px solid var(--cs-blue);
  border-radius: 12px;
  background: #eef5f4;
  color: var(--cs-navy);
  line-height: 1.55;
  box-shadow: 0 8px 24px rgba(16, 36, 62, .05);
}

.bookstore .woocommerce-error {
  border-color: rgba(238, 101, 66, .18);
  border-left-color: var(--cs-coral);
  background: #fff1ea;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .48s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .bookstore .product-detail-grid {
    grid-template-columns: minmax(300px, .88fr) minmax(360px, 1.12fr);
    gap: 38px;
  }

  .bookstore .product-art {
    min-height: 510px;
    padding-inline: 42px;
  }

  .page-hero__inner {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .page-hero__art {
    width: 210px;
    height: 210px;
    font-size: 40px;
  }

  .empty-cart-shell {
    grid-template-columns: 1fr 250px;
  }

  .empty-cart-art {
    width: 230px;
    height: 230px;
  }
}

@media (max-width: 760px) {
  .bookstore .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .bookstore .product-art {
    position: relative;
    top: auto;
    min-height: 480px;
  }

  .bookstore .product-summary {
    padding-top: 0;
  }

  .page-hero__inner {
    grid-template-columns: 1fr;
    min-height: 360px;
    padding-block: 50px 74px;
  }

  .page-hero__art {
    position: absolute;
    width: 180px;
    height: 180px;
    right: -76px;
    bottom: -74px;
    opacity: .22;
  }

  .page-hero__inner > div:first-child {
    position: relative;
    z-index: 2;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: 0;
  }

  .empty-cart-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .empty-cart-art {
    position: absolute;
    width: 230px;
    height: 230px;
    right: -90px;
    bottom: -95px;
    opacity: .16;
  }
}

@media (max-width: 580px) {
  .bookstore main {
    min-height: 48vh;
  }

  .bookstore .utility-bar nav {
    gap: 15px;
  }

  .bookstore .utility-bar nav a {
    font-size: 8px;
  }

  .bookstore .product-art {
    min-height: 410px;
    padding: 47px 34px 52px;
  }

  .bookstore .product-art img {
    width: min(245px, 78%);
    max-height: 325px;
  }

  .product-art__label {
    top: 18px;
    left: 18px;
  }

  .product-art__note {
    right: 17px;
    bottom: 16px;
    max-width: 145px;
    font-size: 8px;
  }

  .bookstore .product-summary .product_title {
    font-size: 35px;
    line-height: 1.04;
  }

  .bookstore .product-summary .woocommerce-product-details__short-description p {
    font-size: 14px;
  }

  .bookstore .product-summary .cart,
  .bookstore .product-summary .single_add_to_cart_button {
    width: 100%;
  }

  .product-payment-marks {
    display: flex;
    justify-content: space-between;
  }

  .payment-mark {
    min-width: 0;
    padding: 0 8px;
  }

  .bookstore .product-tabs {
    margin-top: 48px;
    border-radius: 18px;
  }

  .bookstore .product-tab-list {
    gap: 4px;
    padding: 6px;
  }

  .bookstore .product-tab-list button {
    min-height: 52px;
    padding-inline: 8px;
    font-size: 10px;
  }

  .bookstore .product-details > p:first-of-type {
    font-size: 15px;
  }

  .catalog-heading {
    margin-top: 0;
    margin-bottom: 26px;
  }

  .catalog-heading h1 {
    font-size: 37px;
  }

  .catalog-heading p {
    font-size: 13px;
  }

  .catalog-sidebar {
    position: static;
  }

  .catalog-toolbar {
    min-height: 54px;
    margin-bottom: 22px;
    padding-left: 14px;
  }

  .catalog-results > .book-grid {
    gap: 30px 14px;
  }

  .page-hero__inner {
    min-height: 315px;
    padding-block: 37px 63px;
  }

  .page-breadcrumb {
    margin-bottom: 28px;
    font-size: 8px;
  }

  .page-hero h1 {
    font-size: 43px;
  }

  .page-hero p {
    max-width: 86%;
    font-size: 13px;
  }

  .page-content-wrap {
    width: calc(100% - 24px);
    margin-top: -27px;
  }

  .page-content {
    padding: 28px 23px;
    border-radius: 19px;
  }

  .page-content h2 {
    margin-top: 38px;
    font-size: 27px;
  }

  .page-content h3 {
    margin-top: 27px;
    font-size: 18px;
  }

  .page-content p,
  .page-content li {
    font-size: 13px;
    line-height: 1.78;
  }

  .contact-card {
    padding: 27px 23px;
    border-radius: 16px;
  }

  .contact-card h2 {
    font-size: 28px;
  }

  .contact-mail,
  .contact-phone {
    overflow-wrap: anywhere;
    font-size: 17px;
  }

  .page-library-content > .cs-library {
    padding-inline: 16px;
  }

  .empty-cart-shell {
    padding: 40px 25px;
    border-radius: 19px;
  }

  .empty-cart-copy h1 {
    font-size: 39px;
  }

  .empty-cart-copy p {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bookstore *,
  .bookstore *::before,
  .bookstore *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .motion-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
