/*
Theme Name: Bike Factory Shop Performance
Theme URI: https://www.bikefactoryshop.com/
Description: A focused WooCommerce storefront for Bike Factory Shop.
Author: Bike Factory Shop
Template: generatepress
Version: 1.0.0
Text Domain: bikefactoryshop
*/

:root {
  --bfs-midnight: #10182b;
  --bfs-midnight-soft: #18233d;
  --bfs-blue: #168fea;
  --bfs-orange: #ff8a00;
  --bfs-white: #f7f9fc;
  --bfs-paper: #ffffff;
  --bfs-asphalt: #232b3a;
  --bfs-muted: #667085;
  --bfs-chain: #d9e0ea;
  --bfs-radius: 22px;
  --bfs-shadow: 0 22px 70px rgba(16, 24, 43, .14);
  --bfs-max: 1240px;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--bfs-asphalt);
  background: var(--bfs-white);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
}
a { color: var(--bfs-blue); }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  clip: auto !important; width: auto; height: auto; margin: 12px; padding: 12px 16px;
  z-index: 100000; background: #fff; color: #111;
}
:focus-visible { outline: 3px solid var(--bfs-orange); outline-offset: 4px; }
.bfs-shell { width: min(calc(100% - 40px), var(--bfs-max)); margin-inline: auto; }

.bfs-site-header {
  position: sticky; top: 0; z-index: 999;
  background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(217,224,234,.86);
  backdrop-filter: blur(16px);
}
.bfs-header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.bfs-brand { display: inline-flex; align-items: center; gap: 13px; color: var(--bfs-midnight); text-decoration: none; }
.bfs-brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: #fff; font-weight: 900; font-style: italic; letter-spacing: -.08em;
  background: var(--bfs-blue); box-shadow: inset -8px -8px 0 rgba(16,24,43,.12);
}
.bfs-brand-name { font-size: 1.08rem; font-weight: 850; letter-spacing: -.025em; }
.bfs-nav { margin-left: auto; }
.bfs-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.bfs-nav a { color: var(--bfs-midnight); font-size: .94rem; font-weight: 700; text-decoration: none; }
.bfs-nav a:hover { color: var(--bfs-blue); }
.bfs-cart-link { padding: 10px 16px; border-radius: 999px; color: #fff !important; background: var(--bfs-midnight); }
.bfs-menu-toggle {
  display: none; margin-left: auto; padding: 9px 12px; border: 1px solid var(--bfs-chain);
  border-radius: 10px; background: #fff; color: var(--bfs-midnight); font: inherit; font-weight: 750;
}

.bfs-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 77% 22%, rgba(22,143,234,.22), transparent 30%), var(--bfs-midnight);
}
.bfs-hero::after {
  content: ""; position: absolute; z-index: -1; width: 72%; height: 2px; right: -8%; bottom: 18%;
  transform: rotate(-8deg); background: linear-gradient(90deg, transparent, var(--bfs-orange), transparent);
  box-shadow: 0 0 30px rgba(255,138,0,.6);
}
.bfs-hero-grid { min-height: 650px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 76px; padding-block: 76px; }
.bfs-eyebrow { margin: 0 0 14px; color: var(--bfs-orange); font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.bfs-hero h1 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(3.2rem, 6.7vw, 6.5rem); line-height: .96; letter-spacing: -.065em; }
.bfs-hero-copy > p:not(.bfs-eyebrow) { max-width: 650px; margin: 26px 0 0; color: #cbd3e4; font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.bfs-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.bfs-button {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 24px;
  border: 2px solid transparent; border-radius: 999px; font-weight: 850; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.bfs-button:hover { transform: translateY(-2px); }
.bfs-button--primary { color: #10182b; background: var(--bfs-orange); box-shadow: 0 12px 32px rgba(255,138,0,.25); }
.bfs-button--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.bfs-product-spotlight {
  overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 30px;
  color: var(--bfs-midnight); background: var(--bfs-paper); box-shadow: 0 34px 90px rgba(0,0,0,.3);
  transform: rotate(1.2deg);
}
.bfs-product-spotlight img { width: 100%; height: 365px; display: block; object-fit: contain; padding: 28px; background: #fff; }
.bfs-product-spotlight-body { padding: 22px 26px 28px; }
.bfs-product-spotlight h2 { margin: 0; color: var(--bfs-midnight); font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.15; }
.bfs-product-spotlight-price { margin: 10px 0 18px; color: var(--bfs-blue); font-size: 1.35rem; font-weight: 900; }

.bfs-trust { position: relative; z-index: 2; margin-top: -28px; }
.bfs-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--bfs-chain); border-radius: 18px; background: #fff; box-shadow: var(--bfs-shadow); }
.bfs-trust-item { padding: 22px 24px; border-right: 1px solid var(--bfs-chain); }
.bfs-trust-item:last-child { border: 0; }
.bfs-trust-item strong { display: block; color: var(--bfs-midnight); }
.bfs-trust-item span { color: var(--bfs-muted); font-size: .9rem; }

.bfs-section { padding-block: 92px; }
.bfs-section--paper { background: #fff; }
.bfs-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.bfs-section-head h2 { max-width: 720px; margin: 0; color: var(--bfs-midnight); font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.055em; }
.bfs-section-head a { font-weight: 800; text-decoration: none; }
.bfs-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bfs-category-card {
  min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px;
  border: 1px solid var(--bfs-chain); border-radius: var(--bfs-radius); color: var(--bfs-midnight);
  background: linear-gradient(145deg, #fff, #edf4fb); text-decoration: none; transition: transform .2s ease, border-color .2s ease;
}
.bfs-category-card:hover { transform: translateY(-5px); border-color: var(--bfs-blue); }
.bfs-category-card span { color: var(--bfs-blue); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.bfs-category-card strong { margin-top: 9px; font-size: 1.5rem; line-height: 1.15; }

.bfs-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.bfs-product-card { overflow: hidden; border: 1px solid var(--bfs-chain); border-radius: 18px; background: #fff; }
.bfs-product-card > a { color: inherit; text-decoration: none; }
.bfs-product-card img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: contain; padding: 18px; background: #fff; }
.bfs-product-card-body { padding: 18px; }
.bfs-product-card h3 { min-height: 2.5em; margin: 0; color: var(--bfs-midnight); font-size: 1rem; line-height: 1.25; }
.bfs-price { margin-top: 12px; color: var(--bfs-blue); font-size: 1.1rem; font-weight: 900; }

.bfs-guide-panel { display: grid; grid-template-columns: 1fr .7fr; overflow: hidden; border-radius: 28px; color: #fff; background: var(--bfs-midnight); }
.bfs-guide-copy { padding: clamp(36px, 6vw, 76px); }
.bfs-guide-copy h2 { margin: 0; color: #fff; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .96; letter-spacing: -.055em; }
.bfs-guide-copy p { max-width: 600px; color: #cbd3e4; }
.bfs-guide-mark { display: grid; place-items: center; min-height: 360px; color: var(--bfs-orange); font-size: clamp(7rem, 18vw, 16rem); font-weight: 900; font-style: italic; background: linear-gradient(145deg, var(--bfs-midnight-soft), #0b1121); }
.bfs-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bfs-post-card { padding: 26px; border: 1px solid var(--bfs-chain); border-radius: 18px; background: #fff; }
.bfs-post-card time { color: var(--bfs-muted); font-size: .84rem; }
.bfs-post-card h3 { margin: 10px 0; font-size: 1.25rem; line-height: 1.2; }
.bfs-post-card a { color: var(--bfs-midnight); text-decoration: none; }

.bfs-site-footer { padding-block: 58px 28px; color: #cbd3e4; background: #0b1121; }
.bfs-footer-grid { display: grid; grid-template-columns: 1.2fr repeat(2, .7fr); gap: 60px; }
.bfs-site-footer h2, .bfs-site-footer h3 { color: #fff; }
.bfs-site-footer h2 { margin: 0; font-size: 1.6rem; }
.bfs-site-footer h3 { margin: 0 0 13px; font-size: .9rem; text-transform: uppercase; letter-spacing: .13em; }
.bfs-site-footer a { color: #cbd3e4; text-decoration: none; }
.bfs-site-footer ul { margin: 0; padding: 0; list-style: none; }
.bfs-site-footer li { margin: 7px 0; }
.bfs-footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; }

body:not(.home) .site-content { width: min(calc(100% - 40px), var(--bfs-max)); margin: 0 auto; padding-block: 58px; }
body:not(.home) .content-area { width: 100%; }
body:not(.home) #right-sidebar { display: none; }
body:not(.home) .site-main { margin: 0; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: 16px; border: 1px solid var(--bfs-chain); border-radius: 18px; background: #fff; }
.woocommerce ul.products li.product img { aspect-ratio: 1; object-fit: contain; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { border-radius: 999px; color: #fff; background: var(--bfs-midnight); }

@media (max-width: 960px) {
  .bfs-menu-toggle { display: inline-flex; }
  .bfs-nav { position: absolute; inset: 76px 0 auto; display: none; padding: 18px 20px 24px; border-bottom: 1px solid var(--bfs-chain); background: #fff; }
  .bfs-nav.is-open { display: block; }
  .bfs-nav ul { width: min(100%, var(--bfs-max)); margin: auto; align-items: stretch; flex-direction: column; gap: 4px; }
  .bfs-nav a { display: block; padding: 12px; }
  .bfs-hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 46px; }
  .bfs-product-spotlight { max-width: 620px; transform: none; }
  .bfs-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .bfs-trust-item:nth-child(2) { border-right: 0; }
  .bfs-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--bfs-chain); }
  .bfs-product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bfs-guide-panel { grid-template-columns: 1fr; }
  .bfs-guide-mark { min-height: 220px; }
}

@media (max-width: 680px) {
  .bfs-shell { width: min(calc(100% - 28px), var(--bfs-max)); }
  .bfs-brand-name { font-size: .98rem; }
  .bfs-hero-grid { padding-block: 56px 72px; }
  .bfs-hero h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .bfs-product-spotlight img { height: 280px; }
  .bfs-trust { margin-top: -18px; }
  .bfs-trust-grid, .bfs-category-grid, .bfs-post-grid { grid-template-columns: 1fr; }
  .bfs-trust-item { border-right: 0; border-bottom: 1px solid var(--bfs-chain); }
  .bfs-trust-item:nth-child(2) { border-right: 0; }
  .bfs-section { padding-block: 66px; }
  .bfs-section-head { align-items: start; flex-direction: column; }
  .bfs-footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 390px) {
  .bfs-shell, body:not(.home) .site-content { width: calc(100% - 24px); }
  .bfs-header-inner { min-height: 70px; }
  .bfs-brand-mark { width: 39px; height: 39px; }
  .bfs-actions { flex-direction: column; }
  .bfs-button { width: 100%; }
  .bfs-product-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .bfs-product-spotlight-body { padding-inline: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
