/* ═══════════════════════════════════════════════════════════
   Bedworld design layer — loaded after theme.css.
   Warm bedroom feel: Bedworld red, deep maroon, cream, soft gold,
   serif display headings (Fraunces) over Inter body text.
   ═══════════════════════════════════════════════════════════ */

body { background: #fff; color: var(--bw-text); }
h1, h2, h3, .bw-section-title, .bw-newsletter__title, .bw-hero__title {
    font-family: var(--bw-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--bw-dark);
}
.bw-eyebrow, .bw-section-eyebrow {
    font-family: var(--bw-font);
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    color: var(--bw-navy);
}

/* Buttons: softer, rounder */
.bw-btn { border-radius: 999px; text-transform: none; letter-spacing: .01em; font-weight: 700; }
.bw-btn--primary { box-shadow: 0 10px 24px -12px rgba(175,0,0,.7); }
.bw-btn--gold { background: var(--bw-yellow); border-color: var(--bw-yellow); color: var(--bw-dark); }
.bw-btn--gold:hover { background: var(--bw-yellow-hover); border-color: var(--bw-yellow-hover); color: var(--bw-dark); }
.bw-btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.bw-btn--ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Promo + top bar ── */
.bw-promo-bar { background: var(--bw-yellow); color: var(--bw-dark); }
.bw-promo-bar a { color: var(--bw-dark); }
.bw-top-bar { background: var(--bw-dark); }
.bw-top-bar a { color: rgba(255,255,255,.82); }
.bw-top-bar a:hover { color: var(--bw-yellow); }
.bw-top-bar__right { display: flex; gap: 22px; }

/* ── Header ── */
.bw-header { background: #fff; box-shadow: 0 1px 0 var(--bw-gray-light), 0 10px 26px rgba(36,17,19,.06); }
.bw-logo-img { width: 210px; height: auto; }
.bw-search-input { border-radius: 999px; border-color: var(--bw-gray-light); background: var(--bw-light); }
.bw-search-input:focus { border-color: var(--bw-navy); background: #fff; }
.bw-search-btn { border-radius: 999px; background: var(--bw-navy); }
.bw-action { color: var(--bw-dark); }
.bw-action:hover { color: var(--bw-navy); }
.bw-badge { background: var(--bw-navy); color: #fff; }

/* ── Main nav: deep maroon bar ── */
.bw-nav { background: var(--bw-dark); }
.bw-nav__menu > li > a:hover, .bw-nav__menu > li.current-menu-item > a { background: rgba(255,255,255,.08); color: #fff; }
.bw-nav__menu > li.bw-mega-menu-parent > a { background: var(--bw-navy); }
.bw-nav__specials > a { color: var(--bw-yellow) !important; font-weight: 700; }

/* ── Mega menu: departments · sizes · brands · help ── */
.bw-mega-menu__inner { display: grid; grid-template-columns: 1.4fr 1.1fr .8fr 1fr; gap: 34px; }
.bw-mega__title { font-family: var(--bw-display); font-size: 18px; font-weight: 600; color: var(--bw-dark); text-transform: none; letter-spacing: 0; }
.bw-mega__sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.bw-size-chip { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--bw-gray-light); border-radius: 12px; color: var(--bw-dark); transition: all .18s ease; }
.bw-size-chip b { font-size: 14.5px; }
.bw-size-chip small { font-size: 12px; color: var(--bw-gray); }
.bw-size-chip:hover { border-color: var(--bw-navy); background: var(--bw-blue-50); color: var(--bw-navy); }
.bw-mega__brands { list-style: none; display: grid; gap: 6px; }
.bw-mega__brands a { display: flex; justify-content: space-between; color: var(--bw-text); padding: 5px 0; border-bottom: 1px dashed var(--bw-gray-light); }
.bw-mega__brands a span { color: var(--bw-text-light); font-size: 12px; }
.bw-mega__brands a:hover { color: var(--bw-navy); }

/* ── Trust strip ── */
.bw-trust { background: var(--bw-light); border-top: 1px solid var(--bw-gray-light); }
.bw-trust__item svg { color: var(--bw-navy); }

/* ── Newsletter ── */
.bw-newsletter { background: linear-gradient(135deg, var(--bw-navy) 0%, #7a0000 100%); color: #fff; }
.bw-newsletter__title { color: #fff; }

/* ── Footer ── */
.bw-footer { background: var(--bw-dark); color: rgba(255,255,255,.72); }
.bw-footer__inner { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; }
.bw-footer-title { color: #fff; font-family: var(--bw-display); font-weight: 600; font-size: 18px; text-transform: none; letter-spacing: 0; }
.bw-footer-title--spaced { margin-top: 22px; }
.bw-footer a { color: rgba(255,255,255,.8); }
.bw-footer a:hover { color: var(--bw-yellow); }
.bw-footer-contact li span { color: rgba(255,255,255,.5); font-size: 13px; }
.bw-footer-hours { font-size: 13px; line-height: 1.5; }
.bw-footer__logo { width: 200px; height: auto; margin-bottom: 14px; }
.bw-footer__pay { border-top: 1px solid rgba(255,255,255,.08); padding: 26px 0; }
.bw-footer__pay-title { color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.bw-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }

/* ── Payment badges (footer, product page, cart) ── */
.bw-paylogos { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.bw-paylogos__item { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 40px; min-width: 76px; padding: 0 12px; background: #fff; border-radius: 10px; border: 1px solid var(--bw-gray-light); color: #1f1f1f; font: 700 13px/1 var(--bw-font); }
.bw-paylogos__item img { max-height: 22px; width: auto; }
.bw-paylogos__item--payjustnow img, .bw-paylogos__item--payflex img { max-height: 18px; }
.bw-paylogos__item--googlepay .bw-paylogos__g { font-weight: 800; background: linear-gradient(90deg, #4285f4 0 25%, #ea4335 25% 50%, #fbbc05 50% 75%, #34a853 75%); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 15px; }
.bw-paylogos__item--chipin { color: #0a7d5a; }
.bw-paylogos__item--eft { color: var(--bw-dark); font-size: 12px; }

@media (max-width: 1100px) {
    .bw-mega-menu__inner { grid-template-columns: 1fr 1fr; }
    .bw-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .bw-logo-img { width: 150px; }
    .bw-footer__inner { grid-template-columns: 1fr; }
    .bw-paylogos__item { height: 34px; min-width: 64px; padding: 0 9px; font-size: 12px; }
}

/* fixes: footer logo has no tile; department names never cut off */
.bw-footer__logo { background: none !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.bw-mega__cats { grid-template-columns: 1fr 1fr; }
.bw-mega__cat-name { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
.bw-mega-menu__inner { grid-template-columns: 1.7fr 1.1fr .8fr .95fr; }

/* ── Bedworld colours over the inherited (Bug Bounty) blue banners ───────────────────── */
.bw-page-hero, .bw-page-hero--post, .bw-page-hero--specials, .bw-page-header--dark, .bw-cta-band, .bw-shop-subbanner__card--specials {
  background: radial-gradient(700px 380px at 92% 0%, rgba(175,0,0,.5), transparent 62%), linear-gradient(135deg, #241113 0%, #120a0b 100%) !important;
  color: #fff;
}
.bw-page-hero, .bw-page-header--dark { position: relative; border-top: 6px solid var(--bw-navy); }
.bw-page-hero--specials { background: radial-gradient(700px 380px at 92% 0%, rgba(233,180,76,.38), transparent 62%), linear-gradient(135deg, #241113 0%, #120a0b 100%) !important; }
.bw-page-hero .bw-breadcrumb, .bw-page-hero .bw-breadcrumb a, .bw-page-hero .woocommerce-breadcrumb, .bw-page-hero .woocommerce-breadcrumb a,
.bw-page-header--dark .bw-breadcrumb, .bw-page-header--dark .bw-breadcrumb a { color: #e7b7b0 !important; }
.bw-page-hero h1, .bw-page-header--dark h1 { font-family: var(--bw-display); }
.bw-hero { background: radial-gradient(1200px 500px at 85% 20%, rgba(175,0,0,.5), transparent 60%), linear-gradient(135deg, #241113, #120a0b) !important; }
/* Blog categories: one swipeable row instead of a wall of 40+ buttons. */
.bw-blog-filters { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.bw-blog-filter { flex: 0 0 auto; white-space: nowrap; }

/* ── 2026-11-12 round 2 ─────────────────────────────────────────── */
/* Main nav: departments left; Bundle deals, Specials and Black Friday on the right as deal items. */
.bw-nav__menu > li.bw-nav__deal--first { margin-left: auto; }
.bw-nav__menu > li.bw-nav__deal > a { color: var(--bw-yellow); font-weight: 700; }
.bw-nav__menu > li.bw-nav__deal > a:hover { color: #fff; }
.bw-nav__menu > li.bw-nav__bf { display: flex; align-items: center; padding-left: 6px; }
.bw-nav__menu > li.bw-nav__bf > a { background: #000 !important; color: var(--bw-yellow) !important; border: 1.5px solid var(--bw-yellow); border-radius: 999px; padding: 7px 16px !important; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; font-weight: 800; box-shadow: 0 0 0 0 rgba(233,180,76,.6); animation: bw-bf-pulse 2.4s ease-out infinite; }
.bw-nav__menu > li.bw-nav__bf > a:hover, .bw-nav__menu > li.bw-nav__bf.current-menu-item > a { background: var(--bw-yellow) !important; color: #000 !important; }
@keyframes bw-bf-pulse { 0% { box-shadow: 0 0 0 0 rgba(233,180,76,.55); } 70% { box-shadow: 0 0 0 10px rgba(233,180,76,0); } 100% { box-shadow: 0 0 0 0 rgba(233,180,76,0); } }
@media (prefers-reduced-motion: reduce) { .bw-nav__menu > li.bw-nav__bf > a { animation: none; } }
/* Promo bar reads as Black Friday: black with gold. */
.bw-promo-bar { background: #000; }
.bw-promo-bar a { color: var(--bw-yellow); font-weight: 700; }
.bw-promo-bar a:hover { color: #fff; }

/* Newsletter: equal fields, same height as the button, consent tick lined up. */
.bw-newsletter { padding: 40px 0; }
.bw-newsletter__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; }
.bw-newsletter .vivid-signup form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto !important; gap: 10px !important; }
.bw-newsletter .vivid-signup input[type=text], .bw-newsletter .vivid-signup input[type=email] { box-sizing: border-box; width: 100% !important; height: 50px; padding: 0 20px !important; margin: 0; }
.bw-newsletter .vivid-signup button[type=submit] { height: 50px; padding: 0 28px !important; white-space: nowrap; }
.bw-newsletter .vivid-signup .vivid-mk-consent { margin: 4px 0 0 !important; }
.bw-newsletter .vivid-signup .vivid-mk-consent label { align-items: center !important; gap: 10px !important; font-size: 13px; }
.bw-newsletter .vivid-signup .vivid-mk-consent input[type=checkbox] { margin: 0 !important; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--bw-yellow); }
@media (max-width: 960px) { .bw-newsletter__inner { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 600px) { .bw-newsletter .vivid-signup form { grid-template-columns: 1fr !important; } }

/* Footer: four columns now (about · shop · help · policies). */
.bw-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }

/* The add-to-cart toast is fully hidden until it is used. */
.bw-snackbar:not(.is-visible) { visibility: hidden; }

/* Buttons inside page text keep their own colours (page links are red, which made red-on-red buttons). */
.bw-prose a.bw-btn { text-decoration: none; }
.bw-prose a.bw-btn--primary, .bw-prose a.bw-btn--primary:hover { color: #fff; }
.bw-prose a.bw-btn--outline { color: var(--bw-navy); }
.bw-prose a.bw-btn--outline:hover { color: #fff; }

/* Tick-box fields (quote form, page forms): box and words on one line. */
.bw-form-field--checkbox label, .bw-form-check { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; font-size: 14.5px; cursor: pointer; text-align: left; }
.bw-form-field--checkbox input[type=checkbox] { width: 18px !important; height: 18px; flex: 0 0 18px; margin: 0 !important; accent-color: var(--bw-navy); }

/* Phones / tablets: the slide-down menu is maroon, so its links are white (the old theme painted them dark
   for a white menu, which made them invisible); deal items line up with the rest instead of floating right. */
@media (max-width: 1024px) {
  .bw-nav__menu > li.bw-nav__deal--first { margin-left: 0; }
  .bw-nav__menu > li > a { color: #fff !important; border-bottom-color: rgba(255,255,255,.1) !important; }
  .bw-nav__menu > li > a:hover, .bw-nav__menu > li.current-menu-item > a { background: rgba(255,255,255,.08) !important; color: var(--bw-yellow) !important; }
  .bw-nav__menu > li.bw-nav__deal > a { color: var(--bw-yellow) !important; }
  .bw-nav__menu > li.bw-nav__bf { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .bw-nav__menu > li.bw-nav__bf > a { display: inline-flex; border-bottom: 1.5px solid var(--bw-yellow) !important; }
  .bw-nav__menu > li.bw-nav__mobile-only > a { color: rgba(255,255,255,.75) !important; font-weight: 500; }
}

/* Every sticky side panel starts below the sticky header (logo row + menu, measured into --bw-sticky-top by
   theme.js). The older rules used 100px / 24px, so the panels' first heading slid under the header. */
.bw-quote-page-sidebar,
.wc-block-cart .wc-block-cart__sidebar,
.wc-block-checkout .wc-block-checkout__sidebar,
.woocommerce-cart .woocommerce > .cart-collaterals,
.woocommerce-checkout form.checkout #order_review { top: var(--bw-sticky-top, 140px) !important; }
/* Black Friday catalogue: its script only knows the old Woodmart header and writes a 12px offset inline. */
.bw-page--full .bwp-sidebar { top: var(--bw-sticky-top, 140px) !important; max-height: calc(100vh - var(--bw-sticky-top, 140px) - 16px) !important; }

/* Never a sideways page scroll (clip keeps sticky elements working, unlike hidden). */
html, body { overflow-x: clip; }

/* ════ Mobile fixes (2026-11-15) ════ */

/* Footer: the four-column rule above has no breakpoint, so it squeezed three columns onto a phone.
   Tablet/phone: the about block takes the full width, the link lists sit two by two underneath. */
@media (max-width: 1100px) {
    .bw-footer__inner { grid-template-columns: 1fr 1fr !important; gap: 32px 24px !important; }
    .bw-footer__col--about { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .bw-footer { padding-top: 40px; }
    .bw-footer__inner { gap: 28px 20px !important; }
    .bw-footer__col, .bw-footer__col * { min-width: 0; overflow-wrap: anywhere; }
    .bw-footer-contact a, .bw-footer-contact li { word-break: break-word; }
}

/* WhatsApp button on phones: smaller, bottom-right (prices sit on the left of cards),
   above the iPhone home bar, and out of the way while the shopper scrolls down. */
@media (max-width: 768px) {
    .vivid-wa.vivid-wa--button { left: auto !important; right: 14px !important; bottom: calc(14px + env(safe-area-inset-bottom)) !important; transition: transform .25s ease, opacity .25s ease; }
    .vivid-wa.vivid-wa--button .vivid-wa__toggle { width: 50px !important; height: 50px !important; }
    .vivid-wa.vivid-wa--button .vivid-wa__panel { left: auto !important; right: 0 !important; }
    body.bw-scrolling-down .vivid-wa.vivid-wa--button:not(.is-active) { transform: translateY(140%); opacity: 0; pointer-events: none; }
}

/* Payment options sheet: 92vh is taller than what Safari shows between its bars, which pushed the
   close button under the address bar. Size it to the visible viewport instead. */
@media (max-width: 640px) {
    .vivid-pc__dialog { height: 100%; height: 100dvh; }
    .vivid-pc__sheet { max-height: 82vh !important; max-height: calc(100dvh - 24px - env(safe-area-inset-top)) !important; }
    .vivid-pc__head { position: sticky; top: 0; }
    .vivid-pc__close { flex: 0 0 44px !important; width: 44px !important; height: 44px !important; }
}

/* Phone/tablet menu (2026-11-15): never show the desktop mega panel; "Shop all" just opens the shop. */
@media (max-width: 1024px) {
    .bw-mega-menu-parent .bw-mega-menu, .bw-mega-menu-parent.bw-mega-open .bw-mega-menu, .bw-mega-menu-parent:hover .bw-mega-menu, .bw-mega-menu-parent:focus-within .bw-mega-menu { display: none !important; }
}
