/* Bike & Butter — shop, product page, checkout (dark, Flowlife-style). Uses site.css tokens. */
.page-shell { background: var(--bg); }
.page-hero { position: relative; min-height: 62svh; display: grid; align-items: end; overflow: hidden; color: #fff; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.78); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 35%, rgba(0,0,0,.7)); }
.page-hero-in { position: relative; z-index: 2; padding: 0 var(--pad) clamp(24px, 4vw, 44px); display: grid; gap: 12px; }
.page-hero-in p { font-size: clamp(1.05rem, 1.7vw, 1.5rem); font-weight: 300; line-height: 1.35; max-width: 34em; }
.tag { position: absolute; top: 16px; left: 16px; z-index: 2; background: rgba(255,255,255,.85); color: #111; padding: 6px 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border-radius: 3px; }
.tag-dark { background: #111; color: #fff; top: 16px; left: 16px; }

/* collection */
.grid-wrap { background: #fafafa; color: #111; padding-bottom: 80px; }
.grid-bar { display: flex; justify-content: space-between; padding: 16px var(--pad); color: #6f6f6a; border-bottom: 1px solid var(--line-dark); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); }
.card { display: block; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: #fafafa; }
.card:nth-child(2n) { border-right: 0; }
.card-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #f4f4f2; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img-text { display: grid; align-content: center; justify-items: start; gap: 16px; padding: 28px; background: #111; color: #fff; }
.card-img-text p { font-size: 15px; font-weight: 300; line-height: 1.5; color: #cfcfca; }
.card-img-text .btn { color: #fff; }
.card-info { padding: 14px 16px 22px; display: grid; gap: 4px; }
.card-info .row { display: flex; justify-content: space-between; gap: 12px; }
.card-info .cat { font-size: 12px; color: #8a8a85; }
.refine-fab { position: fixed; z-index: 120; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(488px, calc(100vw - 24px)); background: rgba(70,70,70,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; padding: 15px; cursor: pointer; }
.refine-fab:hover { background: rgba(255,255,255,.9); color: #111; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } .card:nth-child(2n) { border-right: 1px solid var(--line-dark); } .card:nth-child(3n) { border-right: 0; } .card-info { padding: 16px 20px 24px; } }

/* product page */
.ppage { background: var(--bg); padding-top: 84px; }
.pgrid { display: grid; background: #fafafa; color: #111; }
.pgallery { position: relative; background: #fafafa; }
.pfig { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: #f4f4f2; }
.pfig img { width: 100%; height: 100%; object-fit: contain; }
.pthumbs { display: none; }
.pinfo { background: #fff; }
.pinfo-in { padding: 28px var(--pad) 56px; display: grid; gap: 18px; align-content: start; }
.label-muted { color: #6f6f6a; }
.prow { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.pname { font-size: 18px; font-weight: 400; line-height: 1.3; }
.pprice { font-size: 18px; white-space: nowrap; }
.pprice small { font-size: 12px; color: #8a8a85; }
.psum { font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.4; max-width: 28em; margin: 6px 0 12px; font-weight: 300; }
.pvariants { border-top: 1px solid var(--line-dark); padding-top: 18px; display: grid; }
.pvariants h2 { margin-bottom: 12px; }
.vrow { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line-dark); cursor: pointer; font-size: 14px; }
.vrow input { position: absolute; opacity: 0; }
.vrow .dot { width: 14px; height: 14px; border: 1px solid #aaa; border-radius: 50%; display: inline-block; }
.vrow input:checked + .dot { border-color: #111; background: radial-gradient(#111 45%, transparent 50%); }
.vrow input:focus-visible + .dot { outline: 1px solid #111; outline-offset: 3px; }
.btn-wide { width: 100%; padding: 20px; gap: 14px; }
.pbox { border: 1px solid var(--line-dark); border-radius: 3px; padding: 18px; display: grid; gap: 14px; text-align: center; }
.pbox .label { font-size: 10.5px; }
.live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #1fd13f; margin-right: 8px; vertical-align: 1px; }
.ul { background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: underline; cursor: pointer; }
.lbl { margin-top: 10px; }
.bullets { display: grid; gap: 8px; margin: 0; }
.bullets li { font-size: 14px; line-height: 1.5; padding-left: 18px; position: relative; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; background: #111; }
.paccs { border-top: 1px solid var(--line-dark); margin-top: 8px; }
.pacc { display: flex; gap: 16px; align-items: center; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line-dark); padding: 18px 0; cursor: pointer; text-align: left; color: #111; }
.pacc .plus { display: grid; place-items: center; width: 24px; height: 24px; background: #eee; border-radius: 3px; font-size: 14px; }
.minibar { position: fixed; z-index: 199; top: 78px; left: 50%; transform: translateX(-50%); width: min(488px, calc(100vw - 24px)); height: 40px; display: grid; grid-template-columns: 26px 1fr auto 30px; gap: 12px; align-items: center; padding: 0 8px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; }
.minibar[hidden] { display: none; }
.minibar img { width: 26px; height: 32px; object-fit: cover; background: #f4f4f2; }
.mb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-add { background: rgba(255,255,255,.14); border: 0; color: #fff; width: 28px; height: 28px; border-radius: 3px; cursor: pointer; font-size: 16px; }
.mb-add:hover { background: var(--yellow); color: #111; }
.more-h { padding: 22px var(--pad); background: #fafafa; color: #111; border-top: 1px solid var(--line-dark); }
.notfound { min-height: 60svh; display: grid; place-content: center; gap: 20px; justify-items: center; }
@media (min-width: 900px) {
  .pgrid { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .pgallery { padding-left: 70px; }
  .pfig-main { aspect-ratio: 1 / 1; }
  .pthumbs { display: grid; gap: 10px; position: sticky; top: 50vh; transform: translateY(-50%); float: left; margin-left: -56px; width: 40px; z-index: 3; height: 0; align-content: center; }
  .pthumb { width: 40px; height: 50px; padding: 0; border: 0; background: #f4f4f2; opacity: .5; cursor: pointer; overflow: hidden; }
  .pthumb.is-on, .pthumb:hover { opacity: 1; }
  .pthumb img { width: 100%; height: 100%; object-fit: cover; }
  .pinfo { position: sticky; top: 0; align-self: start; min-height: 100svh; }
  .pinfo-in { padding: 112px clamp(24px, 5vw, 96px) 64px 56px; }
}

/* checkout */
.copage { padding: 110px var(--pad) 90px; min-height: 100svh; }
.cogrid { display: grid; gap: 40px; max-width: 1200px; margin: 0 auto; }
.cocol h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 24px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field input, .field textarea { background: transparent; border: 1px solid var(--line); border-radius: 3px; padding: 15px 16px; color: var(--ink); font-size: 15px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(255,255,255,.6); }
.field .bad { border-color: #ff8a80; }
.ferr { color: #ff8a80; font-size: 12.5px; }
.ferr.show { display: block; margin-top: 14px; line-height: 1.5; }
.sumbox { border: 1px solid var(--line); border-radius: 4px; padding: 20px; align-self: start; }
.sumbox .cart-line { border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.sumbox .totals { margin-top: 8px; }
#co-submit { width: 100%; margin-top: 12px; padding: 20px; }
.is-empty .cogrid { display: none; }
.empty-co { display: none; text-align: center; padding: 20vh 0; }
.is-empty .empty-co { display: grid; gap: 20px; justify-items: center; }
.secure { color: var(--muted); font-size: 12px; margin-top: 14px; }
@media (min-width: 900px) { .cogrid { grid-template-columns: 1.1fr .9fr; gap: 80px; } .sumbox { position: sticky; top: 110px; } }

/* contact + confirmation */
.cpage { padding: 120px var(--pad) 90px; min-height: 100svh; }
.cgrid { display: grid; gap: 56px; max-width: 1240px; margin: 0 auto; }
.cinfo { display: grid; gap: 22px; align-content: start; }
.clead { color: #cfcfca; font-weight: 300; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; max-width: 34em; }
.cdl { border-top: 1px solid var(--line); margin-top: 10px; }
.cdl div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cdl dt { color: var(--muted); }
.cdl dd { margin: 0; }
.cdl a:hover { color: var(--yellow); }
.cactions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.topic { background: transparent; border: 1px solid var(--line); border-radius: 3px; padding: 11px 16px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; color: var(--ink); }
.topic:hover { border-color: rgba(255,255,255,.5); }
.topic.is-on { background: var(--paper); color: #111; border-color: var(--paper); }
.csuccess { display: grid; gap: 18px; justify-items: start; padding: 28px; border: 1px solid var(--line); border-radius: 4px; }
.csuccess[hidden] { display: none; }
.confirm { max-width: 640px; margin: 14vh auto 0; display: grid; gap: 22px; justify-items: center; text-align: center; }
.confirm-ref { border: 1px solid var(--line); border-radius: 3px; padding: 10px 16px; }
.confirm-ref[hidden] { display: none; }
@media (min-width: 900px) { .cgrid { grid-template-columns: 1fr 1fr; gap: 100px; } }
.field input, .field textarea { font-family: inherit; } .field ::placeholder { color: var(--muted); }

/* brand pages */
.page-hero .cactions { margin-top: 10px; }
.statband { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
.statband div { padding: 28px var(--pad); border-right: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; gap: 6px; }
.statband div:nth-child(2n) { border-right: 0; }
.statband strong { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.statband .label { color: var(--muted); }
@media (min-width: 900px) { .statband { grid-template-columns: repeat(4, 1fr); } .statband div:nth-child(2n) { border-right: 1px solid var(--line); } .statband div:last-child { border-right: 0; } }
.bsec { padding: clamp(48px, 7vw, 100px) 0 0; }
.bsec.light { background: #fafafa; color: #111; }
.bsec.dark { background: var(--bg); padding-bottom: clamp(56px, 8vw, 110px); }
.bsec.light .cards { border-top: 1px solid var(--line-dark); }
.bhead { padding: 0 var(--pad) 32px; display: grid; gap: 12px; max-width: 920px; }
.bhead p { font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 300; line-height: 1.5; color: inherit; opacity: .8; max-width: 38em; }
.bsec.light .bhead p { color: #444; opacity: 1; }
.tbl-wrap { overflow-x: auto; padding: 0 var(--pad) clamp(40px, 6vw, 80px); margin-top: 28px; }
.tbl { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.tbl th { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #6f6f6a; }
.tbl td:first-child { color: #6f6f6a; }
.bsec.light > .cards + .tbl-wrap { margin-top: 0; padding-top: 28px; }
.bsec.light:not(:has(.tbl-wrap)) { padding-bottom: 0; }
.feats { display: grid; border-top: 1px solid var(--line); margin: 0 var(--pad); }
.feat { display: grid; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); grid-template-columns: 34px 1fr; column-gap: 16px; }
.feat .num { color: var(--muted); grid-row: span 2; }
.feat h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 300; letter-spacing: -0.01em; }
.feat p { color: var(--muted); font-size: 14px; max-width: 48em; }
@media (min-width: 900px) { .feats { grid-template-columns: 1fr 1fr; column-gap: 60px; } }
.bline { border-top: 1px solid var(--line); }
.bctas { padding: 32px var(--pad) 0; }
.bwhy { padding: 40px var(--pad) 0; display: grid; gap: 12px; max-width: 920px; }
.bwhy p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* help */
.helppage { min-height: 100svh; }
.help-hero { padding: 150px var(--pad) 70px; display: grid; gap: 32px; justify-items: center; text-align: center; }
.help-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 500; letter-spacing: -0.02em; }
.help-search { position: relative; width: min(740px, 100%); }
.help-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.help-search input { width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 6px; padding: 16px 16px 16px 46px; color: var(--ink); font-size: 15px; font-family: inherit; }
.help-search input:focus { outline: none; border-color: rgba(255,255,255,.5); }
.help-body { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad) 90px; display: grid; gap: 18px; }
.topic-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.topic-grid[hidden], .faq-list[hidden] { display: none; }
.tcard { position: relative; display: block; aspect-ratio: 5 / 3; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.tcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.8); transition: transform .8s ease, filter .4s; }
.tcard:hover img { transform: scale(1.04); filter: brightness(1); }
.tcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.75)); }
.tcard .ttl { position: absolute; left: 20px; bottom: 18px; z-index: 2; font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 500; }
.tcard .arr { position: absolute; right: 14px; top: 14px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: rgba(120,120,120,.7); display: grid; place-items: center; font-size: 14px; }
@media (min-width: 700px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .topic-grid { grid-template-columns: repeat(3, 1fr); } }
.faq-list { display: grid; gap: 0; }
.faq-list .back { width: fit-content; margin-bottom: 20px; }
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 300; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { color: var(--muted); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq[open] .plus { transform: rotate(45deg); }
.faq p { padding: 0 0 24px; color: #cfcfca; font-size: 15px; line-height: 1.7; max-width: 46em; }
.help-foot { margin-top: 56px; display: grid; gap: 16px; }

@media (min-width: 900px) { .cards.n4 { grid-template-columns: repeat(4, 1fr); } .cards.n4 .card:nth-child(3n) { border-right: 1px solid var(--line-dark); } .cards.n4 .card:nth-child(4n) { border-right: 0; } }

@media (min-width: 900px) {
  .cards[data-n="4"] { grid-template-columns: repeat(4, 1fr); }
  .cards[data-n="4"] .card:nth-child(3n) { border-right: 1px solid var(--line-dark); }
  .cards[data-n="4"] .card:nth-child(4n) { border-right: 0; }
  .cards[data-n="1"], .cards[data-n="2"] { grid-template-columns: repeat(3, 1fr); }
}

/* denser shop grid */
.cards[data-grid] .card-info, .cards[data-rf-grid] .card-info { padding: 10px 12px 14px; }
.cards[data-grid] .card-info .row, .cards[data-rf-grid] .card-info .row { flex-direction: column; gap: 3px; }
@media (min-width: 600px) { .cards[data-grid], .cards[data-rf-grid] { grid-template-columns: repeat(3, 1fr); } .cards[data-grid] .card:nth-child(n), .cards[data-rf-grid] .card:nth-child(n) { border-right: 1px solid var(--line-dark); } }
@media (min-width: 900px) { .cards[data-grid], .cards[data-rf-grid] { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1300px) { .cards[data-grid], .cards[data-rf-grid] { grid-template-columns: repeat(5, 1fr); } }

/* shop landing tiles */
.tiles { display: grid; grid-template-columns: 1fr; background: var(--bg); }
.tile { position: relative; display: block; min-height: 52svh; overflow: hidden; color: #fff; border-bottom: 1px solid var(--line); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.62); transition: transform .8s ease, filter .4s; }
.tile:hover img { transform: scale(1.04); filter: grayscale(1) brightness(.75); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.65)); }
.tile-in { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 36px) var(--pad); display: grid; gap: 10px; }
.tile-in h2 { font-weight: 300; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1; letter-spacing: -.02em; }
.tile-in p { font-size: 15px; font-weight: 300; color: #dcdcd7; max-width: 30em; line-height: 1.45; }
.tile-in .label { color: var(--yellow); }
@media (min-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } .tile { min-height: 46svh; border-right: 1px solid var(--line); } .tile:nth-child(2n) { border-right: 0; } }

/* RSTRI finder */
.finder { display: grid; gap: 14px; padding: 0 var(--pad) 22px; }
.finder-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.finder select, .finder input[type=search] { border: 1px solid var(--line-dark); background: #fff; padding: 12px 14px; font: inherit; font-size: 14px; border-radius: 4px; color: #111; min-width: 220px; }
.finder .chips button { border: 1px solid var(--line-dark); background: none; padding: 8px 14px; border-radius: 99px; font: inherit; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; color: #111; }
.finder .chips button.on { background: #111; color: #fff; border-color: #111; }
.finder-note { padding: 0 var(--pad) 18px; font-size: 13px; color: #6f6f6a; line-height: 1.5; max-width: 60em; }
.finder-empty { padding: 48px var(--pad); text-align: center; color: #6f6f6a; }
.fit-tag { font-size: 11px; color: #8a8a85; }

@media(max-width:600px){.finder select,.finder input[type=search]{width:100%;min-width:0;flex:1 1 100%}}
