/* Editorial museum styling for book collections (Bengali / English / Hindi). */
.cb-page {
  --cb-ink: #2b1c14;
  --cb-soft: #6d5b4c;
  --cb-muted: #8a7868;
  --cb-line: #eadfce;
  --cb-cream: #faf6ef;
  --cb-saffron: #c66a0b;
  --cb-maroon: #7b1e1e;
  --cb-green: #1f6b45;
  background: #fffdf9;
  color: var(--cb-ink);
  letter-spacing: 0;
}

.cb-page *,
.cb-page *::before,
.cb-page *::after {
  box-sizing: border-box;
}

/* ---------- hero ---------- */
.cb-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #efe3d0;
  background:
    radial-gradient(900px 340px at 88% -40%, #fbe3b9 0%, rgba(251, 227, 185, 0) 70%),
    radial-gradient(700px 300px at 2% 120%, #f6e3cc 0%, rgba(246, 227, 204, 0) 70%),
    linear-gradient(135deg, #fdf8ef 0%, #faf1e2 58%, #f6e9d6 100%);
}

.cb-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 22px;
  padding-bottom: 44px;
}

.cb-hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(198, 106, 11, 0.11);
}

.cb-hero__orb--1 {
  width: 250px;
  height: 250px;
  right: 12%;
  top: -130px;
}

.cb-hero__orb--2 {
  width: 360px;
  height: 360px;
  right: 7%;
  top: -70px;
  border-style: dashed;
  border-color: rgba(123, 30, 30, 0.08);
}

.cb-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  font-size: 12px;
  color: var(--cb-muted);
}

.cb-crumb a {
  color: var(--cb-muted);
  text-decoration: none;
}

.cb-crumb a:hover {
  color: var(--cb-saffron);
}

.cb-crumb b {
  color: var(--cb-ink);
  font-weight: 600;
}

.cb-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 32px;
}

.cb-hero__copy {
  max-width: 690px;
}

.cb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cb-saffron);
}

.cb-eyebrow > span {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cb-saffron));
}

.cb-title {
  margin: 0 0 14px;
  font-family: var(--font-heading-family);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cb-ink);
}

.cb-title__script {
  display: inline-block;
  margin-left: 14px;
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--cb-maroon);
  opacity: 0.85;
  vertical-align: 0.25em;
}

.cb-lede {
  max-width: 590px;
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--cb-soft);
}

.cb-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 22px;
  font-size: 12px;
  color: var(--cb-muted);
}

.cb-meta b {
  margin-right: 2px;
  font-family: var(--font-heading-family);
  font-size: 15px;
  font-weight: 600;
  color: var(--cb-ink);
}

.cb-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c9bba9;
}

.cb-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cb-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #e2d5c2;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.7);
  color: var(--cb-soft);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.cb-lang:hover {
  border-color: #cbb28d;
  background: #fff;
  color: var(--cb-maroon);
}

.cb-lang.is-active {
  border-color: var(--cb-maroon);
  background: var(--cb-maroon);
  color: #fff7ea;
  box-shadow: 0 10px 22px -16px rgba(123, 30, 30, 0.9);
}

.cb-lang--all {
  border-style: dashed;
  border-color: #cbb28d;
  background: transparent;
  color: var(--cb-maroon);
  font-weight: 700;
}

.cb-lang--all::after {
  content: "→";
  margin-left: 7px;
  font-size: 13px;
  line-height: 1;
}

/* overlapping book covers */
.cb-covers {
  position: relative;
  height: 300px;
  pointer-events: none;
}

.cb-cover {
  position: absolute;
  display: block;
  width: 168px;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  padding: 8px;
  border: 1px solid #ede1cd;
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 24px 44px -28px rgba(88, 52, 14, 0.65), 0 3px 8px rgba(88, 52, 14, 0.08);
}

.cb-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cb-cover--1 {
  left: 8px;
  top: 42px;
  transform: rotate(-7deg);
  opacity: 0.9;
}

.cb-cover--2 {
  left: 120px;
  top: 10px;
  z-index: 2;
  width: 190px;
  transform: rotate(1.5deg);
}

.cb-cover--3 {
  left: 262px;
  top: 52px;
  transform: rotate(8deg);
  opacity: 0.9;
}

/* ---------- trust strip ---------- */
.cb-trustbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: -20px;
  padding-top: 14px;
  padding-bottom: 14px;
  border: 1px solid var(--cb-line);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 18px 40px -36px rgba(88, 52, 14, 0.55);
  backdrop-filter: blur(8px);
}

.cb-trust {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cb-soft);
}

.cb-trust svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: var(--cb-green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- grid / facets polish ---------- */
.cb-page .collection-grid-padding {
  padding-top: 26px;
}

.cb-page .facets-vertical-sort.page-width {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
  border: 1px solid var(--cb-line);
  border-radius: 13px;
  background: #fffdf9;
}

.cb-page .facets-vertical-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.cb-page .facet-filters__label,
.cb-page .facet-filters__label label,
.cb-page .product-count__text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cb-muted);
}

.cb-page .facet-filters__sort.select__select {
  height: 38px;
  border: 1px solid #e2d5c2;
  border-radius: 9px;
  background: #fff;
  color: var(--cb-ink);
  font-size: 12.5px;
}

.cb-page .facets-wrapper .facets-container {
  padding: 16px 18px;
  border: 1px solid var(--cb-line);
  border-radius: 14px;
  background: #fffdf9;
}

.cb-page .facets__heading,
.cb-page .facets__summary {
  color: var(--cb-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cb-page .facets__summary {
  padding: 10px 0;
  border-bottom: 1px dashed #ece2cf;
}

.cb-page .facets__display-vertical {
  padding-top: 6px;
}

.cb-page .collection-filter-apply {
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #d98215, #b45c00);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 22px;
  cursor: pointer;
}

.cb-page .facets-vertical {
  align-items: flex-start;
  gap: 24px;
}

.cb-page .product-grid-container {
  min-width: 0;
}

.cb-page .sns-grid {
  gap: 18px;
}

.cb-page .sns-card__eyebrow {
  color: #9a7425;
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .cb-hero__grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .cb-cover {
    width: 145px;
  }
  .cb-cover--2 {
    width: 165px;
  }
  .cb-cover--3 {
    left: 232px;
  }
}

@media (max-width: 989px) {
  .cb-hero__grid {
    grid-template-columns: 1fr;
  }
  .cb-covers {
    display: none;
  }
  .cb-hero__inner {
    padding-bottom: 36px;
  }
  .cb-trustbar {
    margin-top: -14px;
    justify-content: flex-start;
    gap: 10px 22px;
  }
}

@media (max-width: 749px) {
  .cb-hero__inner {
    padding-top: 16px;
    padding-bottom: 30px;
  }
  .cb-crumb {
    margin-bottom: 16px;
    font-size: 11px;
  }
  .cb-title {
    font-size: 32px;
  }
  .cb-title__script {
    display: block;
    margin: 7px 0 0;
    font-size: 0.48em;
    color: var(--cb-maroon);
  }
  .cb-lede {
    font-size: 13px;
  }
  .cb-trustbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    margin-top: 0;
    border-radius: 12px;
  }
  .cb-trust {
    font-size: 10.5px;
    align-items: flex-start;
  }
  .cb-page .facets-vertical-sort.page-width {
    display: none;
  }
  .cb-page .collection-grid-padding {
    padding-top: 18px;
  }
}

/* The floating social rail can cover the language pills on phones. */
@media (max-width: 989px) {
  body:has(.cb-page) .floating-social {
    display: none !important;
  }
}

/* Smooth cross-route settle when switching between language collections. */
@keyframes cb-page-in {
  from {
    opacity: 0.94;
  }
  to {
    opacity: 1;
  }
}

.cb-page {
  animation: cb-page-in 0.18s ease-out both;
}

.cb-page .cb-hero,
.cb-page .cb-trustbar,
.cb-page .collection-grid-padding {
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .cb-page {
    animation: none;
  }
}

/* ---------- combined filter & sort sidebar ---------- */
.cb-sidehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 12px;
}

.cb-sidehead__eyebrow {
  margin: 0 0 3px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cb-saffron);
}

.cb-sidehead__title {
  margin: 0;
  font-family: var(--font-heading-family);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cb-ink);
}

.cb-sidehead__count {
  padding: 4px 10px;
  border: 1px solid #eadfce;
  border-radius: 999px;
  background: #fffdf9;
  color: var(--cb-muted);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 990px) {
  .cb-page .facets-wrapper {
    position: sticky;
    top: 96px;
  }
}

.cb-sortbox {
  padding-bottom: 13px;
  margin-bottom: 2px;
  border-bottom: 1px dashed #ece2cf;
}

.cb-sortbox__label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cb-muted);
}

.cb-sortwrap {
  position: relative;
}

.cb-sortselect {
  width: 100%;
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid #e2d5c2;
  border-radius: 9px;
  background: #fff;
  color: var(--cb-ink);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cb-sortselect:focus {
  border-color: #d9a35b;
  box-shadow: 0 0 0 3px rgba(198, 106, 11, 0.1);
}

.cb-sortcaret {
  position: absolute;
  top: 50%;
  right: 12px;
  display: flex;
  transform: translateY(-50%);
  color: var(--cb-muted);
  pointer-events: none;
}

.cb-sortcaret .icon {
  width: 10px;
  height: 6px;
}

.cb-page .active-facets-vertical-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0 7px;
}

.cb-page .facets__heading {
  margin: 0;
  color: var(--cb-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cb-page .active-facets__button-remove {
  color: var(--cb-saffron);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.cb-page .active-facets__button-remove:hover {
  text-decoration: underline;
}

.cb-activeprice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #fbf0da;
  color: #8d5a00;
  font-size: 11px;
  font-weight: 600;
}

.cb-activeprice a {
  color: #8d5a00;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
}

.cb-page .facets__disclosure-vertical {
  padding: 4px 0;
}

.cb-page .facets__summary {
  padding: 8px 0;
}

.cb-page .facets-wrap-vertical {
  padding: 4px 0 8px;
}

.cb-page .facets__label {
  border-radius: 7px;
  padding: 3px 5px;
  transition: background 0.15s;
}

.cb-page .facets__label:hover {
  background: #fbf5e9;
}

.cb-page .facets__price {
  margin-top: 6px;
}

.cb-page .facets__price .field__input {
  height: 40px;
  border: 1px solid #e2d5c2;
  border-radius: 8px;
  background: #fff;
  color: var(--cb-ink);
  font-size: 12.5px;
}

.cb-page .facets__price .field__label {
  font-size: 10.5px;
  color: var(--cb-muted);
}

.cb-page .field-currency {
  color: var(--cb-muted);
}

.cb-page .collection-filter-apply {
  width: 100%;
  height: 40px;
  margin-top: 12px;
  border-radius: 9px;
  background: linear-gradient(135deg, #d98215, #b45c00);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cb-resultbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0 2px;
  color: var(--cb-muted);
  font-size: 12px;
}

.cb-resultbar p {
  margin: 0;
}

.cb-resultbar strong {
  color: var(--cb-ink);
  font-weight: 700;
}

.cb-resultbar > span {
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 749px) {
  .cb-sidehead {
    display: none;
  }
  .cb-resultbar {
    display: none;
  }
}

/* ---------- clean, custom filter sidebar ---------- */
.cb-filterbar {
  flex: 0 0 290px;
  width: 290px;
  align-self: flex-start;
}

.cb-filterbar__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 12px;
}

.cb-filterbar__eyebrow {
  margin: 0 0 3px;
  color: var(--cb-saffron);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cb-filterbar__title {
  margin: 0;
  font-family: var(--font-heading-family);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cb-ink);
}

.cb-filterbar__count {
  padding: 4px 10px;
  border: 1px solid var(--cb-line);
  border-radius: 999px;
  background: #fffdf9;
  color: var(--cb-muted);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.cb-filterform {
  padding: 16px;
  border: 1px solid var(--cb-line);
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 18px 40px -42px rgba(88, 52, 14, 0.5);
}

.cb-filtergroup {
  padding: 12px 0;
  border-bottom: 1px dashed #ece2cf;
}

.cb-filtergroup:first-child {
  padding-top: 0;
}

.cb-filtergroup:last-of-type {
  border-bottom: 0;
  padding-bottom: 4px;
}

.cb-filterlabel {
  display: block;
  margin: 0 0 7px;
  color: var(--cb-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cb-selectwrap {
  position: relative;
}

.cb-page .cb-sortselect {
  width: 100%;
  height: 42px;
  border-radius: 9px;
}

.cb-pricelabelrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.cb-pricelabelrow .cb-filterlabel {
  margin: 0;
}

.cb-pricelabelrow > span {
  color: var(--cb-muted);
  font-size: 9.5px;
  white-space: nowrap;
}

.cb-pricegrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cb-priceinput {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 9px;
  border: 1px solid #e2d5c2;
  border-radius: 9px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cb-priceinput:focus-within {
  border-color: #d9a35b;
  box-shadow: 0 0 0 3px rgba(198, 106, 11, 0.1);
}

.cb-priceinput > span {
  flex: 0 0 auto;
  color: var(--cb-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-priceinput input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 6px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--cb-ink);
  font-family: inherit;
  font-size: 12.5px;
}

.cb-priceinput input::placeholder {
  color: #b5a58f;
}

.cb-priceinput input::-webkit-outer-spin-button,
.cb-priceinput input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cb-priceinput input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.cb-filterform .cb-activeprice {
  margin-top: 10px;
}

.cb-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  margin-top: 14px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #d98215, #b45c00);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 22px -14px rgba(164, 79, 0, 0.9);
  transition: transform 0.2s, filter 0.2s;
}

.cb-apply:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.cb-clearall {
  display: block;
  margin-top: 10px;
  color: var(--cb-muted);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
}

.cb-clearall:hover {
  color: var(--cb-maroon);
}

@media (min-width: 990px) {
  .cb-filterbar {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 989px) {
  .cb-filterbar {
    flex: 0 0 240px;
    width: 240px;
  }
  .cb-filterform {
    padding: 13px;
  }
}

@media (max-width: 749px) {
  .cb-filterbar {
    display: none;
  }
}

/* ---------- collection search ---------- */
.cb-search {
  position: relative;
  display: flex;
  align-items: center;
}

.cb-search > svg {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--cb-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.cb-search input {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 33px;
  border: 1px solid #e2d5c2;
  border-radius: 9px;
  background: #fff;
  color: var(--cb-ink);
  font-family: inherit;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cb-search input::placeholder {
  color: #b5a58f;
}

.cb-search input:focus {
  border-color: #d9a35b;
  box-shadow: 0 0 0 3px rgba(198, 106, 11, 0.1);
}

.cb-search input::-webkit-search-cancel-button {
  display: none;
}

.cb-searchclear {
  position: absolute;
  right: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f4ecdd;
  color: var(--cb-soft);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
}

.cb-searchclear:hover {
  background: #eadfce;
  color: var(--cb-ink);
}

.cb-mobilesearch {
  display: none;
}

@media (max-width: 749px) {
  .cb-mobilesearch {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
  }
  .cb-mobilesearch .cb-search {
    flex: 1;
  }
  .cb-mobilesearch__btn {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #d98215, #b45c00);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
  }
  .cb-noresults {
    margin: 6px 0 18px;
  }
}

.cb-noresults {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 38px 22px;
  border: 1px dashed #dfcfb7;
  border-radius: 16px;
  background: #fffdf9;
}

.cb-noresults__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: #fbf0da;
  color: #a86400;
}

.cb-noresults__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cb-noresults h3 {
  margin: 0;
  font-family: var(--font-heading-family);
  font-size: 19px;
  font-weight: 600;
  color: var(--cb-ink);
}

.cb-noresults p {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--cb-muted);
}

.cb-noresults a {
  color: var(--cb-saffron-deep);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
}
