/* BedPose overrides on top of Start Bootstrap "Creative" (MIT).
   Layout: template's full-bleed alternating bands; night hero, moonlit accents. */
:root {
  --night: #0F1630;      /* hero / dark bands */
  --dusk: #3E4F94;       /* primary */
  --moon: #E9B85C;       /* warm lamp accent, used sparingly */
  --linen: #F6F4EF;      /* light band */
  --ink: #1B2140;        /* body text */
  --mist: #5B6386;       /* secondary text */
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
body { background: #fff; color: var(--ink); font-family: var(--font-body); }
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; letter-spacing: -0.01em; }
p { line-height: 1.7; }
.container { padding-left: max(16px, env(safe-area-inset-left, 0px)) !important; padding-right: max(16px, env(safe-area-inset-right, 0px)) !important; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--moon); outline-offset: 3px; }

/* nav */
#mainNav { padding-top: calc(env(safe-area-inset-top, 0px) + 1rem) !important; }
#mainNav .navbar-brand { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: .5rem; }
#mainNav .navbar-brand svg { flex: none; }
#mainNav .nav-cta { background: var(--moon); color: var(--night) !important; border-radius: 999px; padding: .55rem 1.1rem !important; margin-left: .5rem; }
@media (min-width: 992px) {
  #mainNav .navbar-brand { color: #fff; }
  #mainNav.navbar-shrink { background-color: rgba(15,22,48,.94); backdrop-filter: blur(8px); }
  #mainNav.navbar-shrink .navbar-brand, #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link { color: rgba(255,255,255,.85); }
  #mainNav.navbar-shrink .navbar-brand:hover, #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link:hover { color: #fff; }
  #mainNav .navbar-nav .nav-item:last-child .nav-link.nav-cta { padding-right: 1.1rem !important; }
}

/* hero */
header.masthead {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 78% 18%, rgba(233,184,92,.18), transparent 60%),
              linear-gradient(180deg, #0B1128 0%, #16204A 62%, #24336B 100%);
  padding-top: 9rem; padding-bottom: 5rem;
}
@media (min-width: 992px) { header.masthead { height: auto; min-height: 0; padding-top: 10rem; padding-bottom: 7rem; } }
.stars { position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 64%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 14%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 48%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 70%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 80%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 86%, rgba(255,255,255,.6) 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .55 } to { opacity: 1 } }
.moon { position: absolute; width: 140px; height: 140px; right: 9%; top: 18%; border-radius: 50%;
  box-shadow: -26px 14px 0 0 var(--moon); transform: rotate(-18deg); opacity: .9; pointer-events: none; }
@media (max-width: 767px) { .moon { width: 84px; height: 84px; right: 6%; top: 13%; box-shadow: -16px 9px 0 0 var(--moon); } }
.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--moon); }
header.masthead h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem) !important; line-height: 1.08; color: #fff; }
header.masthead h1 em { font-style: normal; color: var(--moon); }
.text-white-75 { color: rgba(255,255,255,.78) !important; }
hr.divider { background-color: var(--moon); height: .2rem; max-width: 3.25rem; opacity: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.btn-moon { background: var(--moon); color: var(--night); border: 0; }
.btn-moon:hover { background: #F2C878; color: var(--night); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }
.btn-xl { font-family: var(--font-body); letter-spacing: .04em; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; justify-content: center; margin-top: 2.6rem; color: rgba(255,255,255,.7); font-size: .92rem; }
.trust b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

/* about band */
.bg-primary { background-color: var(--dusk) !important; }
.lede { font-family: var(--font-display); font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.3; color: #fff; }

/* problems */
.problem { display: flex; flex-direction: column; align-items: center; gap: .5rem; height: 100%; padding: 1.6rem 1rem; border-radius: 14px; text-decoration: none; color: var(--ink); transition: background .2s; }
.problem:hover { background: var(--linen); color: var(--ink); }
.problem .ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #ECEFFA; color: var(--dusk); }
.problem h3 { font-size: 1.3rem; margin: .5rem 0 0; }
.problem p { color: var(--mist); margin: 0; font-size: .97rem; }
.problem .go { margin-top: auto; padding-top: .6rem; font-weight: 700; font-size: .9rem; color: var(--dusk); }

/* positions grid */
.positions { background: var(--linen); }
.pos-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
@media (max-width: 991px) { .pos-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .pos-grid { grid-template-columns: minmax(0,1fr); } }
.pos { background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border: 1px solid #E6E2D8; transition: transform .2s, box-shadow .2s; }
.pos:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,22,48,.10); color: var(--ink); }
.pos .art { background: linear-gradient(180deg, #1A2550, #2C3C78); aspect-ratio: 16 / 9; max-width: 100%; display: grid; place-items: center; }
.pos .art svg { width: 78%; height: auto; }
.pos .body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; }
.pos h3 { font-size: 1.25rem; margin: 0; }
.pos p { margin: 0; color: var(--mist); font-size: .95rem; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.tag { font-size: .74rem; font-weight: 700; letter-spacing: .03em; padding: .22rem .55rem; border-radius: 999px; }
.tag.good { background: #E3F2E8; color: #1F6B3E; }
.tag.warn { background: #FBEBD6; color: #8A5310; }

/* finder */
.finder { background: var(--night); color: #fff; }
.finder-card { background: #18214A; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2.25rem); max-width: 760px; margin: 0 auto; }
.progress-dots { display: flex; gap: .4rem; margin-bottom: 1.2rem; }
.progress-dots span { height: 4px; flex: 1; border-radius: 4px; background: rgba(255,255,255,.15); }
.progress-dots span.on { background: var(--moon); }
.q-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--moon); font-weight: 700; }
.q-title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: .3rem 0 1.2rem; color: #fff; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; }
@media (max-width: 560px) { .opts { grid-template-columns: minmax(0,1fr); } }
.opt { text-align: left; background: rgba(255,255,255,.04); color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: .9rem 1rem; font: inherit; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.opt small { display: block; font-weight: 400; color: rgba(255,255,255,.62); margin-top: .15rem; }
.opt:hover { border-color: var(--moon); background: rgba(233,184,92,.08); }
.finder-back { background: none; border: 0; color: rgba(255,255,255,.65); font: inherit; margin-top: 1rem; padding: 0; cursor: pointer; }
.finder-back:hover { color: #fff; }
.result h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; margin: .3rem 0 .6rem; }
.result p { color: rgba(255,255,255,.8); }
.result ul { color: rgba(255,255,255,.85); padding-left: 1.1rem; }
.result li { margin-bottom: .35rem; }
.pick { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; background: rgba(233,184,92,.1); border: 1px solid rgba(233,184,92,.35); border-radius: 14px; padding: 1rem 1.2rem; margin-top: 1.2rem; }
.pick .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--moon); font-weight: 700; }
.pick .v { font-weight: 700; color: #fff; }
.note { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: 1rem; }

/* guides */
.guide { display: flex; flex-direction: column; height: 100%; border: 1px solid #E6E2D8; border-radius: 16px; padding: 1.4rem; text-decoration: none; color: var(--ink); transition: border-color .2s; }
.guide:hover { border-color: var(--dusk); color: var(--ink); }
.guide .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dusk); font-weight: 700; }
.guide h3 { font-size: 1.3rem; margin: .5rem 0; }
.guide p { color: var(--mist); font-size: .95rem; margin: 0; }
.guide .meta { margin-top: auto; padding-top: 1rem; font-size: .85rem; color: var(--mist); }

/* newsletter */
.letter { background: var(--dusk); color: #fff; }
.letter-form { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; max-width: 520px; margin: 1.4rem auto 0; }
.letter-form input { flex: 1 1 240px; min-width: 0; border-radius: 999px; border: 0; padding: .9rem 1.2rem; font: inherit; }
.letter-form button { border-radius: 999px; }
.thanks { margin-top: 1rem; font-weight: 600; color: var(--moon); }

footer.site { background: #0B1128; color: rgba(255,255,255,.65); font-size: .88rem; }
footer.site a { color: rgba(255,255,255,.85); }
footer.site .brand { font-family: var(--font-display); color: #fff; font-size: 1.3rem; }

@media (prefers-reduced-motion: reduce) { .stars { animation: none; } * { transition: none !important; scroll-behavior: auto !important; } }

/* ---- inner pages ---- */
.inner #mainNav { background-color: rgba(15,22,48,.96); }
@media (min-width: 992px) { .inner #mainNav { background-color: rgba(15,22,48,.96); } .inner #mainNav .navbar-nav .nav-item .nav-link { color: rgba(255,255,255,.85); } }
.page-hero { background: linear-gradient(180deg, #0B1128 0%, #1C2858 100%); color: #fff; padding-top: 8.5rem; padding-bottom: 3.5rem; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.12; color: #fff; max-width: 46rem; }
.page-hero .sub { color: rgba(255,255,255,.78); max-width: 40rem; font-size: 1.08rem; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.updated { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: 1rem; }
.article { max-width: 46rem; margin: 0 auto; }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 2.6rem; }
.article h3 { font-size: 1.25rem; margin-top: 1.6rem; }
.article p, .article li { font-size: 1.05rem; color: #2A3054; }
.answer { background: #ECEFFA; border-left: 4px solid var(--dusk); border-radius: 0 12px 12px 0; padding: 1.1rem 1.3rem; margin: 0 0 1.6rem; }
.answer .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dusk); font-weight: 700; display: block; margin-bottom: .3rem; }
.answer p { margin: 0; font-size: 1.08rem; color: var(--ink); }
.picks { display: grid; gap: 1rem; margin: 1.2rem 0 1rem; }
.prod { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem 1.4rem; align-items: center; border: 1px solid #E6E2D8; border-radius: 16px; padding: 1.2rem 1.3rem; background: #fff; }
@media (max-width: 640px) { .prod { grid-template-columns: minmax(0,1fr); } }
.prod .rank { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #8A5310; }
.prod h3 { margin: .2rem 0 .35rem; font-size: 1.2rem; }
.prod p { margin: 0 0 .4rem; font-size: .98rem; color: var(--mist); }
.prod ul { margin: 0; padding-left: 1.1rem; }
.prod li { font-size: .95rem; color: #2A3054; margin-bottom: .2rem; }
.btn-buy { background: var(--moon); color: var(--night); font-weight: 700; border-radius: 999px; padding: .8rem 1.3rem; white-space: nowrap; border: 0; }
.btn-buy:hover { background: #F2C878; color: var(--night); }
.disclose { font-size: .85rem; color: var(--mist); background: var(--linen); border-radius: 10px; padding: .7rem 1rem; }
.faq details { border-bottom: 1px solid #E6E2D8; padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq details p { margin: .6rem 0 0; }
.cta-band { background: var(--night); color: #fff; border-radius: 18px; padding: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin: 2.4rem 0; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }
.cta-band strong { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: #fff; display: block; }
.sources { font-size: .9rem; color: var(--mist); }
.sources a { color: var(--dusk); }
.related { display: flex; flex-wrap: wrap; gap: .6rem; }
.related a { border: 1px solid #D9DCEB; border-radius: 999px; padding: .45rem .9rem; text-decoration: none; color: var(--dusk); font-weight: 600; font-size: .92rem; }
.related a:hover { border-color: var(--dusk); }
.toppicks { background: var(--linen); }

/* ---- home: ask → answer → buy ---- */
header.masthead.hero-ask { padding-top: 7.5rem; padding-bottom: 4rem; }
@media (min-width: 992px) { header.masthead.hero-ask { padding-top: 8.5rem; padding-bottom: 5rem; } }
.ask { max-width: 860px; margin: 0 auto; text-align: center; }
.ask h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem) !important; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1.6rem 0 1.4rem; }
.chip { font: inherit; font-weight: 700; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: .75rem 1.2rem; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--moon); }
.chip[aria-pressed="true"] { background: var(--moon); border-color: var(--moon); color: var(--night); }
.res { text-align: left; background: rgba(255,255,255,.97); color: var(--ink); border-radius: 20px; padding: clamp(1.1rem, 2.6vw, 1.6rem); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.res-empty { text-align: center; color: var(--mist); padding: 1.2rem 0; }
.res-answer { background: #ECEFFA; border-radius: 12px; padding: .9rem 1.1rem; }
.res-answer .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--dusk); }
.res-answer p { margin: .25rem 0 0; font-size: 1.04rem; line-height: 1.55; color: var(--ink); }
.res-picks { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; margin-top: 1rem; }
@media (max-width: 767px) { .res-picks { grid-template-columns: minmax(0,1fr); } }
.res-pick { display: flex; flex-direction: column; gap: .25rem; border: 1px solid #E2E4EF; border-radius: 14px; padding: 1rem; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.res-pick:hover { border-color: var(--dusk); transform: translateY(-2px); color: var(--ink); }
.res-pick.top { border: 2px solid var(--moon); }
.res-pick .r { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #8A5310; }
.res-pick .n { font-weight: 700; font-size: 1.05rem; }
.res-pick .w { font-size: .9rem; color: var(--mist); line-height: 1.45; }
.res-pick .b { margin-top: auto; padding-top: .6rem; font-weight: 700; color: var(--dusk); }
.res-pick.top .b { color: #8A5310; }
.res-more { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--dusk); }

/* mobile nav + moon fixes */
@media (max-width: 991px) {
  #mainNav { background-color: #0F1630 !important; box-shadow: none; }
  #mainNav .navbar-brand { color: #fff; }
  #mainNav .navbar-nav .nav-item .nav-link { color: rgba(255,255,255,.85); }
  #mainNav .navbar-toggler { border-color: rgba(255,255,255,.3); }
  .moon { width: 56px; height: 56px; right: 5%; top: 92px; box-shadow: -11px 6px 0 0 var(--moon); opacity: .7; }
}

/* ===== v2: beds hero with overlay ask box ===== */
.beds-hero { background: linear-gradient(180deg, #0B1128 0%, #16204A 70%, #1E2B5E 100%); padding-top: 5.5rem; padding-bottom: 2.5rem; overflow: hidden; }
.beds-stage { display: grid; }
.beds-grid, .ask-wrap { grid-area: 1 / 1; }
.beds-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; padding: 1rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); max-width: 1320px; width: 100%; margin: 0 auto; opacity: .55; }
.bedcard { margin: 0; background: linear-gradient(180deg, #1D2A5A, #26356E); border-radius: 18px; padding: .8rem .8rem .5rem; }
.bedart svg { width: 100%; height: auto; display: block; }
.bedcard figcaption { color: rgba(255,255,255,.75); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center; padding-top: .2rem; }
.ask-wrap { align-self: center; justify-self: center; z-index: 2; padding-block: 1rem; }
.ask-box { max-width: 760px; margin: 0 auto; background: rgba(255,255,255,.97); border-radius: 22px; padding: clamp(1.25rem, 3.5vw, 2.4rem); box-shadow: 0 30px 80px rgba(5,8,24,.55); text-align: center; }
.ask-box h1 { color: var(--night); font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.12; margin: 0 0 1.1rem; }
.ask-box h1 em { font-style: normal; color: #B07A1B; }
.ask-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.ask-row input { flex: 1 1 260px; min-width: 0; font: inherit; font-size: 1.08rem; padding: 1rem 1.2rem; border-radius: 14px; border: 2px solid #D5D9EC; color: var(--ink); background: #fff; }
.ask-row input:focus { outline: none; border-color: var(--dusk); }
.ask-row .btn { border-radius: 14px; padding: 1rem 1.6rem; font-weight: 700; font-size: 1.05rem; }
.ask-msg { margin: .9rem 0 0; color: #8A5310; font-weight: 600; }
.ask-box .chips { margin: 1rem 0 0; }
.ask-box .chip { color: var(--dusk); background: #F1F3FB; border: 1px solid #DCE0F0; padding: .5rem .95rem; font-size: .92rem; }
.ask-box .chip:hover { border-color: var(--dusk); background: #E6EAF8; }
@media (max-width: 767px) {
  .beds-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; }
  .beds-hero { padding-top: 5rem; }
}

/* product cards */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.pgrid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 860px) { .pgrid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .pgrid, .pgrid.two { grid-template-columns: minmax(0,1fr); } }
.pcard { display: flex; flex-direction: column; gap: .3rem; border: 1px solid #E2E4EF; border-radius: 16px; padding: 1.2rem; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, transform .15s; }
.pcard:hover { border-color: var(--dusk); transform: translateY(-2px); color: var(--ink); }
.pcard .r { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #8A5310; }
.pcard .n { font-family: var(--font-display); font-size: 1.2rem; }
.pcard .w { font-size: .93rem; color: var(--mist); line-height: 1.5; }
.pcard .b { margin-top: auto; padding-top: .6rem; font-weight: 700; color: var(--dusk); }

/* product page */
.phero { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 2rem; align-items: center; }
@media (max-width: 860px) { .phero { grid-template-columns: minmax(0,1fr); } }
.you-said { background: rgba(233,184,92,.14); border: 1px solid rgba(233,184,92,.4); color: #fff; border-radius: 12px; padding: .7rem 1rem; max-width: 46rem; }
.buybox { display: flex; flex-direction: column; gap: .6rem; background: #fff; border-radius: 18px; padding: 1.2rem; box-shadow: 0 18px 40px rgba(5,8,24,.25); }
.buybox .btn { width: 100%; border-radius: 12px; font-weight: 700; padding: .85rem 1rem; }
.btn-cart { background: var(--dusk); color: #fff; border: 0; }
.btn-cart:hover { background: #2F3D76; color: #fff; }
.btn-cont { background: transparent; color: var(--dusk); border: 2px solid #D5D9EC; font-weight: 700; border-radius: 12px; }
.btn-cont:hover { border-color: var(--dusk); color: var(--dusk); }
.added { margin: 0; font-size: .9rem; color: #1F6B3E; font-weight: 600; text-align: center; }
.added a { color: #1F6B3E; }
.cta-band .buybox { min-width: 0; width: 100%; max-width: 320px; box-shadow: none; }
.twocol { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
@media (max-width: 640px) { .twocol { grid-template-columns: minmax(0,1fr); } }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.8rem; margin-bottom: .55rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #ECEFFA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%233E4F94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.ticks.good li::before { background-color: #E3F2E8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231F6B3E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.prod-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.prod-btns .btn { border-radius: 999px; padding: .7rem 1.2rem; }
.prod h3 a { color: var(--ink); text-decoration: none; }
.prod h3 a:hover { color: var(--dusk); }
.cart-link { position: relative; color: rgba(255,255,255,.85); display: inline-flex; align-items: center; }
.cart-link:hover { color: #fff; }
.cart-count { position: absolute; top: -6px; right: -10px; background: var(--moon); color: var(--night); font-size: .7rem; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }

/* reply step */
.reply { text-align: left; margin-top: 1.2rem; background: #F4F6FC; border: 1px solid #DCE0F0; border-radius: 16px; padding: 1.1rem 1.2rem; }
.reply-who { display: flex; align-items: center; gap: .45rem; font-family: var(--font-display); color: var(--night); font-size: 1.05rem; }
.reply-text { margin: .5rem 0 .9rem; font-size: 1.04rem; line-height: 1.6; color: var(--ink); }
.reply-timer { display: flex; align-items: center; gap: .8rem; font-size: .85rem; font-weight: 700; color: var(--mist); font-variant-numeric: tabular-nums; }
.reply-timer span { white-space: nowrap; }
.reply-timer .bar { flex: 1; height: 6px; border-radius: 6px; background: #DCE0F0; overflow: hidden; }
.reply-timer .bar i { display: block; height: 100%; width: 0; background: var(--moon); transition: width .2s linear; }
.reply-go { margin: .9rem 0 0; font-weight: 700; color: #8A5310; }
.reply-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.reply-actions .btn { border-radius: 12px; font-weight: 700; padding: .7rem 1.1rem; }
@media (prefers-reduced-motion: reduce) { .reply-timer .bar i { transition: none; } }
.beds-grid { opacity: .7; }
@media (max-width: 767px) {
  .beds-stage { display: block; }
  .beds-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: .45rem; opacity: .9; padding-bottom: 0; }
  .bedcard { padding: .45rem .45rem .25rem; border-radius: 12px; }
  .bedcard figcaption { font-size: .62rem; letter-spacing: .06em; }
  .ask-wrap { margin-top: -2.2rem; position: relative; }
  .ask-row .btn { flex: 1 1 100%; }
}

/* photos */
.bedcard { padding: 0; overflow: hidden; }
.bedart img { display: block; width: 100%; height: auto; aspect-ratio: 760 / 334; object-fit: cover; max-width: 100%; }
.bedcard figcaption { padding: .45rem 0 .5rem; }
.beds-grid { opacity: .85; }
.pfig { margin: 0 0 1.8rem; }
.pfig img { width: 100%; height: auto; aspect-ratio: 760 / 334; object-fit: cover; border-radius: 16px; display: block; max-width: 100%; }
.pfig figcaption { font-size: .85rem; color: var(--mist); margin-top: .5rem; }
@media (max-width: 767px) { .bedcard figcaption { padding: .25rem 0 .3rem; } }

/* ===== slim search bar above the photos (no overlay) ===== */
.beds-stage { display: flex; flex-direction: column; gap: 1rem; }
.ask-wrap { order: -1; align-self: stretch; justify-self: auto; padding-block: 0; max-width: 1320px; width: 100%; margin: 0 auto; }
.ask-box { max-width: none; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 1.4rem; row-gap: .7rem; padding: 1rem 1.3rem; border-radius: 18px; text-align: left; box-shadow: 0 14px 40px rgba(5,8,24,.4); }
.ask-box h1 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); margin: 0; white-space: nowrap; }
.ask-row input { padding: .8rem 1.1rem; font-size: 1rem; }
.ask-row .btn { padding: .8rem 1.4rem; }
.ask-box .chips { grid-column: 1 / -1; justify-content: flex-start; margin: 0; gap: .45rem; }
.ask-box .chip { padding: .35rem .8rem; font-size: .85rem; }
.ask-msg, .reply { grid-column: 1 / -1; }
.ask-msg { margin: 0; }
.reply { margin-top: 0; }
.beds-grid { opacity: 1; padding-top: 0; }
@media (max-width: 991px) {
  .ask-box { grid-template-columns: minmax(0, 1fr); }
  .ask-box h1 { white-space: normal; text-align: center; }
  .ask-box .chips { justify-content: center; }
}
@media (max-width: 767px) {
  .beds-stage { display: flex; }
  .ask-wrap { margin-top: 0; }
  .beds-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .ask-box { padding: .85rem; row-gap: .6rem; }
  .ask-box h1 { font-size: 1.1rem; }
  .ask-row { flex-wrap: nowrap; }
  .ask-row input { flex: 1 1 auto; padding: .7rem .9rem; font-size: 16px; }
  .ask-row .btn { flex: 0 0 auto; padding: .7rem 1rem; }
  .ask-box .chip { padding: .3rem .7rem; font-size: .8rem; }
}

/* ===== 8-photo grid, clickable cards, kids ribbon, language switch ===== */
.beds-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 991px) { .beds-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
a.bedcard { position: relative; display: block; text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s; }
a.bedcard:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.35); }
a.bedcard:focus-visible { outline: 3px solid var(--moon); outline-offset: 3px; }
.bedcard .cap { display: block; color: rgba(255,255,255,.85); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: .45rem 0 .5rem; }
@media (max-width: 767px) { .bedcard .cap { font-size: .66rem; padding: .3rem 0 .35rem; } }
.ribbon { position: absolute; top: 18px; left: -42px; z-index: 2; width: 160px; transform: rotate(-45deg); text-align: center; color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .32rem 0; box-shadow: 0 3px 8px rgba(0,0,0,.3); pointer-events: none; }
.ribbon.pink { background: #E0568C; }
.ribbon.blue { background: #2F7FD8; }
@media (max-width: 767px) { .ribbon { top: 12px; left: -46px; width: 150px; font-size: .56rem; padding: .25rem 0; } }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 30px; padding: 0 .55rem; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-decoration: none; }
.lang-switch:hover { background: rgba(255,255,255,.12); color: #fff; }
.ribbon { top: 30px; left: -50px; width: 200px; font-size: .62rem; letter-spacing: .05em; padding: .3rem 0; }
@media (max-width: 767px) { .ribbon { top: 22px; left: -50px; width: 170px; font-size: .5rem; padding: .22rem 0; } }
.prod-btns { justify-content: flex-end; }
@media (max-width: 640px) { .prod-btns { justify-content: flex-start; } .prod-btns .btn { flex: 1 1 auto; } }
/* product rows on problem pages: text on top, four buttons in one row below */
.picks .prod { grid-template-columns: minmax(0,1fr); }
.picks .prod-btns { justify-content: flex-start; }
.picks .prod-btns .btn { padding: .6rem 1.05rem; font-size: .92rem; }
@media (max-width: 640px) { .picks .prod-btns .btn { flex: 1 1 calc(50% - .5rem); } }
.prod-btns .btn { font-weight: 700; border-radius: 999px; white-space: nowrap; }
@media (max-width: 640px) { .picks .prod-btns .btn { font-size: .84rem; padding: .6rem .7rem; } }
.backbar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.back-btn { display: inline-flex; align-items: center; gap: .25rem; color: #fff; text-decoration: none; font-weight: 600; font-size: .74rem; padding: .26rem .65rem .26rem .5rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.06); }
.back-btn svg { width: 12px; height: 12px; }
.back-btn:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }

/* ===== product photos ===== */
.pcard.has-img { padding: 0; overflow: hidden; }
.pcard .pimg { display: block; margin: 0 0 .4rem; aspect-ratio: 3 / 2; overflow: hidden; background: #16204A; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: 100%; transition: transform .35s; }
.pcard:hover .pimg img { transform: scale(1.04); }
.pcard.has-img .r, .pcard.has-img .n, .pcard.has-img .w { padding: 0 1.2rem; }
.pcard.has-img .b { padding: .6rem 1.2rem 1.2rem; }
.phero-img { border-radius: 18px; overflow: hidden; margin-bottom: 1.2rem; max-width: 560px; aspect-ratio: 3 / 2; box-shadow: 0 18px 40px rgba(5,8,24,.35); }
.phero-img img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: 100%; }
.prod.has-thumb { grid-template-columns: 132px minmax(0,1fr); align-items: start; }
.prod.has-thumb .prod-btns { grid-column: 1 / -1; }
.pthumb { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 2; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: 100%; }
@media (max-width: 640px) { .prod.has-thumb { grid-template-columns: 96px minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { .pcard .pimg img { transition: none; } }

/* ===== goes well with ===== */
.pairs-box { background: var(--linen); border-radius: 18px; padding: 1.3rem; margin-bottom: 2rem; }
.pairs-box h2 { font-size: 1.35rem; margin-bottom: .2rem; }
.pairs-sub { color: var(--mist); font-size: .95rem; margin: 0 0 1rem; }
.pairs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; }
@media (max-width: 860px) { .pairs { grid-template-columns: minmax(0,1fr); } }
.pair { background: #fff; border: 1px solid #E6E2D8; border-radius: 14px; padding: .8rem; display: flex; flex-direction: column; gap: .55rem; }
.pair.has-thumb { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: .55rem .75rem; align-items: start; }
.pair.has-thumb .prod-btns { grid-column: 1 / -1; }
@media (max-width: 860px) { .pair { display: grid; grid-template-columns: minmax(0,1fr); } .pair.has-thumb { grid-template-columns: 96px minmax(0,1fr); } }
.pair-txt { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.pair-n { font-family: var(--font-display); color: var(--ink); text-decoration: none; font-size: 1.05rem; line-height: 1.25; }
.pair-n:hover { color: var(--dusk); }
.pair-w { font-size: .85rem; color: var(--mist); line-height: 1.4; }
.pair .prod-btns { justify-content: flex-start; gap: .4rem; }
.pair .prod-btns .btn { flex: 1 1 auto; padding: .5rem .7rem; font-size: .85rem; }
.pairs-box .pthumb { aspect-ratio: 3 / 2; }
@media (min-width: 861px) {
  .pair.has-thumb { display: flex; flex-direction: column; }
  .pair.has-thumb .pthumb { width: 100%; }
}
.pairs .pthumb { border-radius: 10px; }
.pair .prod-btns { margin-top: auto; }
.prodcard .bedart img { object-position: 50% 62%; }
.ribbon.new { background: var(--moon); color: var(--night); }
.prod-btns[data-product]::after { content: "(Amazon)"; flex-basis: 100%; font-size: .72rem; line-height: 1; color: var(--mist, #8a93ad); margin-top: -.15rem; padding-left: .35rem; }
.ask-box h1 .h1-kw { display: block; margin-top: .35rem; font-family: Figtree, system-ui, sans-serif; font-size: .82rem; font-weight: 600; line-height: 1.35; letter-spacing: .01em; color: var(--mist, #5B6386); }
.pick-badge { display: inline-flex; align-items: center; gap: .3rem; background: var(--moon, #E9B85C); color: #1d2233; font-weight: 700; font-size: .72rem; letter-spacing: .02em; padding: .22rem .6rem; border-radius: 999px; margin: 0 .5rem .4rem 0; vertical-align: middle; }
.pick-badge::before { content: "★"; font-size: .7rem; }
.pick-badge.sm { font-size: .64rem; padding: .12rem .45rem; margin: 0 0 0 .35rem; text-transform: none; }
.trust-line { flex-basis: 100%; margin: .55rem 0 0; font-size: .78rem; font-weight: 600; color: var(--mist, #5B6386); }
.trust-line::before { content: "🔒 "; }
.bp-prep { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; background: rgba(15,22,48,.72); backdrop-filter: blur(3px); padding: 16px; }
.bp-prep-box { background: #fff; color: #1d2233; border-radius: 18px; padding: 1.8rem 1.6rem; max-width: 360px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.bp-prep-logo { font-family: "Young Serif", serif; font-size: 1.35rem; margin-bottom: .6rem; }
.bp-prep-title { font-weight: 700; font-size: 1.05rem; margin: 0 0 .35rem; }
.bp-prep-sub { color: #5B6386; margin: 0 0 1rem; font-size: .92rem; }
.bp-prep-bar { height: 6px; border-radius: 99px; background: #eef0f7; overflow: hidden; }
.bp-prep-bar span { display: block; height: 100%; width: 0; background: #E9B85C; animation: bpfill 1.4s ease forwards; }
@keyframes bpfill { to { width: 100%; } }
.store-switch { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff; border-radius: 999px; font-size: .74rem; font-weight: 600; padding: .3rem .7rem; white-space: nowrap; cursor: pointer; }
.store-switch:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.store-switch.is-tr { border-color: var(--moon, #E9B85C); }
@media (max-width: 420px) { .store-switch { font-size: .66rem; padding: .25rem .5rem; } }
.navbar .nav-link { white-space: nowrap; }
@media (max-width: 480px) {
  #mainNav .navbar-brand { font-size: 1.1rem; margin-right: .25rem; }
  #mainNav .navbar-brand svg { width: 20px; height: 20px; }
  #mainNav .navbar-toggler { padding: .2rem .4rem; font-size: 1rem; }
  #mainNav .d-lg-none.gap-2 { gap: .35rem !important; margin-right: .35rem !important; }
  .store-switch { font-size: .6rem; padding: .22rem .45rem; }
  #mainNav .lang-switch { font-size: .7rem; padding: .2rem .45rem; }
}
