/* Online Performance Parts, store proposal. The logo's blue on black and
   white; slanted heavy headings like the logo's lettering. Each part maps
   to a Shopify section (see the comments in the pages). */
:root {
  --ink: #12161d;
  --muted: #5d6675;
  --line: #e3e7ee;
  --paper: #ffffff;
  --tint: #f3f5f9;
  --night: #0a0e14;
  --night-2: #121925;
  --blue: #1f7bff;
  --blue-light: #8cc4ff;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 Barlow, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4, .kicker, .button, .card-price, .product-price, .price { font-family: "Barlow Condensed", Barlow, system-ui, sans-serif; }
h1, h2 { font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; line-height: 1; }
h2 { font-size: clamp(30px, 4vw, 42px); margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 14px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }

/* announcement-bar: says what this is */
.proposal { background: var(--blue); color: #fff; text-align: center; font-size: 13.5px; padding: 7px 16px; }
.proposal a { color: #fff; font-weight: 600; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 78px; }
.logo img { height: 58px; width: auto; }
.main-nav { display: flex; gap: 22px; flex: 1; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.on { border-color: var(--blue); }
.tools { display: flex; align-items: center; gap: 14px; }
.search input { width: 220px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: var(--tint); }
.cart-link { color: var(--ink); font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.cart-count { background: var(--night); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12.5px; padding: 0 6px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

/* buttons */
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.button { display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: 8px; padding: 13px 26px; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; cursor: pointer; transform: skewX(-8deg); }
.button > * { transform: skewX(8deg); }
.button:hover { background: #0f63db; }
.button.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.button.ghost:hover { box-shadow: inset 0 0 0 2px #fff; }

/* image-banner: the parts picture behind, the text on its dark left side */
.hero { background: linear-gradient(90deg, var(--night) 0%, rgba(10, 14, 20, .92) 30%, rgba(10, 14, 20, .2) 58%, transparent 75%), url(img/opp-hero.webp) right center / cover no-repeat, radial-gradient(ellipse at 75% 40%, rgba(31, 123, 255, .35), transparent 55%), var(--night); color: #fff; min-height: 440px; display: flex; align-items: center; padding: 48px 0; border-bottom: 4px solid var(--blue); }
.hero .wrap { width: 100%; }
.hero-text { max-width: 560px; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); margin: 0 0 16px; }
.hero h1 em { color: var(--blue-light); }
.hero p { color: #c9d3e3; font-size: 18px; max-width: 500px; margin: 0; }
.hero-phone { display: none; }

/* logo-list: the brands, scrolling slowly */
.ticker { background: #fff; border-bottom: 1px solid var(--line); padding: 11px 0; overflow: hidden; }
.track { display: flex; gap: 40px; width: max-content; animation: ticker 50s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.track a { display: flex; align-items: center; opacity: .85; transition: opacity .15s; }
.track a:hover { opacity: 1; }
.track img { height: 38px; width: auto; max-width: 120px; object-fit: contain; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 20px; }
  .track a[aria-hidden] { display: none; }
}

/* multicolumn strip */
.strip { background: var(--night); color: #fff; padding: 22px 0; }
.strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.strip b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 20px; text-transform: uppercase; font-style: italic; color: var(--blue-light); }
.strip span { color: #b8c3d4; font-size: 15px; }

/* section heads */
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; border-bottom: 3px solid var(--ink); padding-bottom: 10px; }
.head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.lead { color: var(--muted); font-size: 18px; margin: -8px 0 24px; max-width: 720px; }
.dark { background: var(--night); color: #fff; }
.dark .head { border-color: var(--blue); }
.dark .head a { color: var(--blue-light); }
.dark .lead { color: #b8c3d4; }
.tint { background: var(--tint); }

/* image-with-text: the new address */
.unveil { background: radial-gradient(ellipse at 20% 50%, rgba(31, 123, 255, .28), transparent 60%), var(--night-2); color: #fff; padding: 44px 0; border-bottom: 1px solid #223049; }
.unveil .two { grid-template-columns: minmax(0, 400px) 1fr; gap: 48px; }
.unveil h2 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 12px; }
.unveil h2 em { color: var(--blue-light); }
.unveil p { color: #c9d3e3; font-size: 18px; margin: 0; }
.unveil b { color: #fff; }

/* collection-list: brands */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.brand-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(10, 14, 20, .12); border-color: var(--blue); }
.brand-logo { height: 80px; display: grid; place-items: center; }
.brand-logo img { max-height: 80px; width: auto; object-fit: contain; }
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand-count { color: var(--muted); font-size: 13px; }

/* featured Manimal builds */
.builds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.build { background: var(--night-2); border: 1px solid #223049; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.build:hover { border-color: var(--blue); transform: translateY(-3px); }
.build img { width: 100%; background: #fff; aspect-ratio: 1; object-fit: contain; }
.build div { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.build h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.2; flex: 1; }
.price { font-size: 24px; font-weight: 700; color: var(--blue-light); }

/* card-product */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: opacity .25s, transform .3s; }
.card-media img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media img { transform: scale(1.04); }
.card:hover .card-media img.alt { opacity: 1; }
.card:hover .card-media:has(img.alt) img:not(.alt) { opacity: 0; }
.badge { position: absolute; left: 10px; top: 10px; background: var(--night); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.card-info { padding: 10px 2px 0; }
.card-vendor { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.card h3 { margin: 2px 0 4px; font-family: Barlow, sans-serif; font-size: 16px; font-weight: 600; line-height: 1.3; }
.card:hover h3 { color: var(--blue); }
.card-price { font-size: 21px; font-weight: 700; }

/* image-with-text */
.visit { background: var(--night); color: #fff; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.visit img { border-radius: 14px; }
.visit p { color: #c9d3e3; font-size: 18px; }

/* collection page */
.coll-head { background: linear-gradient(180deg, var(--night-2), var(--night)); color: #fff; padding: 34px 0 30px; border-bottom: 4px solid var(--blue); }
.coll-head h1 { font-size: clamp(36px, 5vw, 56px); margin: 8px 0; }
.coll-head p { color: #c9d3e3; margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); }
.coll-head .crumbs, .coll-head .crumbs a { color: #9fb0c8; }
.crumbs a { color: var(--muted); }
.coll { padding-top: 30px; }
.coll-layout { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: start; }
.filters { position: sticky; top: 100px; }
.filters h4 { margin: 18px 0 8px; font-size: 18px; text-transform: uppercase; font-style: italic; }
.filters h4:first-child { margin-top: 0; }
.filters label { display: block; padding: 3px 0; cursor: pointer; }
.coll-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; color: var(--muted); }
.coll-bar select { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; margin-left: 6px; }
.coll-grid { grid-template-columns: repeat(3, 1fr); }
.empty { color: var(--muted); }

/* product page */
.product { padding-top: 26px; }
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; margin-top: 16px; align-items: start; }
.gallery { position: sticky; top: 100px; }
.main-img { border: 1px solid var(--line); border-radius: 14px; aspect-ratio: 1; object-fit: contain; background: #fff; width: 100%; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { border: 2px solid var(--line); border-radius: 8px; padding: 0; background: #fff; cursor: pointer; width: 84px; overflow: hidden; }
.thumb.on { border-color: var(--blue); }
.buy h1 { font-size: clamp(34px, 4vw, 48px); margin: 6px 0 10px; }
.product-price { font-size: 34px; font-weight: 700; }
.stock { margin: 4px 0 18px; font-weight: 600; }
.stock.in { color: #16803c; }
.stock.out { color: #b42318; }
.picker { border: 0; padding: 0; margin: 0 0 18px; }
.picker legend { font-weight: 600; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices button { font: inherit; font-weight: 600; min-width: 56px; padding: 9px 16px; border: 2px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; }
.choices button:hover { border-color: var(--ink); }
.choices button.on { border-color: var(--blue); background: #eaf3ff; }
.choices button.gone { color: #9aa3b1; text-decoration: line-through; }
.qty-row { display: flex; gap: 12px; margin: 24px 0; }
.qty { display: flex; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { background: #fff; border: 0; width: 42px; font-size: 20px; cursor: pointer; }
.qty input { width: 54px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.add { flex: 1; font-size: 20px; }
.add:disabled { background: #9aa3b1; cursor: not-allowed; }
.product-notes { border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); }

/* cart */
.cart h1 { font-size: 46px; margin: 0 0 24px; }
.cart-items { border-top: 3px solid var(--ink); }
.line { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { border: 1px solid var(--line); border-radius: 8px; background: #fff; aspect-ratio: 1; object-fit: contain; }
.line h3 { margin: 0; font-family: Barlow, sans-serif; font-size: 17px; }
.line .opts { color: var(--muted); font-size: 14px; }
.line .qty { display: inline-flex; margin-top: 8px; }
.line .qty input { width: 44px; }
.line .remove { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; font-size: 14px; }
.line .sum { font-family: "Barlow Condensed", sans-serif; font-size: 22px; font-weight: 700; min-width: 100px; text-align: right; }
.cart-foot { text-align: right; margin-top: 22px; }
.subtotal { font-size: 22px; }
.subtotal b { font-family: "Barlow Condensed", sans-serif; font-size: 30px; margin-left: 10px; }
.fine { color: var(--muted); font-size: 14px; }
.mock-note { color: var(--blue); font-weight: 600; }

/* footer */
.foot { background: var(--night); color: #b8c3d4; padding: 48px 0 20px; border-top: 4px solid var(--blue); }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-logo { width: 300px; margin-bottom: 14px; }

/* the business card idea (not a store page) */
.card-idea { padding: 44px 0 60px; }
.card-idea h1 { margin: 0 0 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; margin: 28px 0; }
.cards figure { margin: 0; }
.cards img { width: 100%; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.cards figcaption { margin-top: 10px; color: var(--muted); font-weight: 600; }
.foot h4 { color: #fff; text-transform: uppercase; font-style: italic; font-size: 19px; margin: 0 0 10px; }
.foot a { display: block; color: #b8c3d4; text-decoration: none; padding: 3px 0; }
.foot a:hover { color: #fff; }
.foot .fine { margin-top: 34px; border-top: 1px solid #223049; padding-top: 16px; color: #7f8ca1; }

@media (max-width: 1100px) {
  .brands { grid-template-columns: repeat(4, 1fr); }
  .builds { grid-template-columns: repeat(3, 1fr); }
  .search input { width: 160px; }
}
@media (max-width: 860px) {
  .top .wrap { height: 64px; gap: 12px; }
  .logo img { height: 42px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; flex-direction: column; gap: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; }
  .search { display: none; }
  .tools { margin-left: auto; }
  .two, .product-layout, .coll-layout { grid-template-columns: minmax(0, 1fr); }
  .unveil .two { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .unveil img { max-width: 300px; }
  .hero { background: var(--night); min-height: 0; flex-direction: column-reverse; padding: 0 0 36px; }
  .hero-phone { display: block; width: 100%; max-height: 360px; object-fit: cover; margin-bottom: 24px; }
  .strip .wrap { grid-template-columns: 1fr; gap: 10px; }
  .grid, .coll-grid, .grid.three { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .builds { grid-template-columns: repeat(2, 1fr); }
  .filters, .gallery { position: static; }
  .foot .cols { grid-template-columns: 1fr; gap: 24px; }
  .line { grid-template-columns: 72px 1fr; }
  .line .sum { grid-column: 2; text-align: left; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .head { flex-direction: column; gap: 4px; }
}
