@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --paper: #f4f4f1;
  --ink: #141414;
  --muted: #5e6066;
  --line: #e2e2de;
  --accent: #c8102e;
  --green: #0b7a3e;
  --white: #fff;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #087442; outline-offset: 3px; }
h1, h2, h3 { font-family: Manrope, Arial, sans-serif; line-height: 1.1; margin: 0; }
.shell { width: min(1280px, 92%); margin-inline: auto; }
.topline { background: var(--ink); color: var(--white); font-size: .88rem; }
.topline .shell { display: flex; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.topline a, .footer a { text-decoration: none; }
.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.head { min-height: 94px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(1rem, 4vw, 3.5rem); }
.logo { display: flex; align-items: center; gap: .65rem; border: 0; padding: 0; background: transparent; color: var(--ink); text-align: left; touch-action: manipulation; }
.logo img { width: 54px; height: 54px; object-fit: contain; background: #151515; border-radius: 10px; }
.logo > span { font: 800 1.75rem/.9 Manrope, sans-serif; letter-spacing: -.075em; }
.logo > span > span { color: var(--accent); }
.search { display: flex; min-width: 0; }
.search input { min-width: 0; width: 100%; border: 1px solid var(--line); padding: .8rem .9rem; background: #f8f8f6; border-radius: 6px 0 0 6px; }
.search button, .button { background: var(--accent); color: #fff; border: 0; font-weight: 700; }
.search button { padding-inline: 1rem; border-radius: 0 6px 6px 0; }
.head-actions { display: flex; gap: .55rem; }
.head-actions button, .outline { border: 1px solid var(--line); color: inherit; background: transparent; border-radius: 6px; padding: .65rem .85rem; white-space: nowrap; font-weight: 700; }
#cart-count { color: var(--white); background: var(--ink); border-radius: 5rem; padding: .1rem .42rem; margin-left: .15rem; }
.catalog-nav { display: flex; gap: clamp(1rem, 3vw, 2.2rem); border-top: 1px solid var(--line); overflow-x: auto; }
.catalog-nav a { padding-block: .85rem; white-space: nowrap; font-weight: 700; text-decoration: none; font-size: .93rem; }
.catalog-nav a:first-child, .catalog-nav a:hover { color: var(--accent); }
.hero { min-height: 460px; display: grid; grid-template-columns: 46% 54%; margin-top: 1.4rem; border-radius: 12px; overflow: hidden; background: #181717; color: white; }
.hero-content { padding: clamp(1.5rem, 5vw, 4.5rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.kicker { font-weight: 800; letter-spacing: .11em; font-size: .83rem; color: var(--accent); margin: 0 0 .7rem; }
.hero .kicker { color: #ff9daa; }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 4.4rem); line-height: 1.02; letter-spacing: -.065em; }
.hero h1 em { display: block; margin-top: .15em; color: #ff657d; font-style: normal; }
.hero-content > p:not(.kicker) { line-height: 1.55; max-width: 33ch; color: #e6e2e2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.hero-actions .outline { border-color: #ffffff66; }
.hero-actions .outline:hover { background: #ffffff15; }
.hero-photo { position: relative; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.button, .outline { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; text-decoration: none; border-radius: 6px; padding: .72rem 1rem; }
.button:hover, .search button:hover { filter: brightness(.88); }
.delivery { display: grid; grid-template-columns: repeat(3, 1fr); background: white; border: 1px solid var(--line); border-radius: 8px; margin-top: 1rem; }
.delivery > div { padding: 1.15rem clamp(.8rem, 2vw, 1.8rem); display: grid; gap: .3rem; }
.delivery > div + div { border-left: 1px solid var(--line); }
.delivery > div > span, .delivery a { color: var(--muted); }
.shop { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
h2 { font-size: clamp(1.65rem, 3vw, 2.65rem); letter-spacing: -.045em; }
.section-heading select { margin-left: .35rem; }
select, dialog input, dialog textarea { border-radius: 5px; border: 1px solid #c4c4be; padding: .65rem; background: #fff; color: var(--ink); }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-block: 1.1rem .85rem; }
.tabs button { padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-weight: 700; }
.tabs button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.catalog-status { margin: .9rem 0; color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.product-image { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; background: #f1f1ee; color: var(--muted); }
.product-image .photo { width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.product-body { height: 100%; display: flex; flex-direction: column; align-items: start; padding: .95rem; gap: .65rem; overflow-wrap: anywhere; }
.product h3 { font-size: 1.12rem; }
.product p { margin: 0; color: var(--muted); }
.bike-specs { width: 100%; display: grid; gap: .45rem; margin: 0; font-size: .88rem; }
.bike-specs > div { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: .45rem; }
.bike-specs dt { font-weight: 700; }
.bike-specs dd { margin: 0; color: var(--muted); white-space: pre-wrap; }
.spec-source { font-size: .82rem; color: var(--muted); }
#edit-product fieldset { border: 1px solid var(--line); border-radius: 6px; }
#edit-product legend { font-weight: 700; }
.product-heading { width: 100%; display: flex; justify-content: space-between; align-items: end; gap: .6rem; }
.product .price { text-align: right; white-space: nowrap; font-weight: 800; }
.price del { display: block; font-size: .76rem; font-weight: 500; color: var(--muted); }
.bike-card { border-radius: 16px; border-color: #d8e1d2; box-shadow: 0 4px 14px #2135230a; }
.bike-card .product-image { aspect-ratio: 5/4; background: #fff; }
.bike-card .photo { padding: 1.1rem .85rem .25rem; }
.bike-card .product-heading { padding-bottom: .7rem; border-bottom: 1px solid #e7ece4; }
.bike-card h3 { font-weight: 800; }
.bike-card .price strong { color: #182418; }
.bike-card .bike-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .8rem; }
.bike-card .bike-specs > div { display: block; }
.bike-card .bike-specs dt, .colour-caption > span { color: #4d6555; font-size: .69rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.bike-card .bike-specs dd { color: #202b23; font-weight: 600; }
.sale-badge { position: absolute; top: .65rem; right: .6rem; padding: .28rem .55rem; border-radius: 999px; background: #ac241d; color: white; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.product-colours { width: 100%; padding-top: .35rem; }
.colour-caption { display: flex; justify-content: space-between; align-items: center; gap: .4rem; margin-bottom: .35rem; font-size: .78rem; }
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { width: 28px; height: 28px; border-radius: 50%; background: var(--swatch); border: 2px solid white; box-shadow: 0 0 0 1px #cbd3cc; }
.swatch[aria-pressed=true] { box-shadow: 0 0 0 2px #273c2b; }
.product .product-buy { margin-top: auto; }
.bike-card .product-buy { width: 100%; justify-content: center; background: #89c530; color: #142400; border: 0; border-radius: 8px; }
.bike-card .product-buy:hover { background: #77b423; }
.colour-editor-row { padding-bottom: .65rem; margin-bottom: .7rem; border-bottom: 1px solid var(--line); }
#sale-preview { display: block; margin-bottom: .6rem; font-weight: 700; }
@media (max-width: 450px) {
  .product-heading { align-items: start; flex-direction: column; gap: .25rem; }
  .product .price { text-align: left; }
  .price del { display: inline; margin-right: .25rem; }
}
.showroom { display: grid; grid-template-columns: .95fr 1fr; gap: 1.5rem; padding: clamp(1rem, 3vw, 2.2rem); background: #fff; border-radius: 9px; border: 1px solid var(--line); margin-bottom: 2rem; }
.showroom-heading { display: flex; align-items: center; gap: .85rem; }
.showroom-heading > img { width: clamp(52px, 12vw, 76px); height: auto; flex: 0 0 auto; border-radius: 8px; }
.showroom-heading .kicker { margin-bottom: .3rem; }
.showroom-info p:not(.kicker) { color: var(--muted); line-height: 1.5; }
.showroom-info address { color: var(--muted); font-style: normal; line-height: 1.5; margin-bottom: .8rem; }
.certificates { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
figure { margin: 0; }
figure img { width: 100%; aspect-ratio: 3/2; object-fit: contain; background: var(--paper); border-radius: 5px; }
.certificates figcaption { margin-top: .45rem; font-size: .9rem; font-weight: 700; text-align: center; }
footer { background: var(--ink); color: #eee; }
.footer { display: flex; gap: 1rem; flex-wrap: wrap; padding-block: 1.35rem; font-size: .9rem; }
.footer span:first-child { margin-right: auto; }
dialog { width: min(95%, 650px); max-height: 92dvh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem; color: var(--ink); }
dialog::backdrop { background: #141414a8; }
dialog.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(100%, 490px); border-radius: 0; }
.dialog-close { float: right; }
.dialog-close button { border: 0; background: none; font-size: 1.7rem; line-height: 1; }
dialog h2 { padding-right: 1.5rem; }
dialog label { display: grid; gap: .35rem; margin-block: .8rem; }
dialog label:has(input[type=checkbox]) { display: flex; }
dialog textarea { resize: vertical; }
dialog input[type=color] { width: 4rem; height: 2.5rem; padding: .2rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1rem; }
.line-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .65rem; border-bottom: 1px solid var(--line); padding-block: .85rem; }
.line-item small { display: block; color: var(--muted); }
.line-item button { border: 1px solid var(--line); background: white; padding: .4rem .7rem; border-radius: 5px; }
.muted { color: var(--muted); }
.payment { white-space: pre-wrap; overflow-wrap: anywhere; }
.toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); max-width: 90vw; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 6px; }
button:disabled { cursor: wait; opacity: .65; }
@media (max-width: 850px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { min-height: 380px; }
  .showroom { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .topline .shell { font-size: .76rem; }
  .topline a { text-align: right; }
  .head { grid-template-columns: 1fr auto; gap: .8rem; padding-block: .8rem; }
  .search { grid-row: 2; grid-column: 1/-1; }
  .logo img { width: 43px; height: 43px; }
  .logo > span { font-size: 1.45rem; }
  .head-actions button { padding-inline: .55rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 16/9; }
  .delivery { grid-template-columns: 1fr; }
  .delivery > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .section-heading { align-items: start; flex-direction: column; }
}

.bike-card [data-spec=battery], .bike-card [data-spec=warranty], .bike-card [data-spec=extra] { grid-column: 1 / -1; }


.site-footer { background: #17201a; color: #f2f6ef; }
.footer-grid { display: grid; grid-template-columns: 1fr .55fr 1.25fr; gap: clamp(1rem, 3vw, 2.5rem); padding-block: clamp(1.8rem, 4vw, 3.2rem); }
.footer-grid h2 { font-size: 1.16rem; margin-bottom: .75rem; letter-spacing: -.02em; }
.footer-grid p, .footer-grid address { color: #c9d6ca; margin: .5rem 0; line-height: 1.55; font-style: normal; }
.footer-links { display: grid; gap: .5rem; overflow-wrap: anywhere; }
.footer-links a { color: #edf4e8; width: fit-content; }
.bank-panel { padding: 1rem; border-radius: 10px; background: #223127; }
.bank-details { display: grid; gap: .42rem; margin: 0; font-size: .9rem; }
.bank-details > div { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: .6rem; }
.bank-details dt { opacity: .8; }
.bank-details dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.footer-bottom { padding-block: .9rem; border-top: 1px solid #ffffff25; font-size: .88rem; }
.account-bank { padding: .85rem; background: var(--paper); margin-bottom: 1rem; border-radius: 8px; }
.payment-link { padding: 0; border: 0; background: transparent; color: inherit; text-decoration: underline; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bank-panel { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.checkout-dialog { width: min(1060px, calc(100% - 1.5rem)); background: #f6f8f3; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, 1fr); gap: 1rem; align-items: start; }
.checkout-step { color: var(--muted); margin: .5rem 0 1rem; }
.checkout-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.checkout-main form > .checkout-panel + .checkout-panel { margin-top: .8rem; }
.delivery-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.delivery-fields .wide { grid-column: 1 / -1; }
.delivery-fields label { min-width: 0; display: flex; flex-wrap: wrap; }
.delivery-fields label > :is(input, select, textarea) { flex: 0 0 100%; min-width: 0; }
.delivery-fields small { color: var(--muted); }
.payment-method { background: #e9f3e4; border-radius: 6px; padding: .5rem .65rem; font-weight: 700; }
.checkout-next { margin-top: .85rem; width: 100%; justify-content: center; }
.order-summary { position: sticky; top: 0; }
.checkout-totals { margin-bottom: 0; }
.checkout-totals > div { display: flex; justify-content: space-between; gap: 1rem; margin-top: .6rem; }
.checkout-totals dd { margin: 0; text-align: right; }
.checkout-totals .grand-total { border-top: 1px solid var(--line); padding-top: .65rem; font-weight: 800; font-size: 1.1rem; }
.review-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; }
.checkout-error { color: #9b1b22; font-weight: 700; }
.checkout-success { padding: 1.2rem; border-radius: 10px; background: #e9f3e4; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .checkout-dialog { padding: .85rem; }
  .checkout-layout { display: flex; flex-direction: column-reverse; }
  .checkout-layout > * { width: 100%; }
  .order-summary { position: static; }
}

.product-order { display: flex; align-items: end; gap: .45rem; margin-top: auto; width: 100%; }
.product-order .product-buy { flex: 1; min-width: 0; width: auto; white-space: normal; text-align: center; justify-content: center; }
.quantity-label, dialog label.quantity-label { display: grid; gap: .2rem; font-size: .76rem; font-weight: 700; color: var(--muted); margin: 0; }
.quantity-label input, dialog .quantity-label input { width: 3.55rem; min-height: 44px; padding: .35rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: .88rem; }
.cart-quantity { display: flex; align-items: end; gap: .3rem; }
.cart-quantity button { min-height: 44px; font-size: .76rem; }
.delivery-fields .field-example { display: block; flex: 0 0 100%; color: #626e64; font-size: .76rem; font-weight: 400; line-height: 1.35; }
@media (max-width: 390px) {
  .product-order { flex-wrap: wrap; }
  .product-order .product-buy { flex-basis: 100%; }
}

.topline .shell { align-items: center; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
@media (max-width: 460px) {
  .topline .shell > span { display: none; }
}

.admin-bar { background: #e8f3df; color: #1b391c; border-bottom: 1px solid #bfdbb3; }
.admin-bar-inner { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; padding-block: .55rem; }
.admin-bar-inner strong { margin-right: auto; }
.admin-bar-inner label { display: flex; align-items: center; gap: .35rem; font-size: .85rem; }
.admin-bar button, .inline-edit { width: fit-content; border: 1px solid #a6c49e; border-radius: 6px; background: #f5fbf1; color: #244725; padding: .35rem .65rem; font-size: .82rem; font-weight: 700; }
.card-admin-actions { display: flex; align-items: center; justify-content: space-between; gap: .45rem; width: 100%; color: #536553; font-size: .8rem; }
.admin-hidden-card { border: 1px dashed #72986d; }

.page-copy-edit { display: inline-block; vertical-align: middle; margin: .15rem .25rem .15rem 0; }
.hero-photo .page-copy-edit { position: absolute; top: .65rem; right: .65rem; z-index: 1; }
.catalog-nav .page-copy-edit { align-self: center; margin-inline-start: -.65rem; white-space: nowrap; }
.topline .page-copy-edit { flex: 0 0 auto; }
[data-edit-bank].inline-edit { margin-block: .65rem; }
[data-site-copy="hero_headline"] { white-space: pre-line; }

.subsection-tabs { margin-top: -.3rem; }
.subsection-tabs button { min-height: 34px; padding: .3rem .7rem; font-size: .85rem; }

.section-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .35rem; }

.footer-logos { display: flex; align-items: center; gap: .55rem; margin-bottom: .75rem; }
.footer-logos img { width: 56px; height: 56px; object-fit: contain; border-radius: 9px; }

.shop-intro { color: var(--muted); max-width: 72ch; margin: .8rem 0 1rem; line-height: 1.55; }

.colour-shade { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; }
.colour-shade input[type=color] { width: 3.25rem; height: 2.65rem; }
.colour-editor-row details { margin-bottom: .5rem; }
.colour-editor-row summary { cursor: pointer; }

.free-delivery {
  display: inline-block;
  padding: .16rem .55rem;
  border: 1px solid #b6dcbc;
  border-radius: 999px;
  background: #e6f5e8;
  color: #165f32;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}
