/* Pravda Books — Pass G storefront UX */

:root {
  --mobile-dock-height: 56px;
  --pdp-sticky-height: 56px;
  --search-burgundy: #A40F3D;
  --search-border: #DDD7CD;
  --search-cream: #FBF7EE;
  --search-placeholder: #6B6761;
}

/* --- Global header search --- */
.header--global-search {
  overflow: visible;
  --header-search-mobile-row: 52px;
  --header-nav-row: 0px;
  --header-main-row: 56px;
}
@media (min-width: 768px) {
  .header--global-search {
    --header-main-row: 64px;
  }
}
@media (min-width: 1024px) {
  .header--global-search {
    --header-search-mobile-row: 0px;
    --header-nav-row: 48px;
  }
}
.header--global-search {
  --header-height: calc(var(--header-main-row) + var(--header-nav-row) + var(--header-search-mobile-row));
}
@media (max-width: 1023px) {
  .header.header--global-search {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }
  body {
    padding-top: var(--site-header-offset, var(--header-height));
  }
  .home-discovery__sticky-wrap {
    top: var(--site-header-offset, var(--header-height));
  }
}
.header--global-search.header--scrolled {
  --header-main-row: 52px;
  --header-nav-row: 44px;
}
@media (min-width: 768px) {
  .header--global-search.header--scrolled {
    --header-main-row: 58px;
  }
}
.header--global-search .header__shell {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0 0;
}
.header--global-search .header__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "menu logo actions"
    "search search search";
  align-items: center;
  gap: 0.5rem 0.625rem;
  min-height: var(--header-main-row);
}
@media (min-width: 1024px) {
  .header--global-search .header__top {
    grid-template-columns: auto minmax(160px, 210px) minmax(0, 1fr) auto;
    grid-template-areas: "menu logo search actions";
    gap: 0.625rem 1rem;
  }
}
.header--global-search .header__menu-toggle { grid-area: menu; }
.header--global-search .header__logo {
  grid-area: logo;
  justify-self: start;
}
.header--global-search .header__actions {
  grid-area: actions;
  justify-self: end;
}
.header--global-search .header__search-slot {
  grid-area: search;
  min-width: 0;
}
.header--global-search .header__nav-row {
  display: none;
  align-items: center;
  min-height: var(--header-nav-row);
  border-top: 1px solid rgba(32, 31, 28, 0.08);
  padding: 0.125rem 0 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.header--global-search .header__nav-row::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .header--global-search .header__nav-row {
    display: grid;
    grid-template-columns: auto minmax(160px, 210px) minmax(0, 1fr) auto;
    gap: 0 1rem;
    align-items: center;
    overflow-x: visible;
  }
  .header--global-search .header__nav-row .nav__list {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-self: start;
    flex-wrap: nowrap;
    gap: clamp(1.5rem, 2.2vw, 2.25rem);
  }
  .header--global-search .header__nav-row .nav__link {
    padding: 0.45rem 0;
    font-size: 0.875rem;
    white-space: nowrap;
  }
  .header--global-search .header__nav-row .nav__link--active::after {
    left: 0;
    right: 0;
  }
}
.header__icon-btn--search-shortcut { display: flex; }
@media (min-width: 768px) {
  .header__icon-btn--search-shortcut { display: none; }
}

.header-search {
  position: relative;
  z-index: 6;
  width: 100%;
}
.header-search__group {
  display: flex;
  align-items: stretch;
  min-height: 48px;
  background: #FFFDFC;
  border: 1px solid var(--search-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(32, 31, 28, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 768px) {
  .header-search__group {
    min-height: 50px;
    border-radius: 13px;
  }
}
.header-search__group:focus-within {
  border-color: rgba(45, 106, 79, 0.45);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}
.header-search__category-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--search-border);
  background: #F8F6F1;
}
.header-search__category {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--pravda-charcoal);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0 1.75rem 0 0.75rem;
  max-width: 9.5rem;
  min-height: 48px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6761' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}
@media (max-width: 479px) {
  .header-search__category-wrap { display: none; }
}
.header-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--pravda-charcoal);
  outline: none;
}
.header-search__input::placeholder {
  color: var(--search-placeholder);
}
.header-search__submit {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  min-width: 50px;
  border: 0;
  background: var(--search-burgundy);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.header-search__submit:hover {
  background: #8E0D36;
}
.header-search__submit svg {
  width: 20px;
  height: 20px;
}
.header-search__dropdown {
  max-height: min(26rem, 58vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
  .header-search__dropdown {
    max-height: 440px;
  }
}
.header-search__recent {
  margin-top: 0.5rem;
}

@media (max-width: 1023px) {
  body:not(.page-txn) {
    padding-bottom: calc(var(--mobile-dock-height) + env(safe-area-inset-bottom, 0px));
  }

  body.book-detail-page.has-pdp-sticky:not(.page-txn) {
    padding-bottom: calc(var(--mobile-dock-height) + var(--pdp-sticky-height) + env(safe-area-inset-bottom, 0px));
  }
}

.mobile-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
  align-items: stretch;
  justify-content: space-around;
  min-height: var(--mobile-dock-height);
  padding: 0.25rem 0 calc(0.25rem + env(safe-area-inset-bottom, 0px));
  background: var(--color-paper, #FDFBF8);
  border-top: 1px solid rgba(32, 31, 28, 0.08);
  box-shadow: 0 -4px 16px rgba(32, 31, 28, 0.06);
}

@media (max-width: 1023px) {
  body:not(.page-txn) .mobile-dock {
    display: flex;
  }

  body:not(.page-txn) .whatsapp-float {
    bottom: calc(var(--mobile-dock-height) + 0.625rem + env(safe-area-inset-bottom, 0px));
  }
}

.mobile-dock__link,
.mobile-dock__button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 0.25rem;
  border: 0;
  background: transparent;
  color: rgba(32, 31, 28, 0.62);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.mobile-dock__link svg,
.mobile-dock__button svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

.mobile-dock__link--active,
.mobile-dock__button.mobile-dock__link--active {
  color: var(--color-burgundy, #941238);
}

.mobile-dock__badge {
  position: absolute;
  top: 0.2rem;
  right: calc(50% - 1.1rem);
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--color-burgundy, #941238);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
}

.mobile-dock__icon-wrap {
  position: relative;
  display: inline-flex;
}

.store-search__recent-item {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.store-search__recent {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(32, 31, 28, 0.08);
}

.store-search__recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  color: rgba(32, 31, 28, 0.62);
}

.store-search__recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-recovery {
  padding: 0.75rem 0;
}

.search-recovery__title {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.search-recovery__text {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: rgba(32, 31, 28, 0.62);
}

.search-recovery__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-smart-module {
  padding: 1rem 0;
}

.home-smart-module[hidden] {
  display: none !important;
}

.home-smart-module__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--color-paper, #FDFBF8);
  border: 1px solid rgba(32, 31, 28, 0.08);
  border-radius: 10px;
}

.home-smart-module__title {
  margin: 0 0 0.15rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.home-smart-module__text {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(32, 31, 28, 0.62);
}

.home-recently-viewed__track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}

.home-recently-viewed__track .book-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
}

.pdp-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--mobile-dock-height) + env(safe-area-inset-bottom, 0px));
  z-index: 115;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--pdp-sticky-height);
  padding: 0.5rem 1rem;
  background: rgba(253, 251, 248, 0.96);
  border-top: 1px solid rgba(32, 31, 28, 0.08);
  box-shadow: 0 -4px 16px rgba(32, 31, 28, 0.08);
  transform: translateY(110%);
  transition: transform 0.2s ease;
}

@media (min-width: 1024px) {
  .pdp-sticky-bar {
    display: none !important;
  }
}

.pdp-sticky-bar--visible {
  transform: translateY(0);
}

.pdp-sticky-bar__info {
  flex: 1;
  min-width: 0;
}

.pdp-sticky-bar__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdp-sticky-bar__price {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(32, 31, 28, 0.72);
}

.pdp-sticky-bar__btn {
  flex-shrink: 0;
  min-height: 44px;
}

.book-detail__trust {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(32, 31, 28, 0.08);
}

.book-detail__trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: rgba(32, 31, 28, 0.72);
}

.book-detail__whatsapp-order {
  --pdp-wa-bg: #FBFAF7;
  --pdp-wa-border: #2D6A4F;
  --pdp-wa-border-hover: #245a42;
  --pdp-wa-icon: #168C54;
  --pdp-wa-text: #242321;
  --pdp-wa-hover-bg: #F4FAF6;
  margin-top: 0.85rem;
  display: flex;
  justify-content: center;
}

.book-detail__whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 0.8125rem;
  width: 72%;
  max-width: 21.5rem;
  min-height: 56px;
  padding: 0 1.25rem;
  margin: 0;
  border: 1px solid var(--pdp-wa-border);
  border-radius: 14px;
  background: var(--pdp-wa-bg);
  color: var(--pdp-wa-text);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(36, 35, 33, 0.04);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.book-detail__whatsapp-btn-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--pdp-wa-icon);
}

.book-detail__whatsapp-btn-icon svg {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
}

.book-detail__whatsapp-btn-label {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-detail__whatsapp-btn-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  color: var(--pdp-wa-text);
  opacity: 0.72;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.book-detail__whatsapp-btn-arrow svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}

.book-detail__whatsapp-btn:hover {
  background: var(--pdp-wa-hover-bg);
  border-color: var(--pdp-wa-border-hover);
}

.book-detail__whatsapp-btn:hover .book-detail__whatsapp-btn-arrow {
  transform: translateX(3px);
  opacity: 0.92;
}

.book-detail__whatsapp-btn:focus-visible {
  outline: 2px solid var(--pdp-wa-border);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .book-detail__whatsapp-btn {
    width: 100%;
    max-width: none;
    min-height: 54px;
    padding: 0 1.125rem;
    font-size: 0.875rem;
    gap: 0.75rem;
    border-radius: 13px;
  }

  .book-detail__whatsapp-btn-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .book-detail__whatsapp-btn-arrow svg {
    width: 1rem;
    height: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-detail__whatsapp-btn,
  .book-detail__whatsapp-btn-arrow {
    transition: none;
  }

  .book-detail__whatsapp-btn:hover .book-detail__whatsapp-btn-arrow {
    transform: none;
  }
}

.book-detail__share-btn[data-native-share][hidden] {
  display: none;
}

.book-detail__release-date {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: rgba(32, 31, 28, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .pdp-sticky-bar {
    transition: none;
  }
}

/* --- Book Finder (homepage + catalogue) --- */
.book-finder {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}
.book-finder--home {
  background-color: #F8F6F1;
  padding: calc(clamp(3rem, 4vw, 3.5rem) - 0.6875rem) 0 clamp(3rem, 4.5vw, 3.875rem);
}
.book-finder--home::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #F8F6F1;
  background-image: url('../images/vectors/book-finder-literary-bg.svg');
  background-repeat: no-repeat;
  background-position: center 58%;
  background-size: min(1440px, 100%) auto;
  opacity: 0.92;
}
.book-finder--home::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 72% 62% at 50% 38%,
    rgba(255, 252, 244, 0.88) 0%,
    rgba(255, 252, 244, 0.62) 38%,
    rgba(255, 252, 244, 0.18) 62%,
    rgba(255, 252, 244, 0) 78%
  );
}
.book-finder--home .book-finder__inner {
  max-width: 920px;
  z-index: 2;
  padding-top: 0.6875rem;
}
.book-finder__panel {
  position: relative;
  margin-bottom: 0.875rem;
}
.book-finder__panel--home {
  width: min(92vw, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 1.125rem 1rem 1.25rem;
  background: var(--search-cream);
  border: 1px solid #E6DED0;
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(40, 35, 28, 0.05);
  overflow: visible;
}
@media (min-width: 768px) {
  .book-finder__panel--home {
    padding: 1.375rem 1.5rem 1.5rem;
    border-radius: 24px;
  }
}
.book-finder__panel-art {
  position: absolute;
  left: -0.25rem;
  bottom: -0.35rem;
  width: clamp(6rem, 22vw, 9rem);
  pointer-events: none;
  z-index: 0;
  color: #A89278;
  opacity: 0.16;
}
.book-finder__panel-art img {
  display: block;
  width: 100%;
  height: auto;
}
.book-finder__panel--home .book-finder__search {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}
.book-finder__field {
  display: flex;
  align-items: stretch;
  min-height: 70px;
  background: #FFFDFC;
  border: 1px solid var(--search-border);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(32, 31, 28, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 768px) {
  .book-finder__field {
    min-height: 64px;
  }
}
.book-finder__field:focus-within {
  border-color: rgba(164, 15, 61, 0.35);
  box-shadow: 0 0 0 3px rgba(164, 15, 61, 0.08), 0 4px 14px rgba(32, 31, 28, 0.06);
}
.book-finder__field-submit {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  min-width: 70px;
  border: 0;
  background: var(--search-burgundy);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
@media (min-width: 768px) {
  .book-finder__field-submit {
    width: 66px;
    min-width: 66px;
  }
}
.book-finder__field-submit:hover {
  background: #8E0D36;
}
.book-finder__field-submit svg {
  width: 22px;
  height: 22px;
}
.book-finder__field-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 0.875rem;
  font: inherit;
  font-size: 1rem;
  color: var(--pravda-charcoal);
  outline: none;
  text-overflow: ellipsis;
}
@media (min-width: 768px) {
  .book-finder__field-input {
    font-size: 1.0625rem;
  }
}
.book-finder__field-input::placeholder {
  color: var(--search-placeholder);
}
.book-finder__field-voice {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  border: 0;
  background: transparent;
  color: var(--search-burgundy);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.book-finder__field-voice:hover {
  background: rgba(164, 15, 61, 0.06);
}
.book-finder__field-voice[hidden] {
  display: none;
}
.book-finder__field-voice.is-listening {
  color: #fff;
  background: var(--search-burgundy);
}
.book-finder__field-voice svg {
  width: 20px;
  height: 20px;
}
.book-finder--home .search-dropdown {
  margin-top: 0.625rem;
  max-height: min(27.5rem, 58vh);
}
@media (min-width: 768px) {
  .book-finder--home .search-dropdown {
    max-height: 440px;
  }
}
.book-finder--home .book-finder__eyebrow {
  color: #B88A3B;
  margin-top: 0;
}
.book-finder--home .book-finder__title {
  color: #201F1C;
}
.book-finder--home .book-finder__lead {
  color: #5F5A52;
}
.book-finder--home .book-finder__whatsapp {
  background: rgba(253, 251, 248, 0.84);
  border: 1px solid rgba(184, 138, 59, 0.14);
}
.book-finder__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.book-finder__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pravda-burgundy);
  text-align: center;
}
.book-finder__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 4vw, 2.125rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--pravda-charcoal);
}
.book-finder__lead {
  margin: 0 0 1rem;
  font-size: clamp(0.9375rem, 2.5vw, 1rem);
  line-height: 1.5;
  text-align: center;
  color: var(--color-gray-600);
}
.book-finder__search {
  margin-bottom: 0.875rem;
  position: relative;
  z-index: 4;
}
.book-finder__form,
.book-finder .store-search__form {
  width: 100%;
}
.book-finder__bar,
.book-finder .store-search__bar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 56px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  background: rgba(253, 251, 248, 0.96);
  border: 1px solid rgba(32, 31, 28, 0.1);
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(32, 31, 28, 0.07);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.book-finder__bar:focus-within,
.book-finder .store-search__bar:focus-within {
  border-color: rgba(148, 18, 56, 0.28);
  box-shadow: 0 0 0 3px rgba(148, 18, 56, 0.1), 0 10px 32px rgba(32, 31, 28, 0.08);
}
.book-finder__search-icon,
.book-finder__bar .store-search__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  max-width: 22px;
  min-width: 22px;
  color: var(--pravda-burgundy);
}
.book-finder__input,
.book-finder__bar .store-search__input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  border: none;
  background: transparent;
  font-size: 1rem;
  padding: 0.75rem 0;
  outline: none;
}
.book-finder__input::placeholder,
.book-finder__bar .store-search__input::placeholder {
  color: var(--color-gray-400);
}
.book-finder__input:focus,
.book-finder__bar .store-search__input:focus {
  outline: none;
}
.book-finder__submit {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.625rem 1.125rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--pravda-burgundy);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.book-finder__submit:hover {
  background: #7a1030;
}
@media (max-width: 359px) {
  .book-finder__submit {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
  }
}
.book-finder__whatsapp {
  padding: 0.75rem 0.875rem;
  text-align: center;
  background: rgba(253, 251, 248, 0.72);
  border: 1px solid rgba(49, 84, 73, 0.1);
  border-radius: 0.875rem;
}
.book-finder__whatsapp-label {
  margin: 0 0 0.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--color-gray-600);
}
.book-finder__whatsapp-text {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-gray-600);
}
.book-finder__whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.375rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2F6B4F;
  text-decoration: none;
  border-radius: 999px;
  transition: background var(--transition);
}
.book-finder__whatsapp-link svg {
  width: 1.125rem;
  height: 1.125rem;
}
.book-finder__whatsapp-link:hover {
  background: rgba(47, 107, 79, 0.08);
}

/* Inner-page WhatsApp service banner (catalogue / listing) */
.wa-service-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.875rem 1.125rem;
  margin-top: 0.75rem;
  padding: 0.9375rem 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(105deg, #EEF4EC 0%, transparent 42%),
    linear-gradient(180deg, #FBF8F1 0%, #F6F2E8 100%);
  border: 1px solid rgba(168, 146, 120, 0.22);
  border-radius: 1.125rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 6px 18px rgba(68, 64, 60, 0.04);
}
.wa-service-banner__deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.wa-service-banner__pill {
  position: absolute;
  left: -1.75rem;
  top: 50%;
  width: 7.5rem;
  height: 1.75rem;
  margin-top: -0.875rem;
  border: 2px solid rgba(63, 127, 98, 0.18);
  border-radius: 999px;
  transform: rotate(-28deg);
}
.wa-service-banner__dot {
  position: absolute;
  right: 11.5rem;
  top: 0.7rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(217, 180, 107, 0.45);
}
.wa-service-banner__curve {
  position: absolute;
  right: -0.5rem;
  bottom: 0.15rem;
  width: 7.5rem;
  height: 2.25rem;
  color: rgba(169, 190, 168, 0.45);
}
.wa-service-banner__cross {
  position: absolute;
  right: 9.5rem;
  bottom: 0.65rem;
  width: 0.75rem;
  height: 0.75rem;
  color: rgba(217, 180, 107, 0.4);
}
.wa-service-banner__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  color: #2F7254;
  background: radial-gradient(circle at 35% 30%, #F3F8F3 0%, #E5EFE7 100%);
  border: 1px solid rgba(47, 114, 84, 0.18);
  box-shadow: 0 0 0 4px rgba(47, 114, 84, 0.05);
}
.wa-service-banner__icon svg {
  width: 1.375rem;
  height: 1.375rem;
}
.wa-service-banner__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.wa-service-banner__label {
  margin: 0 0 0.2rem;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #2C2925;
}
.wa-service-banner__text {
  margin: 0;
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  line-height: 1.4;
  color: #6E675C;
}
.wa-service-banner__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-height: 3rem;
  padding: 0.625rem 1.15rem 0.625rem 0.95rem;
  border-radius: 999px;
  background: #2F7254;
  border: 1px solid rgba(39, 96, 71, 0.35);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transition: background 0.2s ease, transform 0.2s ease;
}
.wa-service-banner__cta:hover {
  background: #276047;
  transform: translateY(-1px);
}
.wa-service-banner__cta:focus-visible {
  outline: 2px solid #2F7254;
  outline-offset: 3px;
}
.wa-service-banner__cta-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #fff;
}
.wa-service-banner__cta-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}
.wa-service-banner__cta-prefix {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.wa-service-banner__cta-number {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
@media (max-width: 1023px) {
  .wa-service-banner {
    gap: 0.75rem 0.875rem;
    padding: 0.875rem 1rem;
  }
  .wa-service-banner__icon {
    width: 2.875rem;
    height: 2.875rem;
  }
  .wa-service-banner__icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  .wa-service-banner__dot {
    right: 10rem;
  }
  .wa-service-banner__cross {
    right: 8.25rem;
  }
}
@media (max-width: 767px) {
  .wa-service-banner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "icon copy"
      "cta cta";
    gap: 0.625rem 0.75rem;
    padding: 0.875rem;
    border-radius: 1rem;
  }
  .wa-service-banner__icon {
    grid-area: icon;
    width: 2.75rem;
    height: 2.75rem;
    align-self: start;
  }
  .wa-service-banner__copy {
    grid-area: copy;
  }
  .wa-service-banner__cta {
    grid-area: cta;
    width: 100%;
    min-height: 3rem;
    margin-top: 0.125rem;
  }
  .wa-service-banner__pill {
    width: 5.5rem;
    height: 1.35rem;
    left: -2rem;
    top: 1.25rem;
    margin-top: 0;
  }
  .wa-service-banner__dot {
    right: 0.85rem;
    top: 0.65rem;
  }
  .wa-service-banner__curve {
    width: 5.5rem;
    right: -0.35rem;
    bottom: 3.35rem;
    opacity: 0.7;
  }
  .wa-service-banner__cross {
    display: none;
  }
}
@media (max-width: 380px) {
  .wa-service-banner__cta-prefix {
    display: none;
  }
  .wa-service-banner__cta {
    gap: 0.45rem;
  }
}
.book-finder--catalogue {
  background: var(--pravda-ivory);
  padding: 0.75rem 0 1rem;
}
.book-finder--catalogue .book-finder__inner {
  max-width: 100%;
}
.book-finder--catalogue .book-finder__eyebrow {
  text-align: left;
  margin-bottom: 0.5rem;
}
.book-finder--catalogue .book-finder__bar {
  min-height: 52px;
}
@media (min-width: 1024px) {
  .book-finder--home::before {
    background-position: center 60%;
    background-size: min(1440px, 100%) auto;
    opacity: 0.96;
  }
}
@media (max-width: 639px) {
  .book-finder--home {
    padding: calc(2.5rem - 0.6875rem) 0 2.625rem;
  }
  .book-finder__bar,
  .book-finder .store-search__bar {
    gap: 0.5rem;
    padding: 0.35rem 0.35rem 0.35rem 0.75rem;
  }
  .book-finder__input,
  .book-finder__bar .store-search__input {
    min-width: 0;
    flex: 1 1 auto;
  }
  .book-finder__submit {
    flex-shrink: 0;
    padding-inline: 0.875rem;
  }
  .book-finder--home::before {
    background-position: 42% 92%;
    background-size: 220% auto;
    opacity: 0.55;
  }
  .book-finder--home::after {
    background: radial-gradient(
      ellipse 96% 72% at 50% 28%,
      rgba(255, 252, 244, 0.92) 0%,
      rgba(255, 252, 244, 0.72) 36%,
      rgba(255, 252, 244, 0.22) 58%,
      rgba(255, 252, 244, 0) 76%
    );
  }
  .book-finder__panel-art {
    width: clamp(4.25rem, 18vw, 5.5rem);
    opacity: 0.1;
  }
  .book-finder--home .book-finder__lead {
    margin-bottom: 0.875rem;
  }
  .book-finder--home .book-finder__title {
    font-size: clamp(1.5rem, 5vw, 1.75rem);
  }
}

/* --- Editorial store footer (Kerala / Kathakali) --- */
.footer--editorial {
  --footer-gold: #CDA752;
  --footer-gold-muted: #C9A24D;
  --footer-gold-bright: #DDBB67;
  --footer-text: #F5F0E6;
  --footer-text-secondary: rgba(245, 240, 230, 0.8);
  --footer-text-muted: rgba(245, 240, 230, 0.58);
  --footer-divider: rgba(190, 150, 60, 0.22);
  position: relative;
  overflow: hidden;
  background: #071A17;
  color: var(--footer-text-secondary);
  padding: clamp(2.25rem, 4vw, 3rem) 0 1.25rem;
  border-top: 1px solid var(--footer-divider);
}

.footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #071A17;
  background-image:
    linear-gradient(rgba(4, 17, 15, 0.18), rgba(4, 17, 15, 0.3)),
    url('../images/footer/footer-kerala-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.footer__kathakali {
  position: absolute;
  right: calc(-3rem + 4.25rem);
  bottom: 2.75rem;
  width: clamp(320px, 25vw, 470px);
  height: auto;
  opacity: 0.17;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.footer__shell {
  position: relative;
  z-index: 2;
  width: min(94vw, 1560px);
  max-width: 1560px;
  margin-inline: auto;
  padding: 0 clamp(1rem, 2.5vw, 2rem);
}

.footer__layout {
  display: grid;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}
.footer__glass-panel {
  padding: clamp(1.5rem, 2vw, 2rem);
  background: rgba(6, 25, 21, 0.62);
  border: 1px solid rgba(190, 150, 60, 0.35);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.footer__glass-panel--brand {
  grid-column: 1 / -1;
}
@media (min-width: 640px) {
  .footer__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem 1rem;
  }
  .footer__glass-panel--brand,
  .footer__glass-panel--publish {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1024px) {
  .footer__layout {
    grid-template-columns: 1.35fr 0.75fr 0.85fr 1.35fr;
    gap: 1rem 1.125rem;
    align-items: start;
  }
  .footer__glass-panel--brand,
  .footer__glass-panel--publish {
    grid-column: auto;
  }
}

.footer__logo {
  height: 42px;
  width: auto;
  margin-bottom: 1rem;
}
.footer__tagline {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
  margin: 0 0 1.25rem;
  max-width: 26rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--footer-text-muted);
}
.footer__tagline-line {
  display: block;
}

.footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--footer-text-secondary);
}
.footer__contact-item svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  color: var(--footer-gold);
}
.footer__contact-item a {
  color: inherit;
  text-decoration: none;
  word-break: break-word;
}
.footer__contact-item a:hover {
  color: var(--footer-text);
}
.footer__contact-item--stack {
  align-items: flex-start;
}
.footer__contact-lines {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.footer__contact-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--footer-gold-muted);
}

.footer--editorial .footer__heading {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--footer-gold-muted);
}
.footer__heading--spaced {
  margin-top: 1.625rem;
}

.footer--editorial .footer__link {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(245, 240, 230, 0.78);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}
.footer__glass-panel--publish .footer__link {
  line-height: 1.5;
}
.footer--editorial .footer__link:hover {
  color: var(--footer-text);
  transform: translateX(2px);
}

.footer__trust {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.125rem 0;
  border-top: 1px solid var(--footer-divider);
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .footer__trust {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__payment-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__payment-icon svg {
  display: block;
  width: 46px;
  height: 22px;
  border-radius: 4px;
}

.footer__secure {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(245, 240, 230, 0.72);
}
.footer__secure svg {
  width: 1rem;
  height: 1rem;
  color: #5A9E65;
  flex-shrink: 0;
}

.footer--editorial .footer__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 1rem;
  margin-top: 0;
  border-top: 1px solid var(--footer-divider);
  font-size: 0.8125rem;
  color: rgba(245, 240, 230, 0.62);
}
@media (min-width: 640px) {
  .footer--editorial .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
@media (max-width: 639px) {
  .footer--editorial {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }
  .footer__glass-panel {
    padding: 1.25rem 1.125rem;
  }
  .footer__kathakali {
    width: clamp(220px, 58vw, 280px);
    right: calc(-4.5rem + 2.5rem);
    bottom: 6.5rem;
    opacity: 0.08;
  }
  .footer__bg {
    background-position: center;
  }
}
