/* Smitty's Shop storefront — from the approved mockup v3.
   Everything is scoped under `body .smt` (CSS nesting) so it beats the Hello theme reset
   and Elementor kit globals without leaking into other pages. */

.smt {
  --navy: #1C2444;
  --navy-2: #2A3560;
  --coral: #FF8787;
  --coral-dk: #F26B6B;
  --red: #D7262E;        /* logo red: sale price only */
  --teal: #0B7B69;
  --teal-bg: #DDF3EE;
  --paper: #F3F4F8;
  --card: #FFFFFF;
  --line: #DCDFEA;
  --ink: #161B31;
  --muted: #586079;
  --display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Saira", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 16px;
  --max: 1200px;
}

body.smt-page { background: #F3F4F8 }

body .smt {
  color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; font-weight: 400; /* site body is 700 */
  &:where(main) { background: var(--paper); display: block }
  & *, & *::before, & *::after { box-sizing: border-box }
  & h1, & h2, & h3, & h4 { font-family: var(--display); font-weight: 900; line-height: 1.02; margin: 0; text-wrap: balance; text-transform: uppercase; letter-spacing: .005em; color: inherit }
  & p { margin: 0 }
  & a { color: inherit }
  & img { max-width: 100%; height: auto }
  & button, & select, & input, & textarea { font: inherit }
  & :focus-visible { outline: 3px solid var(--coral-dk); outline-offset: 2px }
  & .wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter) }
  & .eyebrow { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) }
  & .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
  & .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }

  /* buttons */
  & .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 5px; border: 2px solid transparent; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; text-decoration: none; line-height: 1; transition: background .15s, color .15s, border-color .15s }
  & .btn-coral { background: var(--coral); color: var(--navy) }
  & .btn-coral:hover { background: var(--coral-dk); color: var(--navy) }
  & .btn-coral:disabled { opacity: .55; cursor: not-allowed }
  & .btn-ghost { border-color: currentColor; color: inherit; background: transparent }
  & .btn-ghost:hover { background: rgba(255,255,255,.1) }
  & .btn-ghost.navy { color: var(--navy) }
  & .btn-ghost.navy:hover { background: var(--navy); color: #fff; border-color: var(--navy) }
  & .btn-navy { background: var(--navy); color: #fff }
  & .btn-navy:hover { background: var(--navy-2); color: #fff }
  & .btn-sm { min-height: 38px; font-size: 15px; padding: 0 14px; margin-top: 8px; justify-self: start }
  & .linkish { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; cursor: pointer; font-weight: 600 }

  /* sections */
  & .section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px }
  & .section-head h2 { font-size: clamp(30px, 4vw, 44px); color: var(--navy) }
  & .section-head a { font-weight: 600; color: var(--navy) }

  /* build tag */
  & .tag { display: inline-flex; align-items: center; gap: 10px; background: #FFF8E6; color: var(--navy); border: 1.5px solid #E7D29A; border-radius: 4px 14px 14px 4px; padding: 7px 14px 7px 10px; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(20, 26, 50, .18); position: relative }
  & .tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid #E7D29A; flex: none }

  /* shop by type */
  & .types { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px }
  & .type-tile { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 10px 14px; text-decoration: none; display: grid; gap: 6px; align-content: start; text-align: left; transition: border-color .15s, transform .15s }
  & .type-tile:hover { border-color: var(--navy); transform: translateY(-2px) }
  & .type-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain }
  & .type-tile b { font-family: var(--display); font-weight: 800; font-size: 19px; text-transform: uppercase; color: var(--navy); line-height: 1.05 }
  & .type-tile span { font-size: 13px; color: var(--muted) }
  @media (max-width: 1060px) { & .types { grid-template-columns: repeat(4, minmax(0, 1fr)) } }
  @media (max-width: 560px) { & .types { grid-template-columns: repeat(2, minmax(0, 1fr)) } }

  /* brands */
  & .brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px }
  & .brand-panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center }
  & .brand-panel h3 { font-size: 40px; color: var(--navy) }
  & .brand-panel p { color: var(--muted); margin-top: 8px; font-size: 15px }
  & .brand-panel .eyebrow { margin-top: 0 }
  & .brand-panel .btn { margin-top: 16px }
  & .brand-panel img { width: 100%; height: auto }
  @media (max-width: 860px) { & .brands { grid-template-columns: 1fr } }
  @media (max-width: 480px) { & .brand-panel { grid-template-columns: 1fr } }

  /* cards */
  & .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px }
  & .bike-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; text-align: left; padding: 0; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s }
  & .bike-card:hover { border-color: var(--navy); box-shadow: 0 10px 26px rgba(28, 36, 68, .12) }
  & .bike-card[hidden] { display: none }
  & .bike-card .pic { background: #fff; aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; border-bottom: 1px solid var(--line) }
  & .bike-card .pic img { width: 90%; height: 90%; object-fit: contain }
  & .bike-card .badge-sale { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .08em; padding: 2px 8px; border-radius: 3px; text-transform: uppercase }
  & .bike-card .body { padding: 14px 16px 16px; display: grid; gap: 6px; flex: 1; align-content: start }
  & .bike-card h3 { font-size: 24px; color: var(--navy) }
  & .bike-card h3 a { text-decoration: none }
  & .meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted) }
  & .meta span { border: 1px solid var(--line); border-radius: 3px; padding: 0 7px }
  & .demo-chip { display: inline-block; border: 1px solid var(--teal); color: var(--teal); background: var(--teal-bg); font-weight: 600; font-size: 13px; border-radius: 3px; padding: 0 7px }
  & .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-variant-numeric: tabular-nums; margin-top: 4px }
  & .price b { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--ink) }
  & .price s { color: var(--muted); font-size: 15px }
  & .price .save { color: var(--red); font-weight: 600; font-size: 14px }
  & .avail { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; margin-top: 2px }
  & .avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none }
  & .avail.instock { color: var(--teal) }
  & .avail.order { color: var(--navy-2) }

  /* page title */
  & .page-title { background: var(--navy); color: #fff; padding-block: 36px 30px }
  & .page-title h1 { font-size: clamp(38px, 5vw, 60px) }
  & .page-title p { color: #D6DAEC; margin-top: 8px; max-width: 60ch }
  & .page-title .crumbs { color: #AEB5D3; margin: 0 0 10px }
  & .crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 10px }
  & .crumbs a { text-decoration: none }
  & .crumbs a:hover { text-decoration: underline }

  /* listing */
  & .listing { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start }
  & .filters { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: grid; gap: 20px; position: sticky; top: 90px }
  & .filters h4, & .opt h4 { font-size: 16px; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px }
  & .chips { display: flex; flex-wrap: wrap; gap: 6px }
  & .chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 14px; line-height: 1.4; cursor: pointer; color: var(--ink); font-weight: 400; text-transform: none; letter-spacing: 0 }
  & .chip:hover { border-color: var(--navy); background: #fff; color: var(--ink) }
  & .chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy) }
  & .chip.unavailable { opacity: .45; text-decoration: line-through }
  & .check { display: flex; align-items: center; gap: 9px; font-size: 15px; padding: 3px 0; cursor: pointer; font-weight: 400 }
  & .check input { width: 17px; height: 17px; accent-color: var(--navy); margin: 0 }
  & .results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px }
  & .results-bar select { border: 1px solid var(--line); border-radius: 5px; padding: 7px 10px; background: #fff; color: var(--ink); width: auto }
  & .empty-results { background: #fff; border: 1px dashed var(--line); border-radius: 8px; padding: 32px; text-align: center; color: var(--muted) }
  @media (max-width: 860px) {
    & .listing { grid-template-columns: 1fr }
    & .filters { position: static }
  }

  /* product page */
  & .pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; padding-block: 32px 56px }
  & .gallery-col { position: sticky; top: 90px; display: grid; gap: 10px }
  & .pdp .gallery { background: #fff; border: 1px solid var(--line); border-radius: 10px; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden }
  & .pdp .gallery img { width: 88%; height: 88%; object-fit: contain }
  & .thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin }
  & .thumb { flex: 0 0 72px; height: 72px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; display: grid; place-items: center }
  & .thumb:hover { background: #fff; border-color: var(--navy) }
  & .thumb[aria-pressed="true"] { border: 2px solid var(--navy) }
  & .thumb img { width: 100%; height: 100%; object-fit: contain }
  & .pdp h1 { font-size: clamp(38px, 5vw, 58px); color: var(--navy) }
  & .pdp .price b { font-size: 36px }
  & .opt { margin-top: 20px }
  & .opt-picked { font-family: var(--body); font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink); margin-left: 8px; font-size: 15px }
  & .opt-hint { color: var(--red); font-size: 14px; margin-top: 8px }
  & .fulfil { margin-top: 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden }
  & .fulfil label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; cursor: pointer; border-top: 1px solid var(--line); margin: 0; font-weight: 400 }
  & .fulfil label:first-child { border-top: 0 }
  & .fulfil label:has(input:checked) { background: #F8F9FC }
  & .fulfil input { margin-top: 5px; accent-color: var(--navy); width: 17px; height: 17px }
  & .fulfil b { display: block; font-weight: 600 }
  & .fulfil small { color: var(--muted); font-size: 13.5px; display: block }
  & .fulfil .cost { font-family: var(--display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums }
  & .lead-note { margin-top: 12px; font-size: 14.5px; color: var(--muted) }
  & .buy { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap }
  & .buy .btn { flex: 1 1 200px }
  & .klarna { font-size: 14px; color: var(--muted); margin-top: 10px }
  & .final { font-size: 14px; color: var(--ink); margin-top: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: 4px }
  & .desc { margin-top: 24px; color: var(--ink) }
  & .desc p + p { margin-top: 10px }
  & .specs { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 15px; background: none; border: 0 }
  & .specs th, & .specs td { text-align: left; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; background: none }
  & .specs th { width: 38%; color: var(--muted); font-weight: 500; padding-right: 12px }
  & .fullspecs { margin-top: 20px; border-top: 1px solid var(--line) }
  & .fullspecs summary { cursor: pointer; padding: 14px 0; font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); list-style: none; display: flex; justify-content: space-between }
  & .fullspecs summary::-webkit-details-marker { display: none }
  & .fullspecs summary::after { content: "+"; color: var(--coral-dk) }
  & .fullspecs[open] summary::after { content: "–" }
  & .fullspecs h4 { font-size: 16px; letter-spacing: .1em; color: var(--muted); margin-top: 18px }
  & .fullspecs .specs { margin-top: 6px; font-size: 14.5px }
  & .spec-src { font-size: 13px; color: var(--muted); margin-top: 12px }
  & .why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px }
  & .why div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 13.5px; color: var(--muted) }
  & .why b { display: block; color: var(--navy); font-family: var(--display); font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: .03em }
  @media (max-width: 860px) {
    & .pdp { grid-template-columns: 1fr; gap: 24px; padding-top: 20px }
    & .gallery-col { position: static }
    & .why { grid-template-columns: 1fr }
  }

  /* used */
  & .used-empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 40px }
  & .used-empty h2 { font-size: clamp(36px, 5vw, 56px); color: var(--navy) }
  & .used-empty p { color: var(--muted); margin-top: 12px; max-width: 48ch; font-size: 17px }
  & .used-empty .eyebrow { margin-top: 0; font-size: 14px }
  & .notify { display: grid; gap: 10px; margin-top: 22px; max-width: 460px }
  & .notify .row { display: flex; gap: 8px; flex-wrap: wrap }
  & .notify input, & .notify select { flex: 1 1 180px; border: 1px solid var(--line); border-radius: 5px; padding: 11px 12px; background: #fff; color: var(--ink); min-width: 0 }
  & .ok { color: var(--teal); font-weight: 600 }
  & .stand svg { width: 100%; height: auto; display: block }
  & .trade { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px }
  & .trade > div { background: var(--navy); color: #fff; border-radius: 10px; padding: 24px }
  & .trade > div.light { background: #fff; color: var(--ink); border: 1px solid var(--line) }
  & .trade h3 { font-size: 28px }
  & .trade .light h3 { color: var(--navy) }
  & .trade p { color: #D6DAEC; margin-top: 8px; margin-bottom: 16px }
  & .trade .light p { color: var(--muted) }
  & .trade .eyebrow { margin: 0 0 4px }
  @media (max-width: 820px) {
    & .used-empty { grid-template-columns: 1fr; padding: 24px }
    & .trade { grid-template-columns: 1fr }
  }

  /* parts */
  & .part-card .pic { aspect-ratio: 1 / 1 }
  & .onlyone { position: absolute; top: 10px; right: 10px; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .08em; padding: 2px 8px; border-radius: 3px; text-transform: uppercase }
  & .fits { font-size: 13.5px; color: var(--muted) }
  & .shipline { font-size: 13px; color: var(--teal); font-weight: 600 }
  & .part-ph { width: 62%; height: 62%; color: #B9BFD4 }
  & #accessories { scroll-margin-top: 100px }

  /* demo */
  & .spots { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px }
  & .spots li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; background: var(--navy-2); border-radius: 8px; padding: 12px 14px; color: #fff; margin: 0 }
  & .spots svg { width: 26px; height: 26px; color: var(--coral) }
  & .spots b { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: .03em }
  & .spots span { color: #AEB5D3; font-size: 14px }
  & .demo-form { background: #fff; color: var(--ink); border-radius: 10px; padding: 24px; display: grid; gap: 12px; margin: 0 }
  & .demo-form h3 { font-size: 30px; color: var(--navy) }
  & .demo-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px }
  & .demo-form input, & .demo-form select, & .demo-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 10px 12px; background: #fff; color: var(--ink); min-width: 0 }
  & .demo-form .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px }
  @media (max-width: 460px) { & .demo-form .two { grid-template-columns: 1fr } }

  /* woo notices inside our pages */
  & .smt-notices:empty { display: none }
  & .smt-notices .woocommerce-message, & .smt-notices .woocommerce-error, & .smt-notices .woocommerce-info { margin: 16px 0 0 }
}

/* preview bar (outside .smt) */
.smt-previewbar { background: #FFF4C2; color: #4A3F0B; border-bottom: 1px dashed #E9CF5E; font: 600 13px/1.4 system-ui, sans-serif; padding: 6px 16px; text-align: center; position: relative; z-index: 9999 }
.smt-previewbar a { color: inherit }

/* checkout sales-final checkbox */
.smt-final-check { background: #fff; border: 1px solid #DCDFEA; border-left: 3px solid #1C2444; border-radius: 4px; padding: 10px 12px !important; margin-bottom: 14px !important }
.smt-final-check label { display: flex !important; gap: 8px; align-items: flex-start; font-size: 14.5px; line-height: 1.45 }
.smt-final-check input { margin-top: 4px !important; flex: none }

@media (prefers-reduced-motion: reduce) { .smt * { transition: none !important } }

/* jump targets placed by [smt_anchor] (sit above sticky headers) */
.smt-anchor { display: block; position: relative; top: -100px; visibility: hidden; height: 0 }

/* header cart link ([smt_cart]) — lives in the Elementor header, outside .smt */
a.smt-cart { display: inline-flex; align-items: center; gap: 8px; font-family: "Saira", sans-serif; font-weight: 600; font-size: 16px; color: #1C2444; text-decoration: none; white-space: nowrap; position: relative }
a.smt-cart:hover { color: #F26B6B }
a.smt-cart svg { width: 24px; height: 24px; flex: none }
a.smt-cart .smt-cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #FF8787; color: #1C2444; font-size: 12.5px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1 }
@media (max-width: 560px) { a.smt-cart .smt-cart-label { display: none } }

/* gift card page */
body .smt .price .from { font-family: var(--body); font-weight: 500; font-size: .5em; color: var(--muted); text-transform: none; letter-spacing: 0; margin-right: 2px }
body .smt .giftinfo { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--coral); border-radius: 10px; padding: 16px 18px }
body .smt .giftinfo h4 { font-size: 16px; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px }
body .smt .giftinfo ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px }
body .smt .giftinfo p { margin-top: 10px; font-size: 14px; color: var(--muted) }
body .smt .giftinfo a { color: var(--navy); font-weight: 600 }
