/* Category pages: variant A chosen by Egor on 05.11, the same look for every kind of category. Loaded instead of site.css. Tokens, type, cards, effects: base.css.
   Parts shared with the home page (brand strip, part links, quotes, cross cards) are repeated here so a category does not load home.css. */

.is-photo { mix-blend-mode: normal !important; object-fit: cover !important; }
.head .a-link { display: inline-block; padding: 12px 0; margin: -12px 0; }
.product-img img, .a-media img, .a-super-img img, .cmp-thumb img { object-fit: contain; }
/* site.css is not loaded here: the hidden "Price range" text of WooCommerce prices (cart drawer suggestions) stays hidden. */
.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; }

/* Top of a page */
.brand-strip { position: absolute; top: 0; left: 0; height: 4px; width: 100%; background: var(--red); z-index: 4; transform-origin: left center; animation: brandStripGrow 1.2s .3s cubic-bezier(.16,1,.3,1) both; }
@keyframes brandStripGrow { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes kenBurns { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.08) translate(-1%, -0.5%); } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 14px 0 0; color: var(--ink-soft); }
.crumbs a { display: inline-flex; align-items: center; min-height: 28px; }
.crumbs a:hover { color: var(--red); }
.crumbs [aria-current] { color: var(--ink); }
.crumb-sep { color: var(--ink-faint); }

/* The H1 keeps the live text. The first part is set large, the rest of the same sentence smaller. */
.h1-main { display: block; }
.h1-sep { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.h1-tail { display: block; margin-top: 8px; font-family: 'Funnel Sans', 'Funnel Sans Fallback', system-ui, sans-serif; font-weight: 500; font-size: 16px; line-height: 24px; letter-spacing: 0; color: var(--ink-soft); }
.lede { color: rgba(10,14,20,.75); }
.h-note { color: var(--ink-soft); margin-top: 6px; }
.a-head { position: relative; background: var(--hero-cream); overflow: hidden; padding-bottom: 28px; }
.a-head-row { display: grid; gap: 20px; margin-top: 12px; }
.a-head .lede { margin-top: 14px; }
.a-head-plain h1 { margin-top: 12px; }
.a-ship { margin-top: 14px; color: var(--ink-soft); }
.a-ask { margin-top: 24px; }
.cat-notices { padding-top: 16px; }
.cat-notices .woocommerce-message, .cat-notices .woocommerce-error, .cat-notices .woocommerce-info { display: block; padding: 12px 14px; background: var(--cream); border: 1px solid var(--rule); font-size: 14px; line-height: 20px; }
.cat-notices .button { float: right; text-decoration: underline; text-underline-offset: 2px; }

/* The two big sets on the hub */
.a-supers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: end; }
.a-super { display: flex; align-items: center; gap: 10px; padding: 10px; background: #fff; border: 1px solid var(--rule); transition: border-color .2s, transform .3s; }
.a-super:hover { border-color: var(--ink); transform: translateY(-2px); }
.a-super-img { flex: 0 0 52px; width: 52px; height: 52px; background: var(--cream); isolation: isolate; }
.a-super-img img { width: 100%; height: 100%; mix-blend-mode: multiply; }
.a-super .display-mid { display: block; margin-bottom: 4px; }
.a-super-m { display: block; color: var(--ink-soft); }

/* Line cards. Phone: photo left, a short card. The first two are full width. */
.a-lines { display: grid; gap: 12px; }
.a-line { position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 0 14px; padding: 12px; background: #fff; border: 1px solid var(--rule); transition: border-color .2s, box-shadow .3s; }
.a-line:hover { border-color: var(--ink); box-shadow: 0 12px 28px -10px rgba(10,14,20,.18); }
.a-media { position: relative; display: block; aspect-ratio: 1; background: var(--cream); isolation: isolate; overflow: hidden; }
.a-media img { width: 100%; height: 100%; mix-blend-mode: multiply; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.a-line:hover .a-media img { transform: scale(1.06); }
.a-hp { position: absolute; left: 8px; top: 6px; z-index: 1; display: flex; flex-direction: column; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; line-height: 1; }
.a-hp b { font-weight: 700; font-size: 24px; letter-spacing: -0.04em; color: var(--red); }
.a-hp i { font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-style: normal; font-weight: 500; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.a-hpl { color: var(--red); margin-top: 6px; }
.a-line:not(.a-big) .a-hp { display: none; }
.a-big .a-hpl { display: none; }
.a-name { font-size: 20px; line-height: 24px; }
.a-name a:hover { color: var(--red); }
.a-note { color: var(--ink-soft); margin-top: 6px; }
.a-price { font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 700; font-size: 17px; line-height: 24px; letter-spacing: -0.02em; margin-top: 8px; }
.a-sizes { grid-column: 1 / -1; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule-light); }
.a-sizes-l { color: var(--ink-soft); margin-bottom: 8px; }
.a-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.a-chip { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 44px; padding: 0 7px; white-space: nowrap; background: #fff; border: 1px solid var(--rule); font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; transition: background-color .15s, border-color .15s, color .15s; }
.a-chip:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.a-chip:active { transform: scale(.96); }
.a-big { display: block; padding: 0; }
.a-big .a-media { aspect-ratio: 4 / 3; }
.a-big .a-hp { left: 14px; top: 12px; }
.a-big .a-hp b { font-size: 52px; }
.a-big .a-hp i { font-size: 10px; }
.a-big .a-body { padding: 14px 14px 0; }
.a-big .a-name { font-size: 26px; line-height: 30px; }
.a-big .a-sizes { margin: 12px 14px 0; padding-bottom: 14px; }

/* Section cards: the same card, top sellers instead of sizes */
.a-count { margin-top: 6px; color: var(--ink-soft); }
.a-top { grid-column: 1 / -1; margin-top: 12px; border-top: 1px solid var(--rule-light); }
.a-top a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 44px; padding: 11px 0; border-bottom: 1px solid var(--rule-light); font-size: 14px; line-height: 20px; }
.a-top li:last-child a { border-bottom: 0; padding-bottom: 0; }
.a-top a:hover { color: var(--red); }
/* Long names joined by slashes (Mercury/Mercruiser/Force/...) have no place to break and pushed the page wider than a phone. */
.a-top span, .cross-name, .a-name, .a-type-b .display-mid, .a-sub .display-mid { min-width: 0; overflow-wrap: anywhere; }
.a-top b { flex: none; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; }
.a-big .a-top { margin: 12px 14px 0; padding-bottom: 14px; }

/* "Compare series" in the Jack Plates menu lands here, clear of the sticky header */
#cmp-h { scroll-margin-top: 24px; }

/* Plain subcategory links: propellers by motor class */
.a-subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.a-sub { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 64px; padding: 10px 14px; background: #fff; border: 1px solid var(--rule); transition: border-color .15s; }
.a-sub:hover { border-color: var(--ink); }
.a-sub .mono { color: var(--ink-soft); }

/* Product cards */
.has-add .product-link { display: flex; flex-direction: column; flex: 1; }
.has-add .product-add { width: auto; margin: 0 12px 12px; }
.has-add .product-body { flex: none; padding-bottom: 0; }
.has-add .product-link .product-body { flex: 1; }
.has-add .product-add:hover { background: var(--red); }
.has-add .added_to_cart { display: none; }
.has-add .product-add.loading { opacity: .6; }
.cards-few .product-img img { max-height: 420px; }
.cards-few > .product-card:only-child { grid-column: 1 / -1; }
.a-size .product-img { position: relative; }
.a-inch { position: absolute; left: 10px; top: 6px; z-index: 1; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -0.04em; color: var(--ink); }
.a-best { position: absolute; right: 8px; top: 10px; z-index: 1; padding: 4px 7px; background: var(--red); color: #fff; }
.a-best-q { background: var(--ink); }

/* A line's head */
.a-head-photo .a-photo { display: none; background: var(--hero-cream); isolation: isolate; overflow: hidden; }
.a-photo img { width: 100%; height: auto; mix-blend-mode: multiply; max-height: 300px; object-fit: contain; }
.kb-on { animation: kenBurns 18s ease-out forwards; transform-origin: center 55%; }
.a-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; }
.a-specs > div { padding: 10px 12px; background: #fff; border: 1px solid var(--rule); }
.a-specs dt { color: var(--ink-soft); margin-bottom: 4px; }
.a-specs dd { margin: 0; font-size: 18px; line-height: 24px; }
.a-notes { display: grid; gap: 10px; margin-top: 20px; color: var(--ink-soft); }
.a-notes b { color: var(--ink); }
.a-reviews { display: grid; gap: 20px; }
.a-why { display: block; margin-bottom: 4px; }
.a-others .cross-card { background: #fff; }

.quotes { display: grid; gap: 12px; align-content: start; }
.quote { padding: 20px; background: var(--cream); border: 1px solid var(--rule); }
.quote-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.quote-top .stars { margin: 0; }
.quote blockquote { color: rgba(10,14,20,.8); margin-bottom: 8px; }
.quote figcaption { color: var(--ink-soft); }
.cross { display: grid; gap: 12px; }
.cross-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: #fff; border: 1px solid var(--rule); color: var(--ink); transition: border-color .2s, transform .2s; }
.cross-card:hover { border-color: var(--ink); transform: translateX(3px); }
.cross-img { flex: 0 0 72px; width: 72px; height: 72px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cross-img img { width: 100%; height: 100%; object-fit: contain; }
.cross-name { display: block; margin-bottom: 4px; }
.cross-price { display: block; }
.part-links { display: grid; grid-template-columns: 1fr; align-content: start; }
.part-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 20px; font-weight: 500; }
.part-links a:hover { color: var(--red); }
.part-links a::after { content: '\2192'; font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 12px; color: var(--ink-soft); }
.neighbors { display: grid; gap: 18px; }

/* Pagination: plain links, the addresses of the live pages */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; }
.pg { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--rule); background: #fff; color: var(--ink); font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 14px; transition: border-color .2s; }
a.pg:hover { border-color: var(--ink); }
.pg-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pg-next { padding: 0 16px; }

/* Help choosing */
.cfg-entry { position: relative; background: var(--ink); color: #fff; padding: 28px 0; }
.cfg-entry::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--red); }
.cfg-entry-row { display: grid; gap: 18px; }
.cfg-entry-note { color: rgba(255,255,255,.6); margin-top: 8px; }
.cfg-entry-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Long lists on a phone: first items and a button, everything stays in the HTML */
.fold-btn { display: none; width: 100%; min-height: 48px; margin-top: 12px; background: #fff; border: 1px solid var(--ink); color: var(--ink); font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 15px; cursor: pointer; }
@media (max-width: 767px) {
  .js .m-fold:not(.open) > .m-rest { display: none; }
  .js .fold-btn { display: block; }
  .js .fold-btn[hidden] { display: none; }
}

/* TS&S: the black block from the home page. No olive, Bob's red. The logo keeps its own colors.
   Red on this black is 2.77:1, too low for text or a thin line, so red only appears as a fill with white on it (6.07:1). */
.tss-page { background: var(--tss-black); color: #fff; }
.tss-page .crumbs { color: rgba(255,255,255,.6); }
.tss-page .crumbs [aria-current] { color: #fff; }
.tss-page .crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.tss-page .crumb-sep { color: rgba(255,255,255,.35); }
.tss-page .stars { margin: 0; }
.tss-page :focus-visible { outline-color: #fff; }
.tss-page .h-note, .tss-page .h1-tail { color: rgba(255,255,255,.65); }
.tss-page .head .mono { color: rgba(255,255,255,.65); }
.tss-sec { padding: 28px 0; border-top: 1px solid rgba(255,255,255,.14); }
.tss-brandline { display: flex; align-items: flex-start; gap: 14px; }
.tss-logo { width: 84px; height: auto; flex-shrink: 0; }
.tss-phrase { color: rgba(255,255,255,.78); margin: 14px 0 12px; }
.tss-score { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: rgba(255,255,255,.75); margin-bottom: 18px; }
.a-tss-hero { padding-bottom: 28px; }
.a-tss-sub .tss-logo { width: 56px; }
.a-tss-sub .tss-brandline { align-items: center; margin-top: 12px; }
.a-tss-row { display: grid; gap: 20px; margin-top: 12px; }
.a-tss-photo { overflow: hidden; aspect-ratio: 4 / 3; }
.a-tss-photo img { width: 100%; height: 100%; object-fit: cover; }
.a-brands { display: grid; gap: 10px; }
.a-brand { background: #fff; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow .3s; }
.a-brand:hover { box-shadow: 0 12px 28px -12px rgba(0,0,0,.7); }
.a-brand-main { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 12px; }
.a-brand-img { display: block; aspect-ratio: 1; overflow: hidden; }
.a-brand-img img { width: 100%; height: 100%; object-fit: contain; }
.a-brand-t { display: block; }
.a-brand-t .display { display: block; margin-bottom: 6px; }
.a-brand-t .mono { color: var(--ink-soft); display: block; }
.a-brand-links { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--rule); margin-top: auto; }
.a-brand-links a { display: flex; flex-direction: column; justify-content: center; min-height: 54px; padding: 8px 10px; font-size: 13px; line-height: 16px; font-weight: 500; transition: background-color .15s, color .15s; }
.a-brand-links a + a { border-left: 1px solid var(--rule); }
.a-brand-links a:hover { background: var(--red); color: #fff; }
.a-brand-links .mono { color: var(--ink-soft); margin-top: 2px; }
.a-brand-links a:hover .mono { color: #fff; }
.a-makers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.a-maker { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 14px; border: 1px solid rgba(255,255,255,.22); font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 15px; transition: border-color .15s, background-color .15s; }
.a-maker:hover { background: var(--red); border-color: var(--red); }
.a-maker .mono { color: rgba(255,255,255,.6); }
.a-maker:hover .mono { color: #fff; }
.a-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.a-type { display: flex; flex-direction: column; background: #fff; color: var(--ink); transition: transform .3s, box-shadow .3s; }
.a-type:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(0,0,0,.7); }
.a-type:last-child { grid-column: 1 / -1; }
.a-type-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.a-type-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.a-type:hover .a-type-img img { transform: scale(1.04); }
.a-type-b { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 10px 12px 14px; border-top: 1px solid var(--rule-light); }
.a-type-l { color: var(--ink-soft); }
.a-type-b .mono { margin-top: auto; color: var(--ink-soft); }
.tss-quotes { display: grid; gap: 10px; }
.tss-quote { padding: 16px; border: 1px solid rgba(255,255,255,.16); }
.tss-quote .stars { margin: 0 0 8px; }
.tss-quote blockquote { margin-bottom: 8px; }
.tss-quote figcaption { color: rgba(255,255,255,.65); }
/* Product cards on black: white, no frame, the photo on white */
.tss-page .product-card { border-color: transparent; }
.tss-page .product-card:hover { border-color: transparent; box-shadow: 0 12px 28px -12px rgba(0,0,0,.7); }
.tss-page .product-img { aspect-ratio: 4 / 3; background: #fff; }
.tss-page .product-img img { mix-blend-mode: normal; }
.tss-page .product-card .product-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tss-page .pg { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.tss-page a.pg:hover { background: var(--red); border-color: var(--red); }
.tss-page .pg-on { background: #fff; border-color: #fff; color: var(--ink); }

@media (min-width: 768px) {
  .a-line:not(.a-big) .a-hp { display: flex; }
  .a-hpl { display: none; }
  .a-head { padding-bottom: 40px; }
  .a-head-row { grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; }
  .a-supers { align-self: end; }
  .a-head-photo { align-items: center; }
  .a-head-photo .a-photo { display: block; }
  .a-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-line { display: flex; flex-direction: column; padding: 0; }
  .a-line .a-media { aspect-ratio: 4 / 3; }
  .a-line .a-hp { left: 14px; top: 12px; }
  .a-line .a-hp b { font-size: 44px; }
  .a-line .a-hp i { font-size: 10px; }
  .a-line .a-body { padding: 14px 16px 0; }
  .a-line .a-sizes { margin: auto 16px 0; padding: 12px 0 16px; }
  .a-line .a-note { min-height: 40px; }
  .a-line .a-top { margin: 12px 16px 0; padding-bottom: 14px; }
  .a-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .a-specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .a-reviews { grid-template-columns: 4fr 8fr; gap: 40px; }
  .a-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-tss-row { grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
  .a-inch { font-size: 40px; }
  .a-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-makers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .a-subs { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .a-types { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .a-type { grid-column: span 3; }
  .a-type:nth-child(-n+3) { grid-column: span 4; }
  .a-type:last-child { grid-column: span 3; }
  .cfg-entry-row { grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
  .neighbors { grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
  .cross { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tss-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .part-links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .tss-logo { width: 104px; }
  /* One or two products: a big card, photo on the left, not a stray column in a grid of four */
  .cards-few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-few > a.product-card, .cards-few .product-link { flex-direction: row; }
  .cards-few .product-img { flex: 0 0 45%; border-bottom: 0; border-right: 1px solid var(--rule-light); }
  .cards-few > .product-card:only-child .product-img { flex-basis: 34%; }
}

@media (min-width: 1024px) {
  .has-add .product-add { margin: 0 16px 18px; }
  .h1-tail { font-size: 20px; line-height: 28px; }
  .cfg-entry { padding: 36px 0; }
  .tss-sec { padding: 40px 0; }
  .a-makers { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .a-lines { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .a-line { grid-column: span 2; }
  .a-big { grid-column: span 3; display: flex; }
  .a-big .a-media { aspect-ratio: 16 / 10; }
  .a-big .a-hp b { font-size: 76px; }
  .a-big .a-hp { left: 20px; top: 16px; }
  .a-big .a-body { padding: 20px 24px 0; }
  .a-big .a-name { font-size: 36px; line-height: 40px; }
  .a-big .a-note { font-size: 16px; line-height: 24px; min-height: 48px; }
  .a-big .a-price { font-size: 22px; margin-top: 10px; }
  .a-big .a-sizes { margin: auto 24px 0; padding: 14px 0 24px; }
  .a-big .a-top { margin: 12px 24px 0; padding-bottom: 20px; }
  .a-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .a-brand-main { display: block; padding: 0; }
  .a-brand-img { aspect-ratio: 4 / 3; }
  .a-brand-t { padding: 12px 14px 14px; }
  .cross { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tss-logo { width: 124px; }
}
