/* =========================================================
   TV BEDS — PAGE-SPECIFIC STYLESHEET
   ---------------------------------------------------------
   Only contains styles for best-sellers.html. Relies on style.css
   (loaded first) for design tokens and shared components
   (.btn, .product-card, .grid--products) — nothing there is
   duplicated or modified here.
   ========================================================= */

/* ---- Hero ---- */
.bs-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 48vh, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-forest-dark);
}

.bs-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bs-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 40, 31, 0.52) 0%, rgba(18, 40, 31, 0.4) 45%, rgba(18, 40, 31, 0.6) 100%);
  z-index: 1;
}

.bs-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 3.5rem;
}

.bs-hero__content {
  max-width: 34rem;
  color: var(--color-ivory-soft);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bs-hero__heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.05;
  color: var(--color-ivory-soft);
}

@media (min-width: 768px) {
  .bs-hero__heading {
    font-size: 3.5rem;
  }
}

.bs-hero__body {
  margin-top: 1rem;
  max-width: 30rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(248, 244, 235, 0.9);
}

.bs-hero__content .btn {
  margin-top: 1.75rem;
}

/* ---- Breadcrumb ---- */
.bs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 1.1rem;
  font-size: 0.8rem;
  color: rgba(35, 35, 32, 0.55);
}

.bs-breadcrumb a,
.bs-detail__breadcrumb a {
  color: var(--color-forest);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bs-breadcrumb a:hover,
.bs-detail__breadcrumb a:hover {
  color: var(--color-brass);
}

.bs-detail__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 1.25rem;
  font-size: 0.8rem;
  color: rgba(35, 35, 32, 0.55);
}

/* ---- Introduction ---- */
.bs-intro {
  padding-block: 2.5rem;
}

.bs-intro__inner {
  max-width: 42rem;
  text-align: center;
  margin-inline: auto;
}

.bs-intro__inner h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-forest-dark);
}

.bs-intro__inner p {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(35, 35, 32, 0.72);
}

/* ---- Toolbar ---- */
.bs-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.bs-toolbar-row__count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(35, 35, 32, 0.6);
}

.bs-toolbar-row__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bs-toolbar__field select {
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding-inline: 0.85rem;
  background-color: var(--color-white);
  font-size: 0.82rem;
  color: var(--color-forest-dark);
  min-width: 160px;
}

/* ---- Product grid: 1 col mobile, 2 col tablet, 3 col desktop ---- */
.bs-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .bs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bs-grid.is-list-view {
  grid-template-columns: 1fr;
}

.bs-grid.is-list-view .product-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
}

@media (max-width: 639px) {
  .bs-grid.is-list-view .product-card {
    grid-template-columns: 120px 1fr;
  }
}

.bs-grid.is-list-view .product-card__image-wrap {
  aspect-ratio: 1 / 1;
}

.bs-view-toggle {
  display: none;
}

@media (min-width: 640px) {
  .bs-view-toggle {
    display: flex;
  }
}

.bs-product-card[hidden] {
  display: none;
}

.bs-product-card {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.bs-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bs-product-card .product-card__image-wrap {
  overflow: hidden;
}

.bs-product-card .product-card__image-wrap img {
  transition: transform 0.5s var(--ease);
}

.bs-product-card:hover .product-card__image-wrap img {
  transform: scale(1.06);
}

.bs-product-card__cta {
  margin-top: 0.85rem;
  width: 100%;
  height: 42px;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- FAQ accordion ---- */
.bs-faq__inner {
  max-width: 42rem;
}

.bs-faq-list {
  margin-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.bs-faq-item {
  border-bottom: 1px solid var(--color-border);
}

.bs-faq-item__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-block: 1.1rem;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  background: none;
  border: none;
  cursor: pointer;
}

.bs-faq-item__toggle svg {
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s ease;
}

.bs-faq-item__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.bs-faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.3s ease;
}

.bs-faq-item.is-open .bs-faq-item__panel {
  grid-template-rows: 1fr;
}

.bs-faq-item__panel p {
  overflow: hidden;
  padding-bottom: 1.1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(35, 35, 32, 0.68);
}

.bs-detail-faq {
  background-color: var(--color-ivory);
}

/* ---- Detail view ---- */
.bs-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .bs-detail__grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
  }
}

.bs-detail__main-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-sage);
}

.bs-detail__main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.bb-modal__zoom {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--color-forest-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--dur-fast) var(--ease);
}

.bb-modal__zoom:hover {
  background-color: var(--color-white);
}

.bb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background-color: rgba(18, 40, 31, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.bb-lightbox[hidden] {
  display: none;
}

.bb-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.bb-lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-ivory-soft);
  transition: background-color var(--dur-fast) var(--ease);
}

.bb-lightbox__close:hover {
  background-color: rgba(255, 255, 255, 0.28);
}


.bs-detail__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--color-forest-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.bs-detail__nav--prev {
  left: 0.75rem;
}

.bs-detail__nav--next {
  right: 0.75rem;
}

.bs-detail__thumbs {
  display: flex;
  flex-wrap: wrap; /* 5-photo galleries wrap instead of overflowing small phones */
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.bs-detail__thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
}

.bs-detail__thumbs img.is-active {
  border-color: var(--color-brass);
}

.bs-detail__title {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-forest-dark);
}

.bs-detail__rating {
  margin-top: 0.6rem;
}

.bs-detail__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.bs-detail__price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--color-forest-dark);
}

.bs-detail__description {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(35, 35, 32, 0.72);
}

.bs-detail__section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(35, 35, 32, 0.55);
  margin-bottom: 0.6rem;
}

.bs-detail__option-block {
  margin-top: 1.5rem;
}

/* ---- TV lift information block ---- */
.bs-info-block {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background-color: var(--color-ivory-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.bs-info-block p:last-child {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(35, 35, 32, 0.7);
}

/* ---- Size option pills ---- */
.bs-option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.bs-option-pill {
  height: 42px;
  padding-inline: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  background-color: var(--color-white);
  cursor: pointer;
}

.bs-option-pill[aria-pressed="true"] {
  background-color: var(--color-forest);
  border-color: var(--color-forest);
  color: var(--color-ivory-soft);
}

.bs-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.bs-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(35, 35, 32, 0.75);
}

.bs-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: var(--color-brass);
}

/* ---- Purchase panel ---- */
.bs-detail__purchase {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.bs-detail__qty {
  margin-bottom: 1rem;
}

.bs-detail__qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.bs-detail__qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-forest-dark);
  background: none;
  border: none;
  cursor: pointer;
}

.bs-detail__qty-value {
  width: 44px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.bs-detail__add-basket {
  width: 100%;
}

@media (min-width: 480px) {
  .bs-detail__add-basket {
    width: auto;
  }
}

.bs-detail__message {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--color-forest);
  min-height: 1.2em;
}

.bs-detail__message.is-error {
  color: var(--color-clay);
}

.bs-detail__delivery-info {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding-left: 0;
}

.bs-detail__delivery-info li {
  font-size: 0.8125rem;
  color: rgba(35, 35, 32, 0.7);
}

.bs-detail__related {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* ---- Dimensions table ---- */
.bs-dimensions__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.bs-dimensions__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.bs-dimensions__table th,
.bs-dimensions__table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.bs-dimensions__table thead th {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(35, 35, 32, 0.55);
  background-color: var(--color-ivory-soft);
}

.bs-dimensions__table tbody tr:last-child td {
  border-bottom: none;
}

/* ---- Not found ---- */
.bs-not-found {
  padding-block: 6rem;
}

.bs-not-found__inner {
  max-width: 30rem;
  text-align: center;
  margin-inline: auto;
}

.bs-not-found__inner h1 {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--color-forest-dark);
}

.bs-not-found__inner p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(35, 35, 32, 0.68);
}

.bs-not-found__inner .btn {
  margin-top: 2rem;
}

.bb-modal__fabric-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.bb-modal__fabric-grid .fabric-swatch__ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
}

.bb-modal__fabric-grid .fabric-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  width: 68px;
}

.bb-modal__fabric-collections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
}

.bb-modal__fabric-collection-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-forest-dark);
  margin-bottom: 0.75rem;
}


/* ---- New bed configuration option cards ---- */
.bs-option-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-forest-dark);
  margin-bottom: 0.5rem;
}

.bs-option-image {
  display: block;
  width: 100%;
  max-width: 240px;
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  border: 1px solid var(--color-border);
}

.bs-option-sub {
  font-weight: 400;
  font-size: 0.78rem;
  color: rgba(35, 35, 32, 0.55);
}

.bs-option-message {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--color-clay);
  min-height: 1.2em;
}

.bs-custom-request {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--color-ink);
  background-color: var(--color-white);
  resize: vertical;
  min-height: 90px;
}

.bs-custom-request:focus {
  outline: none;
  border-color: var(--color-brass);
}

.bs-delay-date-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.bs-delay-date-wrap label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(35, 35, 32, 0.6);
}

.bs-delay-date-wrap input[type="date"] {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--color-ink);
  background-color: var(--color-white);
  max-width: 220px;
  box-sizing: border-box;
}

.product-card__no-reviews {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(35, 35, 32, 0.4);
}

.bb-modal__fabric-grid .fabric-swatch__name {
  font-size: 0.66rem;
  line-height: 1.25;
}

.bb-modal__fabric-grid .fabric-swatch__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.bb-modal__fabric-grid .fabric-swatch[aria-pressed="true"] .fabric-swatch__ring {
  border-color: var(--color-brass);
  box-shadow: 0 0 0 2px rgba(164, 123, 76, 0.2);
}

.bb-modal__fabric-grid .fabric-swatch__check {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background-color: rgba(18, 40, 31, 0.72);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.bb-modal__fabric-grid .fabric-swatch[aria-pressed="true"] .fabric-swatch__check {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.fabric-swatch__ring--fallback {
  background-color: var(--color-sage);
}


.mt-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.mt-pagination__page,
.mt-pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  background-color: var(--color-white);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.mt-pagination__page:hover,
.mt-pagination__btn:hover:not(:disabled) {
  border-color: var(--color-brass-light);
}

.mt-pagination__page.is-active {
  background-color: var(--color-forest);
  border-color: var(--color-forest);
  color: var(--color-ivory-soft);
}

.mt-pagination__btn:disabled {
  opacity: 0.4;
  cursor: default;
}


.product-card__price--pending {
  color: rgba(35, 35, 32, 0.45);
  font-style: italic;
}

.bs-product-card__cta[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.bs-product-card .product-card__image-link:not(a) {
  display: block;
}

.bs-product-card .product-card__name:not(a) {
  cursor: default;
}


/* ---- "Our Best Sellers, Handmade in Britain" section restyled as a
   centered story/narrative block, scoped to this page only ---- */
.bs-info.bb-info .bb-info__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.bs-info.bb-info #bs-info-heading {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin-bottom: 1.25rem;
}

.bs-info.bb-info .bb-info__inner p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(35, 35, 32, 0.8);
}

.bs-info.bb-info .bb-info__inner p + p {
  margin-top: 1rem;
}