:root {
  --menu-height: 100px;
  --shelfs-offset: 5.4%;
  --issues-per-shelf: 4;
  --issues-gap: 4%;
  --shelf-height: 450px;

  --shelf-text-color: rgba(0, 0, 0, .7);
  --shelf-info-background: #fff;
  --shelf-info-border: #d4d4d4;
  --shelf-shadow-color:#000000;

  --button-text-color: #000;
  --button-background-color: transparent;
  --button-border-color: #000;

  --footer-shelf-height: 170px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 8px 8px rgba(200, 200, 200, 0.5);
  border: solid 2px transparent;
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
  box-shadow: inset 0 0 8px 8px transparent;
  border: solid 2px transparent;
  border-radius: 3px;
}

.preloaders__wrapper {
  position: fixed;
  top: -100px;
  left: -100px;
  width: 10px;
  height: 10px;
  opacity: 0;
}

.header {
  height: var(--menu-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
  margin: 0 auto;
  position: relative;
  max-width: 1600px;
  width: 100%;
}

.header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: calc(100% - var(--shelfs-offset) * 2);
}

.header__column {
  display: flex;
  align-items: center;
  gap: 0 20px;
}

.header__column--info {
  width: calc(35% - 20px);
  transition: .15s opacity ease, .15s visibility ease;
}

.header__column--info.hidden {
  opacity: 0;
  visibility: hidden;
}


.header__column--links {
  width: calc(65% - 20px);
  gap: 20px;
  justify-content: flex-end;
}

.header__logo {
  max-width: 160px;
  max-height: 60px;
  width: auto;
}

.header__logo__placeholder {
  font-size: 0.9rem;
  color: #000000;
  font-weight: 500;
  line-height: 1.5;
  min-width: 115px;
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
  text-transform: uppercase;
  height: 60px;
  line-height: 38px;
}

.text--navigation {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--nav-text-color);
  line-height: 1.5;
  text-wrap: nowrap;
}

.text--new-line {
  display: block;
}

.header__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  transition: .15s opacity ease, .15s visibility ease;
}

.header__title.hidden {
  opacity: 0;
  visibility: hidden;
}

.header__search {
  width: 380px;
  height: 38px;
  border: 1px solid #fff;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: .15s border-color ease;
  position: relative;
  /* left: 50%; */
  /* transform: translateX(-50%); */
  z-index: 5;
  margin-right: auto;
}

/* 
.header__search:hover {
  border-color: #000000a7;
}

.header__search:hover .icon svg path {
  fill: #000;
} */

.header__search .icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  position: absolute;
  pointer-events: none;
  left: 10px;
  z-index: 3;
}

.header__search .icon.icon--close {
  left: auto;
  right: 10px;
  padding: 4px;
  cursor: pointer;
  z-index: 2;
  pointer-events: all;
  display: none;
}

.header__search .icon.icon--close svg path {
  stroke-width: 1;
  fill: #979797;
  stroke: #979797;
}

.header__search .icon.icon--close svg {
  pointer-events: none;
}

.header__search .icon svg path {
  transition: .15s fill ease;
  fill: var(--nav-text-color);
  stroke: var(--nav-text-color);
  stroke-width: .3;
}

.header__search input {
  width: 100%;
  border: none;
  padding: 5px 30px 5px 40px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--nav-text-color);
  line-height: 1.5;
  transition: .15s color ease;
  border-radius: 30px;
  z-index: 2;
  transition: .15s opacity ease;
  background-color: #f2f2f2;
}

.header__search input::placeholder {
  color: #a0a0a0;
  opacity: 0.6;
  transition: .15s color ease;
}

/* .header__search:hover input::placeholder {
  color: var(--shelf-text-color);
} */


.header__search:has(> input:focus) {
  border-color: var(--nav-text-color);;
}

/* .header__search:has(> input:focus) input {
  color: #000;
}

.header__search:has(> input:focus) svg path {
  fill: #000;
} */

.header__button {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: .15s background ease;
  border-radius: 18px;
  background-color: transparent;
  padding: 6px 12px;
}

.header__button--share {
  margin-left: auto;
}

a.header__button--website:hover {
  color: var(--nav-text-color);
}
 
.header__button--share svg * {
  stroke: var(--nav-text-color);
}

.header__button--website svg * {
  stroke: var(--nav-text-color);
}

.header__button:hover {
  background-color: var(--nav-background-color);
}

.icon:is(.icon--website, .icon--share, .icon--search) svg {
  width: 20px;
  height: 20px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  position: absolute;
  bottom: 50px;
  width: calc(100% - var(--shelfs-offset) * 2);
  padding: 0 50px;
  background-repeat: no-repeat;
  background-size: cover;
  left: var(--shelfs-offset);
}

.footer__info {
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer__text {
  display: inline-block;
}

.footer__logo {
  display: block;
  width: 140px;
}

.footer__logo svg {
  width: 140px;
}

.footer__logo svg * {
  fill: rgba(0, 0, 0, .2);
}

.footer__text {
  font-size: 14px;
  line-height: 20px;
  color: rgba(0, 0, 0, .2);
}

.footer__link {
  position: relative;
  transition: .15s color ease;
}

.footer__link:not(:last-of-type)::before {
  content: '';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  height: 15px;
  width: 1px;
  background-color: rgba(0, 0, 0, .2);
}

.footer__link:hover {
  color: rgba(0, 0, 0, .5);
}

@media screen and (max-width: 1400px) {
  .header__wrapper {
    /* width: 100%; */
  }

  .header__search input:not(:focus):hover {
    cursor: pointer;
  }

  .header__button span {
    display: none;
  }

  .header__button {
    padding: 8px;
    border-radius: 50%;
  }

  .header__column--links {
    gap: 10px;
    justify-content: flex-end;
    width: 350px;
  }

  .header__button--share {
    margin-left: 0;
  }

  .header__column--info {
    gap: 30px;
    width: 100%;
  }

  .header__title {
    /* max-width: 80%; */
  }

  .header__logo {
    max-width: 150px;
  }

  .header__search {
    position: relative;
    transform: none;
    left: auto;
    transition: .25s width ease;
    max-width: 200px;
    width: 30px;
    height: 30px;
    margin-right: 0;
  }

  .header__search input {
    opacity: 0;
  }

  .header__search.active {
    width: 100%;
  }

  .header__search.active input {
    opacity: 1;
  }

  .header__search input {
    padding: 5px 10px 5px 24px;
    font-size: 0.8rem;
    line-height: 1.2;
    transition: .15s padding ease;
  }

  .header__search.active input {
    padding: 5px 25px 5px 35px;
    display: block;
  }

  .header__search:not(.active) .icon.icon--close {
    visibility: hidden;
  }
 
  .header__search.active .icon.icon--close {
    visibility: visible;
  }

  .header__search .icon.icon--close {
    width: 19px;
    height: 19px;
    min-width: 19px;
    right: 5px;
    padding: 0;
  }

  .header__search .icon.icon--close svg {
    padding: 2px;
    width: 100%;
  }

  /* .icon:not(.modal__header__icon):not(.shelf__issue__info__icon),*/
  .header__search.active .icon.icon--search {
    width: 19px;
    height: 19px;
    min-width: 19px;
  }
}

@media screen and (max-width: 1200px) {
  .shelf__hero__info__icon {
    top: -5px;
  }

  .shelf__content {
    bottom: 60%;
  }

  .shelf__issues {
    padding: 0 20px;
  }

  /* .shelf__wrapper[data-shelf-id="footer"] {
    height: 100px;
  } */

  .shelf__hero__info__wrapper {
    /* max-width: 50%; */
  }

  .shelf__hero__wrapper {
    /* padding: 0 7% 0 0; */
  }

  .shelf__hero__info {
    /* padding: 50px 100px; */
  }

  .shelf__hero__info__title {
    font-size: 1.75rem;
    line-height: 2.25rem;
  }

  .shelf__hero__info__description {
    font-size: 1rem;
  }

  .shelf__hero__info__header {
    font-size: 2.35rem;
    line-height: 3.75rem;
  }

  .text--new-line {
    display: inline;
  }
}

@media screen and (max-width: 991px) {
  .header__logo {
    max-width: 100px;
  }

  .shelf__issue__info {
    /* padding: 20px 25px 45px 25px; */
  }

  /* .shelf__issue__info__icon.icon--bookmark {
    left: -18px;
  } */

  .header__column--info {
    gap: 10px;
    width: calc(100% - 250px);
  }

  .header__column--links {
    width: 200px;
  }

  .header__title {
    text-align: left;
    /* max-width: 90%; */
    margin-left: 0;
    /* font-size: 0.9rem; */
  }

  .header__button {
    padding: 8px;
  }

  /* .shelf__issue__info__share {
    right: -8%;
  } */

  .icon.modal__close,
  .icon.modal__close svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }

  .header__search input {
    font-size: 0.8rem;
  }

  .shelf__issues {
    padding: 0;
  }

  /* .shelf__wrapper[data-shelf-id="footer"] {
    height: 50px;
  } */

  .content__wrapper {
    margin-bottom: 50px;
  }

  /* body.template--theme .shelf__hero__info {
    padding: 50px;
  } */

  body.template--theme .shelf__hero__wrapper {
    padding: 0 0px 0 0;
  }

  /* body.template--theme .shelf__hero__wrapper {
    padding: 0 30px 0 0;
  } */

  body.template--default .shelf__hero__info__description {
    -webkit-line-clamp: 2;
  }

  .shelf__hero__image__wrapper,
  .shelf__hero__wrapper--landscape .shelf__hero__image__wrapper {
    max-width: 48%;
  }

  .shelf__hero__info__description {
    font-size: 0.9rem;
    line-height: 1.3rem;
  }

  .shelf__hero__info__icon {
    left: -40px;
  }

  .shelf__hero__info__icon,
  .shelf__hero__info__icon svg {
    width: 25px;
    height: 50px;
  }

  .shelf__hero__info__footer {
    margin-top: 10px;
  }

  .shelf__hero__info__header {
    font-size: 2.35rem;
    line-height: 3.75rem;
  }

  .shelf__hero__wrapper {
    gap: 10px;
  }

  .shelf__hero__info {
    padding-left: 30px;
  }

  .shelf__hero__info__description {
    margin-bottom: 0;
  }

  .shelf__hero__image__wrapper svg {
    height: auto;
  }
}

@media screen and (max-width: 768px) {
  body.template--theme-3 .shelf__background {
    background-image: url('https://d1u9ua4yk0lyeu.cloudfront.net/cms/bookshelf/templates/new/3/bg_768.jpg') !important;
  }

  body.template--theme-3 .shelf__issue__info,
  body.template--theme-3 .shelf__hero__info {
    filter: none !important;
    box-shadow: 3px 3px 10px 3px rgba(0, 0, 0, 1);
  }

  .shelf__neon,
  .shelf__neon::before {
    filter: none !important;
  }

  .shelf__search__empty {
    height: 250px;
  }

  .shelf__neon {
    width: 90%;
  }

  .header__title {
    /* overflow: hidden; */
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 2; */
    /* -webkit-box-orient: vertical; */
    /* white-space: normal; */
    line-height: 1.3;
  }

  .shelf__hero__info__btn .icon,
  .shelf__hero__info__btn .icon svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
  }

  .header__search {
    position: absolute;
    right: 100px;
  }

  .header__search.active {
    border: 1px solid #000;
  }

  /* .header__search::before {
    content: '';
    position: absolute;
    height: 100px;
    width: 100vw;
    right: 0;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: .1s opacity ease, .1s visibility ease;
    z-index: 0;
  }

  .header__search:has(> input:focus)::before {
    opacity: 1;
    visibility: visible;
  } */

  .header__column--info {
    width: 70%;
  }

  .header__column--links {
    width: 30%;
  }

  .shelf__hero__info {
    padding: 20px 40px;
  }

  .shelf__hero__wrapper:not(.shelf__hero__wrapper--landscape) .shelf__hero__image__wrapper {
    max-width: 200px;
  }

  .shelf__hero__wrapper.shelf__hero__wrapper--landscape .shelf__hero__image__wrapper {
    max-width: 48%;
  }

  .shelf__hero__wrapper,
  .shelf__hero__wrapper.shelf__hero__wrapper--landscape {
    padding: 0;
    width: 100%;
  }

  .shelf__hero__info__title {
    font-size: 1.75rem;
    line-height: 2.35rem;
  }

  .shelf__hero__info__icon,
  .shelf__hero__info__icon svg {
    width: 20px;
    height: 40px;
  }

  .shelf__hero__info__icon {
    left: -30px;
    top: -2px;
  }

  .shelf__hero__info__description {
    font-size: 0.75rem;
    line-height: 1rem;
  }

  .shelf__hero__info__footer {
    margin-top: 30px;
    gap: 15px;
  }

  .shelf__hero__info__btn {
    font-size: 0.75rem;
    padding: 6px 15px;
    gap: 8px;
  }

  .shelf__hero__wrapper {
    padding: 0 5%;
  }

  .shelf__issue__info {
    padding: 12px 0 30px 0;
  }

  /* .shelf__issue__info__icon.icon--bookmark {
    left: -17px;
    transform: none;
    top: 25%;
  } */

  .shelf__issue__info__description {
    /* font-size: 0.6rem; */
  }

  .shelf__issue__info__title {
    /* font-size: 0.7rem; */
    max-width: 90%;
  }

  .shelf__shadow {
    -webkit-box-shadow: 0px 2px 26px 10px rgba(66, 68, 90, 1);
    -moz-box-shadow: 0px 2px 26px 10px rgba(66, 68, 90, 1);
    box-shadow: 0px 2px 26px 10px rgba(66, 68, 90, 1);
  }

  .shelf__image--default,
  .shelf__image--template {
    width: 115%;
  }

  body {
    --shelfs-offset: 0%;
  }

  .main__wrapper {
    padding: 0;
  }

  .header {
    padding: 15px;
  }

  .shelf__issue__info__title {
    max-width: 80%;
  }
}

@media screen and (max-width: 600px) {
  .shelf__shadow {
    height: 0px;
  }

  .shelf__hero__info {
    bottom: 110%;
  }

  .shelf__hero__info__wrapper,
  .shelf__hero__wrapper--landscape .shelf__hero__info__wrapper {
    width: 100%;
    max-width: 100%;
  }

  .shelf__hero__image__wrapper,
  .shelf__hero__wrapper--landscape .shelf__hero__image__wrapper {
    max-width: 60%;
  }

  .shelf__hero__info__footer {
    justify-content: center;
  }

  .shelf__hero__info {
    padding: 10px 20px;
  }

  .shelf__hero__info__header,
  .shelf__hero__info__description {
    padding-left: 40px;
  }

  .shelf__hero__info__icon {
    left: 0;
  }

  .shelf__hero__info__description {
    margin: 10px 0;
  }

  .shelf__hero__info__footer {
    margin-top: 20px;
  }

  .shelf__hero__image__wrapper {
    margin: 0 auto;
  }

  .modal__socials {
    gap: 10px;
    width: 100%;
    justify-content: center;
  }

  .modal__social__link {
    width: 40px;
    height: 40px;
  }

  .modal__qrcode__wrapper {
    display: none;
  }

  .modal__footer__link {
    height: 36px;
  }

  .modal__footer__link span {
    font-size: 0.6rem;
    line-height: 36px;
  }

  .modal__footer__button {
    height: 36px;
  }

  .modal__footer__label {
    font-size: 0.7rem;
  }

  .modal__header__icon {
    left: 15px;
  }

  .modal__title {
    font-size: 1.2rem;
  }

  .shelf__image--default,
  .shelf__image--template {
    width: 150%;
  }
}

@media screen and (max-width: 480px) {

  .shelf__image--default,
  .shelf__image--template {
    width: 200%;
  }

  .shelf__search__empty {
    height: 200px;
  }

  .shelf__search__empty__text {
    font-size: 1.4rem;
  }

  .header__column--info {
    width: 60%;
  }

  .header__column--links {
    width: 30%;
    gap: 5px;
  }

  .icon.modal__header__icon,
  .icon.modal__header__icon svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
  }

  .shelf__hero__info__title {
    font-size: 1.35rem;
    line-height: 1.85rem;
  }

  .shelf__hero__info__icon,
  .shelf__hero__info__icon svg {
    width: 15px;
    height: 30px;
  }

  .shelf__hero__info__icon {
    top: 0;
  }

  .shelf__hero__info__header,
  .shelf__hero__info__description {
    padding-left: 25px;
  }

  .shelf__hero__info__description {
    margin: 0;
  }


  .shelf__issues {
    justify-content: center;
  }

  .shelf__hero__wrapper {
    padding: 0;
  }

  .shelf__hero__wrapper {
    width: 100%;
  }

  .modal__container {
    padding: 25px 0;
  }

  .modal__header,
  .modal__body {
    padding: 0 40px;
  }

  .modal__footer {
    padding: 0 20px;
  }

  /* .shelf__image--default {
    height: 20px;
    display: flex;
    align-items: center;
  }

  .shelf__image--default svg {
    height: 20px;
  } */

  .header__search .icon.icon--close svg {
    padding: 4px;
    width: 100%;
  }
}
