/* Keyper Bear brand site v2. Colours and font from the original Shopify theme. */

@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #EFECEC;      /* warm off-white, original page background */
  --bar: #2C332F;     /* charcoal-green, original bars and buttons */
  --gold: #AF9967;    /* logo gold, decoration only */
  --text: #252525;
  --muted: #545A58;   /* 5.9:1 on --bg */
  --line: #D6D1CF;
  --white: #FFFFFF;
  --pad: 20px;
  --wrap: 1240px;
  --head: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.5; letter-spacing: .01em;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; line-height: 1.2; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--bar); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--bar); color: var(--white); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Header (original Shopify layout, owner 2026-11-20) ---------- */
.announce { background: var(--bar); color: var(--white); display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; max-width: none; }
.announce__msgs { text-align: center; }
.announce__msg { font-size: 13px; letter-spacing: .1em; padding: 12px 0; }
.announce__arrow { background: none; border: 0; color: inherit; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.header { position: relative; z-index: 50; background: var(--bg); }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 18px 12px; }
.header__logo { display: block; justify-self: center; }
.header__logo img { width: 100px; height: 100px; }
.header__nav { display: none; }
.header__bag { justify-self: end; width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); }
.header__bag svg { width: 30px; height: 30px; }

/* Phone menu: a <details> drawer, no JavaScript */
.menu { justify-self: start; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu__icon, .menu__icon::before, .menu__icon::after { display: block; width: 22px; height: 1.5px; background: var(--text); position: relative; transition: transform .2s; }
.menu__icon::before, .menu__icon::after { content: ""; position: absolute; left: 0; }
.menu__icon::before { top: -7px; }
.menu__icon::after { top: 7px; }
.menu[open] .menu__icon { background: transparent; }
.menu[open] .menu__icon::before { top: 0; transform: rotate(45deg); }
.menu[open] .menu__icon::after { top: 0; transform: rotate(-45deg); }
.menu__panel { position: absolute; left: 0; right: 0; top: 100%; height: 100vh; background: var(--bg); padding: 8px var(--pad) 32px; overflow-y: auto; border-top: 1px solid var(--line); }
.menu__panel ul { list-style: none; margin: 0; padding: 0; }
.menu__panel li a { display: flex; align-items: center; min-height: 60px; border-bottom: 1px solid var(--line); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 15px; }
.menu__panel li a[aria-current="page"] { font-weight: 700; }
.menu__panel .btn { margin-top: 28px; width: 100%; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 1px solid var(--bar); border-radius: 2px; background: var(--bar); color: var(--white); text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; }
.btn:hover { background: #1E2420; }
.btn--light { background: var(--white); color: var(--text); border-color: var(--white); }
.btn--light:hover { background: var(--bg); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--white); }
.btn--block { width: 100%; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-underline-offset: 5px; }

/* ---------- Section titles ---------- */
.title { font-size: 20px; text-transform: uppercase; letter-spacing: .12em; text-align: center; margin-bottom: 24px; }
.section { padding: 56px 0; }

/* ---------- Home: hero ---------- */
.hero { position: relative; color: var(--white); background: var(--bar); }
.hero picture, .hero img { width: 100%; }
.hero img { aspect-ratio: 4 / 5; object-fit: cover; max-height: calc(100svh - var(--head) - 40px); min-height: 420px; }
.hero__text { position: absolute; inset: auto 0 0 0; padding: 120px var(--pad) 36px; text-align: center; background: linear-gradient(to top, rgba(20, 22, 21, .72) 0%, rgba(20, 22, 21, .45) 55%, rgba(20, 22, 21, 0) 100%); }
.hero__eyebrow { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; }
.hero h1 { font-size: 30px; letter-spacing: .02em; margin-bottom: 22px; text-wrap: balance; }

/* ---------- Home: colour tiles / catalog cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { text-decoration: none; display: block; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--white); }
.card__name { margin-top: 12px; font-size: 15px; }
.card__meta { font-size: 14px; color: var(--muted); }
.card__link { display: inline-block; margin-top: 4px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Home: rooms row (swipe on phone) ---------- */
.rooms { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding: 0 var(--pad) 8px; scrollbar-width: none; }
.rooms::-webkit-scrollbar { display: none; }
.rooms figure { margin: 0; scroll-snap-align: start; }
.rooms img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.rooms figcaption { margin-top: 10px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Home: Amazon band ---------- */
.band { background: var(--bar); color: var(--white); text-align: center; }
.band .title { margin-bottom: 10px; }
.band p { color: #D9DDD9; margin-bottom: 28px; }
.band__btns { display: grid; gap: 12px; max-width: 420px; margin: 0 auto; }

/* ---------- Catalog ---------- */
.page-head { padding: 36px 0 20px; }
.page-head h1 { font-size: 24px; text-transform: uppercase; letter-spacing: .1em; }
.page-head p { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* ---------- Product ---------- */
.pdp { padding-bottom: 40px; }
.gallery { position: relative; }
.gallery__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; margin: 0; padding: 0; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track li { scroll-snap-align: start; }
.gallery__track img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--white); }
.gallery__dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0 0; margin: 0; list-style: none; }
.gallery__dots span { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.gallery__dots span.is-on { background: var(--text); }
.info { padding: 22px var(--pad) 0; }
.info h1 { font-size: 26px; letter-spacing: .01em; }
.info__where { margin-top: 6px; color: var(--muted); font-size: 15px; }
.info__lead { margin-top: 14px; font-size: 16px; }
.picker { border: 0; padding: 0; margin: 24px 0 0; }
.picker legend { padding: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.picker legend b { font-weight: 400; letter-spacing: .02em; text-transform: none; font-size: 15px; margin-left: 6px; }
.swatches { display: flex; gap: 10px; }
.swatch { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid #9A9F9D; border-radius: 2px; background: transparent; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.swatch i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #8C908E; }
.swatch[data-color="black"] i { background: #1D1D1D; }
.swatch[data-color="white"] i { background: #F7F7F5; }
.swatch[aria-pressed="true"] { border: 2px solid var(--text); padding: 0 15px; font-weight: 700; }
.buy { margin-top: 22px; }
.buy__note { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.acc { margin-top: 32px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 58px; cursor: pointer; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; }
.acc details[open] summary::after { content: "\2212"; }
.acc details p { padding: 0 0 20px; color: var(--muted); }
.also { padding: 48px var(--pad) 0; }
.also .cards { grid-template-columns: 1fr 1fr; }

/* Sticky buy bar (phone, product page) */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.buybar__label { flex: 1; font-size: 14px; line-height: 1.3; }
.buybar__label small { display: block; color: var(--muted); font-size: 13px; }
.buybar .btn { min-height: 48px; padding: 0 20px; }
.has-buybar { padding-bottom: 76px; }

/* ---------- Text pages (contact, policies) ---------- */
.text-page { max-width: 640px; margin: 0 auto; padding: 0 var(--pad) 64px; }
.text-page h1 { font-size: 24px; text-transform: uppercase; letter-spacing: .1em; margin: 36px 0 18px; }
.text-page h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .12em; margin: 28px 0 8px; }
.text-page p { margin-bottom: 14px; }
.text-page .btn { margin: 10px 0 26px; }
.contact-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Footer ---------- */
.footer { background: var(--bar); color: var(--white); padding: 44px 0 28px; text-align: center; }
.footer__logo { width: 100px; height: 100px; margin: 0 auto 28px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 8px; }
.footer li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.footer li a:hover { text-decoration: underline; }
.footer__legal { margin-top: 18px; font-size: 13px; color: #C9CEC9; }
.footer__small li a { font-size: 12px; color: #D9DDD9; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  :root { --pad: 40px; --head: 76px; }
  .announce { grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 0 max(var(--pad), calc((100% - var(--wrap)) / 2)); }
  .header__inner { grid-template-columns: auto 1fr auto; padding: 26px var(--pad); gap: 36px; }
  .header__logo { justify-self: start; }
  .header__logo img { width: 92px; height: 92px; }
  .menu { display: none; }
  .header__nav { display: flex; gap: 4px; }
  .header__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; font-size: 15px; color: var(--muted); }
  .header__nav a:hover, .header__nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }

  .hero img { aspect-ratio: 16 / 9; max-height: calc(100vh - var(--head)); min-height: 0; }
  .hero__text { inset: 0 auto 0 0; width: 46%; padding: 0 0 0 7%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; background: linear-gradient(to right, rgba(20, 22, 21, .62) 0%, rgba(20, 22, 21, .3) 70%, rgba(20, 22, 21, 0) 100%); }
  .hero h1 { font-size: 46px; max-width: 12ch; }
  .title { font-size: 24px; margin-bottom: 36px; }
  .section { padding: 88px 0; }
  .cards { gap: 24px; max-width: 980px; margin: 0 auto; }
  .rooms { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); gap: 20px; }
  .band__btns { grid-template-columns: 1fr 1fr; max-width: 560px; }

  .page-head { padding: 56px 0 32px; text-align: center; }
  .page-head h1 { font-size: 30px; }

  .pdp__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; max-width: var(--wrap); margin: 0 auto; padding: 32px var(--pad) 0; align-items: start; }
  .gallery__track { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; }
  .gallery__track li:first-child { grid-column: 1 / -1; }
  .gallery__dots { display: none; }
  .info { position: sticky; top: calc(var(--head) + 32px); padding: 8px 0 0; }
  .info h1 { font-size: 34px; }
  .also { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--pad) 0; }
  .also .cards { max-width: none; grid-template-columns: repeat(4, 1fr); }
  .buybar { display: none; }
  .has-buybar { padding-bottom: 0; }
  .text-page h1 { font-size: 30px; margin-top: 56px; }
  .contact-photo { aspect-ratio: auto; height: 46vh; min-height: 300px; }
  .footer ul { column-gap: 16px; }
}
