.beds {
  padding-block: calc(var(--header-height, 92px) + 25px) clamp(58px, 8vw, 110px);
}

.beds :focus-visible {
  outline: 2px solid var(--sage-ink);
  outline-offset: 4px;
}

.beds-crumbs { margin-block-end: 26px; }
.beds-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--mute); }
.beds-crumbs li + li::before { content: "‹"; display: inline-block; margin-inline-end: 12px; color: var(--sage-ink); }
.beds-crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.beds-crumbs [aria-current] { color: var(--ink); }

.beds-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 470px;
  background: var(--sand);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.beds-hero__copy {
  padding: clamp(28px, 4.1vw, 68px);
  align-self: center;
}

.beds-hero h1, .beds-product h1 {
  font-size: clamp(45px, 5.5vw, 87px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.055em;
  margin-block: 21px 18px;
  text-wrap: balance;
}

.beds-hero h1 span { display: block; color: var(--sage-ink); }
.beds-hero p, .beds-product__copy > p {
  color: var(--mute);
  max-width: 500px;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.65;
}

.beds-hero__photo { position: relative; min-height: 100%; overflow: hidden; background: var(--forest); }
.beds-hero__photo img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: center; }
.beds-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(12deg, rgba(15,23,18,.22), transparent 55%); pointer-events: none; }
.beds-actions { margin-block-start: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 23px; }
.beds-text-link { min-height: 44px; display: inline-flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--faint); }
.beds-text-link:hover { text-decoration-color: currentColor; }

.beds-section { margin-block-start: clamp(46px, 6vw, 94px); scroll-margin-block-start: calc(var(--header-height, 92px) + 22px); }
.beds-section h2 { font-weight: 700; font-size: clamp(27px, 3.1vw, 49px); line-height: 1.12; letter-spacing: -.036em; text-wrap: balance; }
.beds-section__head { display: flex; gap: 12px 24px; align-items: end; justify-content: space-between; margin-block-end: 22px; }
.beds-section__head p, .beds-guide p, .beds-specs p { color: var(--mute); margin-block-start: 9px; line-height: 1.7; }
.beds-caption { color: var(--mute); margin-block-start: 14px; font-size: 14px; }
.beds-caption a { text-decoration: underline; text-underline-offset: 3px; }

.beds-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.beds-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.beds-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; border-radius: var(--r-md); overflow: hidden; }
.beds-card__media { display: block; aspect-ratio: 5 / 4; overflow: hidden; background: #eeede8; }
.beds-card__media img { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform .4s var(--ease); }
.beds-card:hover .beds-card__media img { transform: scale(1.035); }
.beds-card__body { padding: clamp(13px, 1.45vw, 22px); display: flex; flex: 1; flex-direction: column; }
.beds-card__meta, .beds-card__bottom { display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.beds-card__meta { font-size: 12px; padding-block-end: 12px; color: var(--mute); flex-wrap: wrap; }
.beds-card__meta span { padding: 3px 9px; background: var(--sage-soft); border-radius: 99px; color: var(--sage-ink); font-weight: 700; }
.beds-card h3 { font-size: clamp(17px, 1.65vw, 24px); line-height: 1.22; letter-spacing: -.025em; font-weight: 700; }
.beds-card p { font-size: 14px; line-height: 1.45; margin-block: 7px 16px; color: var(--mute); }
.beds-card__bottom { margin-block-start: auto; border-block-start: 1px solid var(--line); padding-block-start: 12px; }
.beds-card__bottom strong, .beds-card__bottom small { display: block; }
.beds-card__bottom strong { font-size: 22px; line-height: 1; }
.beds-card__bottom small { font-size: 11px; color: var(--mute); margin-block-start: 5px; }
.beds-card__link { display: grid; place-items: center; flex: none; width: 45px; height: 45px; border-radius: 50%; background: var(--sage-soft); color: var(--forest); transition: background .2s, color .2s; }
.beds-card__link:hover { background: var(--forest); color: #fff; }

.beds-compare { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: auto; }
.beds-compare table { width: 100%; border-collapse: collapse; text-align: start; }
.beds-compare :is(th, td) { padding: 14px clamp(10px, 2vw, 28px); text-align: start; }
.beds-compare thead { color: var(--forest); background: var(--sage-soft); }
.beds-compare tbody tr + tr { border-block-start: 1px solid var(--line); }
.beds-compare tbody a { display: inline-flex; min-height: 32px; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.beds-compare tbody td:last-child { white-space: nowrap; }

.beds-guide, .beds-specs { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(24px, 5vw, 80px); }
.beds-faq details { border-block-end: 1px solid var(--line); }
.beds-faq details:first-child { border-block-start: 1px solid var(--line); }
.beds-faq summary { cursor: pointer; padding-block: 14px; font-weight: 700; }
.beds-faq details p { margin-block: 0 16px; }
.beds-help__panel { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(25px, 4vw, 60px); background: var(--forest-2); color: #fff; border-radius: var(--r-lg); }
.beds-help__panel p { color: #e3ebdf; margin-block-start: 10px; }
.beds-help .beds-actions { margin-block-start: 0; }
.beds-help__panel a:focus-visible { outline-color: #fff; }

.beds-product { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(24px, 5vw, 75px); }
.beds-product__copy { padding-block: clamp(5px, 4vw, 56px); }
.beds-product h1 { font-size: clamp(42px, 4.55vw, 73px); }
.beds-product h1 bdi { display: block; color: var(--sage-ink); font-size: .63em; margin-block-start: 9px; letter-spacing: -.035em; }
.beds-price { margin-block-start: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.beds-price strong { font-size: 35px; color: var(--forest); line-height: 1; }
.beds-price span { font-size: 14px; color: var(--mute); line-height: 1.4; }
.beds-gallery { min-width: 0; }
.beds-gallery__main { display: block; width: 100%; aspect-ratio: 5 / 4; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; cursor: zoom-in; }
.beds-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.beds-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-block-start: 12px; }
.beds-gallery__thumbs a { display: block; width: clamp(48px, 5.1vw, 68px); aspect-ratio: 1; border: 2px solid transparent; border-radius: 12px; background: #fff; overflow: hidden; }
.beds-gallery__thumbs a:hover, .beds-gallery__thumbs [aria-current="true"] { border-color: var(--sage-ink); }
.beds-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.beds-specs dl { margin: 0; padding: 0 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.beds-specs dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 14px; padding-block: 13px; }
.beds-specs dl div + div { border-block-start: 1px solid var(--line); }
.beds-specs dt { font-weight: 700; }
.beds-specs dd { margin: 0; color: var(--mute); }

@media (max-width: 1050px) {
  .beds .hp-wrap { width: min(100% - 56px, 1400px); }
  .beds-hero { min-height: 390px; }
  .beds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beds-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 715px) {
  .beds .hp-wrap { width: calc(100% - 32px); }
  .beds { padding-block-start: calc(var(--header-height, 78px) + 14px); }
  .beds-crumbs { margin-block-end: 14px; }
  .beds-hero, .beds-product, .beds-guide, .beds-specs { grid-template-columns: 1fr; }
  .beds-hero { border-radius: var(--r-md); min-height: auto; }
  .beds-hero__photo { min-height: 0; aspect-ratio: 16 / 10; }
  .beds-hero__copy { padding: 28px 20px; }
  .beds-section__head, .beds-help__panel { flex-direction: column; align-items: start; }
  .beds-grid, .beds-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .beds-card { border-radius: var(--r-sm); }
  .beds-card__body { padding: 11px; }
  .beds-card__bottom strong { font-size: 19px; }
  .beds-card__bottom small { font-size: 10px; }
  .beds-gallery__main { border-radius: var(--r-md); }
  .beds-compare { font-size: 13px; }
}

@media (max-width: 365px) {
  .beds-grid, .beds-grid--related { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .beds-card__media img, .beds-card__link { transition: none; }
}

.beds-purchase {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(20px, 5vw, 74px);
  align-items: start;
  padding: clamp(24px, 4vw, 56px);
  border-radius: var(--r-lg);
  background: var(--sage-soft);
}

.beds-purchase > div > p:not([data-beds-lead-success]) {
  margin-block: 10px 16px;
  color: var(--forest);
}

.beds-purchase .hp-tag { background: #fff; line-height: 1.35; flex-wrap: wrap; }
.beds-purchase__form { display: grid; gap: 7px; }
.beds-purchase__form[hidden], .beds-purchase__success[hidden] { display: none; }
.beds-purchase__form label { font-size: 15px; font-weight: 700; }
.beds-purchase__form input {
  border: 1px solid #9aa598;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  min-height: 49px;
  margin-block-end: 7px;
  padding: 9px 13px;
  font: inherit;
}
.beds-purchase__form input[type="tel"] { text-align: right; }
.beds-purchase__form button { justify-self: start; }
.beds-purchase__form button:disabled { cursor: wait; opacity: .7; }
.beds-purchase__status { color: #80291d; font-size: 14px; }
.beds-purchase__status:empty { display: none; }
.beds-purchase__form small { color: var(--forest); margin-block-start: 4px; }
.beds-purchase__form small a { text-decoration: underline; text-underline-offset: 3px; }
.beds-purchase__success { padding: 18px; background: #fff; border-radius: var(--r-sm); color: var(--forest); font-weight: 700; }

@media (max-width: 715px) {
  .beds-purchase { grid-template-columns: 1fr; padding: 23px 18px; border-radius: var(--r-md); }
}
