/* Shared chrome (nav extras, menu, footer) + store, support and legal pages. Loaded after styles.css. */

/* ---------- nav: bag + menu ---------- */
.nav__right { gap: 14px; }
.nav__bag { position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 44px; color: var(--light); }
.nav__bag:hover { color: #fff; }
.nav__bag svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.nav__count {
  position: absolute; top: 7px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; line-height: 17px; text-align: center;
}
.nav__menu span { transition: transform .3s var(--ease); }
.menu-open .nav__menu span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-open .nav__menu span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.nav__menu:focus-visible, .nav__bag:focus-visible, .nav__cta:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

/* Desktop: links inline in the bar, like apple.com. */
.nav__links { display: none; }
@media (min-width: 834px) {
  .nav__links {
    display: flex; gap: 36px; list-style: none; margin: 0; padding: 0;
    position: absolute; left: 50%; transform: translateX(-50%);
  }
  .nav__links a { font-size: 13px; color: rgba(245, 245, 247, .8); letter-spacing: -0.01em; transition: color .2s ease; }
  .nav__links a:hover, .nav__links a[aria-current="page"] { color: #fff; }
  .nav__menu { display: none; }
}

/* Small screens: full-screen menu that drops down; items cascade in. */
.drawer {
  position: fixed; inset: 0; z-index: 49; padding-top: 52px;
  background: rgba(0, 0, 0, .86);
  backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px);
  clip-path: inset(0 0 100% 0); transition: clip-path .5s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open { clip-path: inset(0); }
.drawer__panel { padding: 28px 40px 48px; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li, .drawer__label, .drawer__note {
  opacity: 0; transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.drawer.is-open li, .drawer.is-open .drawer__label, .drawer.is-open .drawer__note {
  opacity: 1; transform: none;
  transition: opacity .4s ease calc(.12s + var(--i) * 30ms), transform .5s var(--ease) calc(.12s + var(--i) * 30ms);
}
.drawer__big { display: block; padding: 6px 0; font-size: 28px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; color: #e8e8ed; }
.drawer__label { margin: 36px 0 10px; font-size: 12px; color: var(--grey-3); }
.drawer__small { display: block; padding: 6px 0; font-size: 17px; font-weight: 600; color: #e8e8ed; }
.drawer a:hover, .drawer a[aria-current="page"] { color: #fff; }
.drawer a[aria-current="page"]::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 10px; border-radius: 50%; background: var(--blue); vertical-align: middle; }
.drawer__note { margin-top: 36px; font-size: 14px; color: var(--grey-3); }
.menu-open .nav { background: rgba(0, 0, 0, .86); }
/* Lock the page, not body: an overflow on body would make it the sticky nav's scroller and push the bar away. */
.menu-open { overflow: hidden; }

/* ---------- footer ---------- */
.footer { background: var(--light); color: var(--grey-2); border-top: 1px solid var(--grey-7); padding: 40px 24px 28px; font-size: 12px; line-height: 1.5; }
.footer__in { max-width: 980px; margin: 0 auto; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--grey-7); }
.footer h2 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--ink); }
.footer__cols a { display: block; padding: 3px 0; color: var(--grey-1); }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; }
.footer__base a { color: var(--grey-1); }

/* ---------- light pages ---------- */
body.page { background: #fff; color: var(--ink); }
.page main { min-height: calc(100vh - 52px - 260px); }
.page-head { max-width: 980px; margin: 0 auto; padding: 64px 24px 8px; }
.page-head h1 { font-size: clamp(36px, 8vw, 56px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.page-head p { margin-top: 12px; font-size: 19px; line-height: 1.45; color: var(--grey-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 28px;
  border: 0; border-radius: 999px; background: #0071e3; color: #fff; font: inherit; font-size: 17px; font-weight: 500;
  cursor: pointer; transition: background .2s ease, opacity .2s ease;
}
.btn:hover { background: #0077ed; color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; background: #0071e3; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn--ghost:hover { background: rgba(10, 132, 255, .06); color: var(--blue); }
.btn:focus-visible, .link-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--blue); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.muted { color: var(--grey-2); }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px;
  background: rgba(10, 132, 255, .07); color: var(--ink); font-size: 15px; line-height: 1.45;
}
.notice b { font-weight: 600; }
.notice--warn { background: #fff4e5; }

/* ---------- shop (product page) ---------- */
.pdp { max-width: 1080px; margin: 0 auto; padding: 32px 24px 96px; display: grid; gap: 40px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.1fr 1fr; align-items: start; padding-top: 56px; } .pdp__media { position: sticky; top: 76px; } }
.pdp__media { position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; background: var(--light); }
.pdp__media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.pdp__soon {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--light); color: var(--grey-3); font-size: 14px; opacity: 0; transition: opacity .4s ease;
}
.pdp__soon .band { width: 46%; aspect-ratio: 1; border-radius: 50%; border: min(46px, 8vw) solid var(--c); box-shadow: 0 20px 50px rgba(0, 0, 0, .08); }
.pdp__media.is-soon .pdp__soon { opacity: 1; }
.pdp__badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(10, 132, 255, .1); color: var(--blue); font-size: 13px; font-weight: 600; }
.pdp h1 { margin-top: 12px; font-size: clamp(40px, 7vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.pdp__tag { margin-top: 10px; font-size: 21px; color: var(--grey-1); }
.pdp__price { margin-top: 18px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.pdp__price small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--grey-2); }
.pdp fieldset { margin: 32px 0 0; padding: 0; border: 0; }
.pdp legend { padding: 0; margin-bottom: 12px; font-size: 17px; font-weight: 600; }
.pdp legend span { font-weight: 400; color: var(--grey-2); }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--grey-7);
  cursor: pointer; font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease;
}
.opt label i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); flex-shrink: 0; }
.opt input:checked + label { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.opt input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.opt input:disabled + label { opacity: .45; cursor: not-allowed; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--grey-7); border-radius: 999px; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; color: var(--ink); cursor: pointer; border-radius: 999px; }
.qty button:disabled { color: var(--grey-6); cursor: default; }
.qty output { min-width: 28px; text-align: center; font-size: 17px; font-weight: 500; }
.pdp__buy { margin-top: 32px; display: grid; gap: 12px; }
.pdp__msg { min-height: 22px; font-size: 15px; color: var(--grey-2); }
.pdp__msg a { font-weight: 500; }
.pdp__facts { margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--grey-7); }
.pdp__facts li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--grey-7); font-size: 15px; line-height: 1.45; color: var(--grey-1); }
.pdp__facts b { display: block; color: var(--ink); font-weight: 600; }
.pdp__facts svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }

/* ---------- bag + checkout ---------- */
.shop-wrap { max-width: 980px; margin: 0 auto; padding: 16px 24px 96px; display: grid; gap: 40px; }
@media (min-width: 860px) { .shop-wrap { grid-template-columns: 1fr 340px; align-items: start; } .summary { position: sticky; top: 76px; } }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--grey-7); }
.bag-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px 20px; padding: 24px 0; border-bottom: 1px solid var(--grey-7); align-items: start; }
.bag-line__img { width: 96px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--light); display: flex; align-items: center; justify-content: center; }
.bag-line__img img { width: 100%; height: 100%; object-fit: cover; }
.bag-line__img .band { width: 52%; aspect-ratio: 1; border-radius: 50%; border: 9px solid var(--c); }
.bag-line h3 { margin: 0; font-size: 19px; font-weight: 600; }
.bag-line p { margin: 4px 0 0; font-size: 14px; color: var(--grey-2); }
.bag-line__price { font-size: 17px; font-weight: 600; text-align: right; }
.bag-line__ctl { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.empty { padding: 48px 0; text-align: center; }
.empty p { font-size: 19px; color: var(--grey-2); margin-bottom: 20px; }
.summary { border-radius: 22px; background: var(--light); padding: 24px; }
.summary h2 { margin: 0 0 16px; font-size: 21px; font-weight: 600; }
.summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 10px; font-size: 15px; }
.summary dt { color: var(--grey-1); }
.summary dd { margin: 0; text-align: right; }
.summary .total { padding-top: 12px; border-top: 1px solid var(--grey-7); font-size: 19px; font-weight: 600; color: var(--ink); }
.summary .btn { margin-top: 20px; }
.summary__fine { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--grey-2); }
.summary__items { list-style: none; margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--grey-7); font-size: 15px; display: grid; gap: 8px; }
.summary__items li { display: flex; justify-content: space-between; gap: 12px; }

.form { display: grid; gap: 32px; }
.form section h2 { margin: 0 0 14px; font-size: 21px; font-weight: 600; }
.fields { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.field { grid-column: span 6; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 560px) { .field--half { grid-column: span 3; } .field--third { grid-column: span 2; } }
.field label { font-size: 13px; font-weight: 500; color: var(--grey-1); }
.field input, .field select {
  height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--grey-7); background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10, 132, 255, .2); }
.field input[aria-invalid="true"] { border-color: #e5484d; }
.field .err { min-height: 0; font-size: 13px; color: #d93036; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--grey-1); }
.check-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); flex-shrink: 0; }

/* ---------- prose (legal, support) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 8px 24px 96px; font-size: 17px; line-height: 1.6; color: var(--grey-1); }
.prose h2 { margin: 40px 0 10px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
.prose h3 { margin: 28px 0 8px; font-size: 19px; font-weight: 600; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .updated { font-size: 14px; color: var(--grey-2); }
.prose .caps { text-transform: uppercase; font-size: 15px; }
.legal-index { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--grey-7); }
.legal-index li { margin: 0; }
.legal-index a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--grey-7); color: var(--ink); font-size: 19px; font-weight: 500; }
.legal-index a span { font-size: 14px; font-weight: 400; color: var(--grey-2); }
.legal-index a:hover { color: var(--blue); }
.faq details { border-bottom: 1px solid var(--grey-7); }
.faq details:first-of-type { border-top: 1px solid var(--grey-7); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0;
  cursor: pointer; list-style: none; font-size: 19px; font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--grey-2); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; }

/* ---------- home: closing CTA ---------- */
.closing__cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.closing__cta small { font-size: 14px; color: var(--grey-2); }


/* product page: what Boo does + specs */
.pdp__about { margin-top: 36px; font-size: 15px; line-height: 1.5; color: var(--grey-1); }
.pdp__about h2 { margin: 28px 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.pdp__about h2:first-child { margin-top: 0; }
.pdp__about p + p { margin-top: 8px; }
.pdp__specs { margin: 0; padding-left: 18px; }
.pdp__specs li { padding: 2px 0; }
.pdp__specs + p { margin-top: 12px; }

/* ---------- site-wide announcement bar ---------- */
.ann--site { display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; background: #0071e3; color: #fff; font-size: 14px; letter-spacing: -0.01em; text-align: center; }
.ann--site p { margin: 0; }
.ann--site i { font-style: normal; margin: 0 6px; opacity: .7; }
@media (max-width: 833px) { .ann--site { height: 34px; font-size: 13px; } }
