/* ═══ Bedworld homepage (and shared section styles) ═══ */
.bw-eyebrow--gold { color: var(--bw-yellow) !important; }
.bw-section--cream { background: var(--bw-light); }
.bw-section--dark { background: var(--bw-dark); color: rgba(255,255,255,.82); }
.bw-section--dark h2 { color: #fff; }
.bw-link-arrow--light { color: var(--bw-yellow); }

/* Hero: warm maroon with a soft bedroom glow; optional photo on the right */
.bw-hero2 { position: relative; overflow: hidden; color: #fff; padding: 72px 0 84px;
    background: radial-gradient(900px 520px at 85% 10%, rgba(175,0,0,.55), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(233,180,76,.12), transparent 60%), linear-gradient(160deg, #2b1215 0%, #160a0b 100%); }
.bw-hero2.has-image::after { content: ""; position: absolute; inset: 0 0 0 46%; background: linear-gradient(90deg, #1d0c0e 0%, rgba(29,12,14,.35) 40%, rgba(29,12,14,.1) 100%), var(--bw-hero-img) center/cover no-repeat; z-index: 0; }
.bw-hero2__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.bw-hero2__title { color: #fff !important; font-size: clamp(40px, 5.2vw, 68px); line-height: 1.02; margin: 10px 0 18px; }
.bw-hero2__text { font-size: 18px; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 26px; }
.bw-hero2__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.bw-hero2__ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding: 0; font-size: 14px; color: rgba(255,255,255,.75); }
.bw-hero2__ticks li::before { content: "\2713"; color: var(--bw-yellow); font-weight: 800; margin-right: 8px; }

/* "Find your bed" picker */
.bw-finder { background: #fff; color: var(--bw-text); border-radius: 22px; padding: 26px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.bw-finder__title { font-family: var(--bw-display); font-size: 26px; font-weight: 600; color: var(--bw-dark); }
.bw-finder__sub { font-size: 14px; color: var(--bw-gray); margin: 2px 0 16px; }
.bw-finder__group { border: 0; margin: 0 0 16px; padding: 0; }
.bw-finder__group legend { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--bw-gray); margin-bottom: 8px; }
.bw-finder__options, .bw-finder__sizes { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.bw-finder label { cursor: pointer; }
.bw-finder input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.bw-finder__options span, .bw-finder__sizes span { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 6px; border: 1.5px solid var(--bw-gray-light); border-radius: 12px; font-weight: 700; font-size: 14px; transition: all .15s ease; }
.bw-finder__sizes small { font-weight: 500; font-size: 11.5px; color: var(--bw-gray); }
.bw-finder input:checked + span { border-color: var(--bw-navy); background: var(--bw-blue-50); color: var(--bw-navy); box-shadow: inset 0 0 0 1px var(--bw-navy); }
.bw-finder input:focus-visible + span { outline: 2px solid var(--bw-navy); outline-offset: 2px; }
.bw-finder__xl { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin-top: 10px; color: var(--bw-gray); }
.bw-finder__help { display: block; text-align: center; margin-top: 12px; font-size: 14px; font-weight: 600; }

/* Departments with real category photos */
.bw-dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bw-dept-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bw-gray-light); border-radius: 18px; overflow: hidden; color: var(--bw-dark); transition: transform .2s ease, box-shadow .2s ease; }
.bw-dept-card:hover { transform: translateY(-4px); box-shadow: var(--bw-shadow-lg); color: var(--bw-navy); }
.bw-dept-card__media { aspect-ratio: 4/3; background: var(--bw-light); display: block; }
.bw-dept-card__media img { width: 100%; height: 100%; object-fit: cover; }
.bw-dept-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.bw-dept-card__body b { font-family: var(--bw-display); font-size: 20px; font-weight: 600; }
.bw-dept-card__body small { color: var(--bw-gray); font-size: 13px; }

/* Size scale: beds drawn to scale */
.bw-size-scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: end; }
.bw-size-scale__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 10px; background: #fff; border-radius: 16px; border: 1px solid var(--bw-gray-light); color: var(--bw-dark); transition: all .2s ease; }
.bw-size-scale__item:hover { border-color: var(--bw-navy); box-shadow: var(--bw-shadow-lg); transform: translateY(-3px); color: var(--bw-navy); }
.bw-size-scale__bed { position: relative; display: block; width: var(--w); height: 92px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #f3e9e2 0%, #e7d6cb 100%); border: 2px solid #d9c3b6; margin-bottom: 10px; }
.bw-size-scale__pillows { position: absolute; top: 8px; left: 8%; right: 8%; height: 16px; display: flex; gap: 6%; }
.bw-size-scale__pillows::before, .bw-size-scale__pillows::after { content: ""; flex: 1; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bw-size-scale__item b { font-family: var(--bw-display); font-size: 18px; }
.bw-size-scale__item small { color: var(--bw-gray); font-size: 12.5px; }
.bw-size-scale__item em { font-style: normal; font-size: 12.5px; color: var(--bw-text); line-height: 1.35; min-height: 34px; }
.bw-size-scale__count { font-size: 12px; font-weight: 700; color: var(--bw-navy); background: var(--bw-blue-50); padding: 3px 10px; border-radius: 999px; }

/* Comfort scale */
.bw-comfort { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bw-comfort__item { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; transition: all .2s ease; }
.bw-comfort__item:hover { background: rgba(255,255,255,.1); border-color: var(--bw-yellow); color: #fff; }
.bw-comfort__meter { display: flex; gap: 5px; margin-bottom: 6px; }
.bw-comfort__meter i { width: 26px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.18); }
.bw-comfort__meter i.on { background: var(--bw-yellow); }
.bw-comfort__item b { font-family: var(--bw-display); font-size: 22px; font-weight: 600; }
.bw-comfort__item small { color: rgba(255,255,255,.7); font-size: 14px; }
.bw-comfort__count { font-size: 12.5px; color: var(--bw-yellow); font-weight: 700; margin-top: 4px; }
.bw-comfort__more { margin-top: 18px; }
.bw-comfort__more a { color: var(--bw-yellow); font-weight: 600; }

/* Size-helper band */
.bw-sizeband { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 26px 32px; border-radius: 22px; background: var(--bw-blue-50); border: 1px solid var(--bw-blue-100); color: var(--bw-dark); }
.bw-sizeband:hover { color: var(--bw-dark); box-shadow: var(--bw-shadow-lg); }
.bw-sizeband__text b { display: block; font-family: var(--bw-display); font-size: 22px; font-weight: 600; margin-top: 4px; }
.bw-sizeband__art { display: flex; align-items: flex-end; gap: 6px; }
.bw-sizeband__art span { display: block; width: 26px; border-radius: 5px 5px 3px 3px; background: #fff; border: 2px solid var(--bw-navy); }
.bw-sizeband__art span:nth-child(1) { height: 30px; }
.bw-sizeband__art span:nth-child(2) { height: 42px; width: 36px; }
.bw-sizeband__art span:nth-child(3) { height: 54px; width: 46px; }

/* Showroom */
.bw-showroom { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.bw-showroom__media { min-height: 420px; border-radius: 24px; background: linear-gradient(160deg, #3a1a1d, #1a0b0c) center/cover no-repeat; position: relative; overflow: hidden; }
.bw-showroom__placeholder { position: absolute; inset: 22% 14% 18%; border-radius: 16px 16px 8px 8px; background: linear-gradient(180deg, #f3e9e2, #dcc6b8); box-shadow: 0 30px 50px -20px rgba(0,0,0,.6); }
.bw-showroom__placeholder span { position: absolute; top: 10%; width: 36%; height: 22%; border-radius: 10px; background: #fff; }
.bw-showroom__placeholder span:first-child { left: 9%; }
.bw-showroom__placeholder span:last-child { right: 9%; }
.bw-showroom__facts { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 12px; }
.bw-showroom__facts li { display: flex; flex-direction: column; font-size: 15px; color: var(--bw-text); }
.bw-showroom__facts b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--bw-gray); }

/* Pay later band */
.bw-paylater { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; padding: 36px 40px; border-radius: 24px; background: linear-gradient(135deg, var(--bw-dark) 0%, #4a0f12 100%); color: rgba(255,255,255,.8); }
.bw-paylater h2 { color: #fff; margin: 6px 0 10px; }
.bw-paylogos--paylater { justify-content: flex-end; }

/* Brands */
.bw-brand-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.bw-brand-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 16px; border-radius: 16px; border: 1px solid var(--bw-gray-light); background: #fff; color: var(--bw-dark); text-align: center; transition: all .2s ease; }
.bw-brand-tile:hover { border-color: var(--bw-navy); color: var(--bw-navy); }
.bw-brand-tile img { max-height: 44px; width: auto; }
.bw-brand-tile span { font-family: var(--bw-display); font-size: 19px; font-weight: 600; }
.bw-brand-tile small { color: var(--bw-gray); font-size: 12px; }

@media (max-width: 1100px) {
    .bw-hero2__inner, .bw-showroom, .bw-paylater { grid-template-columns: 1fr; }
    .bw-hero2.has-image::after { inset: 0; opacity: .35; }
    .bw-dept-grid { grid-template-columns: repeat(3, 1fr); }
    .bw-size-scale { grid-template-columns: repeat(3, 1fr); }
    .bw-comfort { grid-template-columns: repeat(2, 1fr); }
    .bw-brand-row { grid-template-columns: repeat(3, 1fr); }
    .bw-paylogos--paylater { justify-content: flex-start; }
}
@media (max-width: 720px) {
    .bw-hero2 { padding: 40px 0 48px; }
    .bw-dept-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .bw-size-scale { grid-template-columns: repeat(2, 1fr); }
    .bw-comfort { grid-template-columns: 1fr; }
    .bw-sizeband { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 22px; }
    .bw-brand-row { grid-template-columns: repeat(2, 1fr); }
    .bw-showroom__media { min-height: 260px; }
    .bw-paylater { padding: 26px 22px; }
}

/* ── Departments, round 2: feature card + cream cards with floating product photos ── */
.bw-dept-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 18px; }
.bw-dept-card { position: relative; border: 0; border-radius: 22px; background: radial-gradient(120% 90% at 50% 0%, #fff 0%, #f6efe8 55%, #efe4da 100%); box-shadow: 0 1px 0 rgba(36,17,19,.06), 0 18px 38px -30px rgba(36,17,19,.55); isolation: isolate; }
.bw-dept-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(36,17,19,.07); pointer-events: none; }
.bw-dept-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -28px rgba(36,17,19,.6); color: var(--bw-dark); }
.bw-dept-card__media { position: relative; flex: 1 1 auto; aspect-ratio: auto; min-height: 150px; background: none; display: flex; align-items: center; justify-content: center; padding: 22px 22px 0; }
.bw-dept-card__media img { width: 86%; height: 100%; max-height: 190px; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(36,17,19,.22)); transition: transform .35s ease; }
.bw-dept-card:hover .bw-dept-card__media img { transform: scale(1.05); }
.bw-dept-card__icon { width: 92px; height: 92px; color: var(--bw-navy); opacity: .85; }
.bw-dept-card__body { padding: 16px 20px 18px; gap: 3px; }
.bw-dept-card__body b { font-size: 22px; line-height: 1.15; }
.bw-dept-card__body small { font-size: 13.5px; color: var(--bw-charcoal); }
.bw-dept-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.bw-dept-card__count { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--bw-navy); background: #fff; border: 1px solid rgba(175,0,0,.18); border-radius: 999px; padding: 4px 11px; }
.bw-dept-card__go { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bw-dark); color: #fff; font-weight: 700; transition: background .2s, transform .2s; }
.bw-dept-card:hover .bw-dept-card__go { background: var(--bw-navy); transform: translateX(3px); }
/* Feature card: the biggest department, maroon, two by two */
.bw-dept-card.is-feature { grid-column: span 2; grid-row: span 2; background: radial-gradient(90% 80% at 80% 15%, rgba(175,0,0,.55), transparent 65%), linear-gradient(150deg, #3a1418 0%, #1c0b0d 100%); color: #fff; }
.bw-dept-card.is-feature .bw-dept-card__media { padding: 40px 40px 0; }
.bw-dept-card.is-feature .bw-dept-card__media img { max-height: 340px; width: 92%; filter: drop-shadow(0 30px 30px rgba(0,0,0,.45)); }
.bw-dept-card.is-feature .bw-dept-card__body { padding: 22px 30px 28px; }
.bw-dept-card.is-feature b { font-size: 36px; color: #fff; }
.bw-dept-card.is-feature small { font-size: 15.5px; color: rgba(255,255,255,.78); }
.bw-dept-card.is-feature .bw-dept-card__count { background: var(--bw-yellow); border-color: var(--bw-yellow); color: var(--bw-dark); font-size: 13px; padding: 6px 14px; }
.bw-dept-card.is-feature .bw-dept-card__go { background: #fff; color: var(--bw-dark); width: 46px; height: 46px; font-size: 18px; }
.bw-dept-card.is-feature:hover { color: #fff; }
.bw-dept-card.is-feature:hover .bw-dept-card__go { background: var(--bw-yellow); }
/* Wide cards close the last row: words left, picture right */
.bw-dept-card.is-wide { grid-column: span 2; flex-direction: row-reverse; align-items: stretch; }
.bw-dept-card.is-wide .bw-dept-card__media { flex: 0 0 46%; padding: 18px; }
.bw-dept-card.is-wide .bw-dept-card__body { flex: 1; justify-content: center; padding: 24px 26px; }
.bw-dept-card.is-wide b { font-size: 26px; }
@media (max-width: 1100px) {
  .bw-dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .bw-dept-card.is-feature { grid-row: auto; }
  .bw-dept-card.is-feature .bw-dept-card__media img { max-height: 260px; }
}
@media (max-width: 720px) {
  .bw-dept-grid { gap: 12px; }
  .bw-dept-card.is-wide { flex-direction: column; }
  .bw-dept-card.is-wide .bw-dept-card__media { flex: 1 1 auto; }
  .bw-dept-card__body b { font-size: 18px; }
  .bw-dept-card.is-feature b { font-size: 28px; }
  .bw-dept-card__body small { display: none; }
  .bw-dept-card.is-feature small { display: block; }
  .bw-dept-card__media { min-height: 120px; padding: 14px 14px 0; }
}

/* ── Brands, round 2: cream band, real breathing room, logo tiles that lift ── */
.bw-brands { background: linear-gradient(180deg, var(--bw-light) 0%, #fff 100%); padding: 72px 0 84px !important; border-top: 1px solid var(--bw-gray-light); }
.bw-brand-row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.bw-brand-tile { position: relative; min-height: 132px; padding: 22px 16px 18px; gap: 12px; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(36,17,19,.05), 0 14px 30px -24px rgba(36,17,19,.5); overflow: hidden; }
.bw-brand-tile::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--bw-navy); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.bw-brand-tile:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(36,17,19,.55); }
.bw-brand-tile:hover::before { transform: scaleX(1); }
.bw-brand-tile img { max-height: 54px; max-width: 78%; object-fit: contain; filter: grayscale(.15); transition: filter .2s, transform .2s; }
.bw-brand-tile:hover img { filter: none; transform: scale(1.04); }
.bw-brand-tile small { font-size: 12px; font-weight: 700; color: var(--bw-charcoal); background: var(--bw-light); border-radius: 999px; padding: 4px 12px; }
.bw-brand-tile:hover small { background: #fff1ee; color: var(--bw-navy); }
@media (max-width: 1100px) { .bw-brand-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .bw-brands { padding: 48px 0 56px !important; } .bw-brand-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .bw-brand-tile { min-height: 110px; } }
@media (max-width: 720px) { .bw-dept-card__count { white-space: nowrap; font-size: 11px; padding: 3px 9px; } .bw-dept-card__go { width: 30px; height: 30px; flex: 0 0 30px; } .bw-dept-card__foot { gap: 6px; } }
@media (max-width: 720px) { .bw-dept-card.is-feature .bw-dept-card__go { width: 42px; height: 42px; flex: 0 0 42px; } }

/* Room under the Pay your way band before the brands. */
.bw-section--paylater { padding-bottom: 72px !important; }
@media (max-width: 720px) { .bw-section--paylater { padding-bottom: 48px !important; } }
/* Photos with a white background melt into the cream cards (not on the dark feature card). */
.bw-dept-card:not(.is-feature) .bw-dept-card__media img { mix-blend-mode: multiply; filter: none; }

/* Departments, even grid: six cards, three by two, all the same size; photos blend into the cream. */
.bw-dept-grid--even { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-auto-rows: auto !important; gap: 20px; }
.bw-dept-grid--even .bw-dept-card { grid-column: auto !important; grid-row: auto !important; flex-direction: column !important; min-height: 0; }
.bw-dept-grid--even .bw-dept-card__media { height: 230px; min-height: 0; flex: 0 0 230px; padding: 26px 26px 0; }
.bw-dept-grid--even .bw-dept-card__media img { width: 100%; height: 100%; max-height: none; object-fit: contain; mix-blend-mode: multiply; filter: none; }
.bw-dept-grid--even .bw-dept-card__body { padding: 18px 22px 20px; }
.bw-dept-grid--even .bw-dept-card__body b { font-size: 24px; }
@media (max-width: 900px) { .bw-dept-grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .bw-dept-grid--even .bw-dept-card__media { height: 170px; flex-basis: 170px; padding: 16px 16px 0; } .bw-dept-grid--even .bw-dept-card__body b { font-size: 19px; } }
