/* Bob's Machine theme: tokens, typography, buttons, header, footer, effects. Loaded on every page. */

/* Self-hosted fonts. The Arial fallbacks are tuned to the same metrics, so swapping in the real font does not move the layout. */
@font-face { font-family: 'Funnel Display'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../fonts/funnel-display.woff2) format('woff2'); }
@font-face { font-family: 'Funnel Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../fonts/funnel-sans.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/jetbrains-mono.woff2) format('woff2'); }
@font-face { font-family: 'Funnel Display Fallback'; src: local('Arial'); size-adjust: 105.7%; ascent-override: 94.6%; descent-override: 23.6%; line-gap-override: 0%; }
@font-face { font-family: 'Funnel Sans Fallback'; src: local('Arial'); size-adjust: 100.4%; ascent-override: 99.6%; descent-override: 24.9%; line-gap-override: 0%; }
@font-face { font-family: 'JetBrains Mono Fallback'; src: local('Menlo'), local('Consolas'), local('DejaVu Sans Mono'), local('Courier New'), local('Courier'); size-adjust: 100%; ascent-override: 102%; descent-override: 30%; line-gap-override: 0%; }

:root {
  --red: #B43335;
  --red-dark: #8C2628;
  --red-on-dark: #EC5153; /* Egor 10.11: the brand red #B43335 (hue 359), lighter for small text on black: 5.4:1 on --ink, 4.7:1 on --tss-black. Was a pink #FF8B6B */
  --ink: #0A0E14;
  --ink-soft: #6B6B66;
  --ink-faint: #9A9A95;
  --rule: #E5E5E0;
  --rule-light: #F0EFEA;
  --cream: #F8F7F4;
  --hero-cream: #F5F2EC;
  --green: #0A8754;
  --tss-black: #171F1D;
}
*, *::before, *::after { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: 'Funnel Sans', 'Funnel Sans Fallback', system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3, figure, blockquote { margin: 0; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.display { font-family: 'Funnel Display', 'Funnel Display Fallback', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; }
.display-mid { font-family: 'Funnel Display', 'Funnel Display Fallback', system-ui, sans-serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.mono { font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; }
.mono-md { font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.mono-9 { font-size: 9px; }
.text-xs { font-size: 12px; line-height: 16px; }
.text-sm { font-size: 14px; line-height: 20px; }
.text-base { font-size: 16px; line-height: 24px; }
.text-lg { font-size: 18px; line-height: 28px; }
.text-xl { font-size: 20px; line-height: 28px; }
.text-2xl { font-size: 24px; line-height: 32px; }
.text-3xl { font-size: 30px; line-height: 36px; }
.text-4xl { font-size: 36px; line-height: 40px; }
.text-5xl { font-size: 48px; line-height: 1; }
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
@media (min-width: 640px) {
  .sm\:text-5xl { font-size: 48px; line-height: 1; }
}
@media (min-width: 1024px) {
  .lg\:text-sm { font-size: 14px; line-height: 20px; }
  .lg\:text-lg { font-size: 18px; line-height: 28px; }
  .lg\:text-2xl { font-size: 24px; line-height: 32px; }
  .lg\:text-3xl { font-size: 30px; line-height: 36px; }
  .lg\:text-4xl { font-size: 36px; line-height: 40px; }
  .lg\:text-6xl { font-size: 60px; line-height: 1; }
}
.c-red { color: var(--red); }
.c-soft { color: var(--ink-soft); }
.c-ink { color: var(--ink); }
.a-link:hover { color: var(--red); }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-1 { margin-top: 4px; }
.u { text-decoration: underline; text-underline-offset: 2px; }
.u:hover { color: var(--red); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.section { padding: 40px 0; }
.section-cream { background: var(--cream); }
.rule-top { border-top: 1px solid var(--rule); }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.cta-primary { display: inline-block; background: var(--red); color: #fff; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; padding: 16px 28px; border: 0; cursor: pointer; text-align: center; transition: background-color .2s, transform .15s, box-shadow .2s; }
.cta-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 6px 16px -4px rgba(180,51,53,.45); }
.cta-ghost { display: inline-block; border: 1px solid var(--rule); background: #fff; color: var(--ink); font-family: 'Funnel Sans', 'Funnel Sans Fallback', sans-serif; font-weight: 500; font-size: 14px; padding: 14px 22px; cursor: pointer; transition: border-color .2s; }
.cta-ghost:hover { border-color: var(--ink); }
.cta-ghost.on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta-ghost.on-dark:hover { border-color: #fff; }
.utility-strip { background: var(--ink); color: #fff; font-size: 12px; }
.utility-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.util-points { display: flex; gap: 24px; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; }
.util-points li + li { display: none; }
.util-links { display: flex; gap: 20px; align-items: center; white-space: nowrap; font-size: 12px; line-height: 16px; }
.util-links a { color: rgba(255,255,255,.7); }
.util-links a:hover { color: #fff; }
.util-links .opt { display: none; }
.util-tel { color: #fff !important; }
/* WordPress admin bar of logged-in staff (admin, shop manager): every sticky and fixed part of the theme stands below it (12.11).
   Guests 0. 32px over 782px, 46px up to 782px, 0 up to 600px: there the bar is not fixed and scrolls away. WordPress itself keeps
   its html margin-top, so the page starts under the bar once, not twice. */
body { --bm-adminbar: 0px; }
body.admin-bar { --bm-adminbar: 32px; }
@media screen and (max-width: 782px) { body.admin-bar { --bm-adminbar: 46px; } }
@media screen and (max-width: 600px) { body.admin-bar { --bm-adminbar: 0px; } }
.nav { position: sticky; top: var(--bm-adminbar, 0px); z-index: 50; background: #fff; border-bottom: 1px solid var(--rule); }
.nav-row { display: flex; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.logo-link { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { height: 40px; width: 40px; display: block; }
.logo-word { display: none; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); font-size: 20px; line-height: 1; white-space: nowrap; }
.logo-link:hover .logo-word { color: var(--red); }
.nav-links { display: none; }
.nav-link { font-family: 'Funnel Sans', 'Funnel Sans Fallback', sans-serif; font-size: 14px; font-weight: 500; color: var(--ink); transition: color .2s; }
.nav-links .nav-link { font-size: 15px; } /* Egor 10.11: the menu items one px larger; Sign in, Cart and the dropdowns stay */
.nav-link:hover { color: var(--red); }
.search { flex: 1 1 auto; min-width: 0; }
.search-input { width: 100%; border: 1px solid var(--rule); border-radius: 0; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='7' cy='7' r='5' stroke='%236B6B66' stroke-width='1.5'/%3E%3Cpath d='M11 11L14 14' stroke='%236B6B66' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left 16px center; padding: 12px 18px 12px 44px; color: var(--ink); font-family: 'Funnel Sans', 'Funnel Sans Fallback', sans-serif; font-size: 16px; -webkit-appearance: none; appearance: none; transition: border-color .2s; }
.search-input:focus { outline: none; border-color: var(--ink); background-color: #fff; }
.nav-right { display: flex; align-items: center; flex-shrink: 0; gap: 4px; }
.nav-right a, .nav-right button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; }
.nav-right .txt { display: none; }
.signin { display: none !important; }
.tss-nav { display: inline-flex; align-items: center; gap: 7px; }
.tss-nav img { width: 28px; height: 28px; }
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); box-shadow: 0 16px 32px -16px rgba(10,14,20,.15); opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, display .2s allow-discrete; }
.mega-menu-inner { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 48px; padding-top: 36px; padding-bottom: 36px; }
.mega-menu-inner.mega-more { grid-template-columns: repeat(4, 1fr); }
.mobile-nav-label { margin: 0; padding: 16px 0 2px; color: var(--ink-soft); }
.mobile-nav-link.mobile-deal { color: var(--red); }
.mega-col-title { font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.mega-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 500; font-size: 15px; color: var(--ink); letter-spacing: -0.01em; transition: color .15s, padding-left .15s; }
.mega-link:hover { color: var(--red); padding-left: 4px; }
.mega-link .count { font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); }
.mega-link.featured { color: var(--red); border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 8px; }
.mega-phone { display: block; font-size: 22px; line-height: 28px; transition: color .15s; }
.mega-phone:hover { color: var(--red); }
.mega-phone + .mega-feature-price { margin: 2px 0 12px; }
.mega-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mega-feature-card { display: block; color: var(--ink); }
.mega-feature-img { position: relative; display: block; aspect-ratio: 4 / 3; margin-bottom: 12px; background: var(--cream); border: 1px solid var(--rule); isolation: isolate; overflow: hidden; transition: border-color .2s; }
.mega-feature-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.mega-feature-card:hover .mega-feature-img { border-color: var(--ink); }
.mega-feature-name { display: block; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; line-height: 1.25; }
.mega-feature-price { display: block; font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.mega-bottom-strip { background: var(--cream); border-top: 1px solid var(--rule); padding: 14px 0; }
.mega-bottom-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.mega-bottom-link { font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); transition: color .15s; }
.mega-bottom-link:hover { color: var(--red); }
.mega-bottom-link.cta { color: var(--red); font-weight: 600; }
.tss-short { display: none; }
.mobile-nav { display: none; position: fixed; inset: var(--bm-adminbar, 0px) 0 0 0; z-index: 90; background: #fff; padding: 80px 24px 40px; overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav.open { display: block; }
.mobile-close { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; }
.mobile-nav-link { display: flex; align-items: center; gap: 10px; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-size: 24px; font-weight: 600; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--rule); letter-spacing: -0.03em; line-height: 1.5; }
.mobile-nav-link img { width: 30px; height: 30px; }
.mobile-nav .mono { display: block; margin-top: 24px; color: var(--ink-soft); }
.mobile-nav-group { padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.mobile-nav-group .mobile-nav-link { border-bottom: 0; padding-bottom: 6px; }
.mobile-sub-link { display: flex; align-items: center; min-height: 44px; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-soft); }
body.menu-open { overflow: hidden; }
.cat-pill-ico img, .product-img img { width: 100%; height: 100%; mix-blend-mode: multiply; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); color: var(--ink); position: relative; transition: border-color .2s, box-shadow .3s, transform .3s; }
.product-card:hover { border-color: var(--ink); box-shadow: 0 12px 28px -10px rgba(10,14,20,.18); transform: translateY(-2px); }
.product-img { display: block; aspect-ratio: 1; background: var(--cream); isolation: isolate; border-bottom: 1px solid var(--rule-light); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 12px; }
.product-name { display: block; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 15px; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 6px; overflow-wrap: anywhere; }
.product-meta { display: block; color: var(--ink-soft); font-size: 12px; line-height: 1.4; margin-bottom: 12px; }
.product-price { display: block; margin-top: auto; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 700; font-size: 19px; line-height: 1.5; letter-spacing: -0.02em; }
.product-add { display: block; width: 100%; background: var(--ink); color: #fff; padding: 10px; text-align: center; font-family: 'Funnel Sans', 'Funnel Sans Fallback', sans-serif; font-size: 13px; font-weight: 500; margin-top: 12px; transition: background-color .2s; }
.product-card:hover .product-add { background: var(--red); }
.stars { display: flex; gap: 2px; margin: 6px 0; color: #F5B400; }
.stars svg { width: 18px; height: 18px; }
.footer { padding: 48px 0 24px; border-top: 1px solid var(--rule); background: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-bottom: 40px; }
.footer-about { grid-column: 1 / -1; }
.footer-logo { height: 60px; width: 60px; display: block; margin-bottom: 14px; }
.footer-about p { color: rgba(10,14,20,.7); margin-bottom: 16px; }
.footer-about .mono { display: block; color: var(--ink-soft); margin-bottom: 4px; }
.footer-about .mono a:hover { color: var(--ink); }
.footer-title { color: var(--ink); margin-bottom: 16px; }
.footer li { margin-bottom: 8px; }
.footer li a { display: block; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.footer li a:hover { color: var(--ink); }
/* Social accounts under the contacts (Egor 11.11, inc/nav.php bm_footer_social): 44 px targets, line icons. */
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.footer .footer-social li { margin: 0; }
.footer .footer-social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--rule); color: var(--ink-soft); transition: color .15s, border-color .15s; }
.footer .footer-social a:hover, .footer .footer-social a:focus-visible { color: var(--ink); border-color: var(--ink); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--rule); color: var(--ink-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
@media (min-width: 640px) {
  .util-points li:nth-child(2) { display: list-item; }
  .logo-img { height: 46px; width: 46px; }
  .logo-word { display: inline; }
  .search-input { font-size: 14px; }
  .nav-right { gap: 20px; }
  .nav-right .txt { display: inline; }
  .util-links .opt { display: inline; }
}
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
  .footer-about { grid-column: auto; }
}
@media (min-width: 1024px) {
  .wrap { padding-left: 40px; padding-right: 40px; }
  .section { padding: 56px 0; }
  .product-body { padding: 16px 16px 18px; }
  .footer { padding: 64px 0 24px; }
  .cards { gap: 16px; }
}
@media (min-width: 1200px) {
  .util-points li { display: list-item !important; }
  .nav-row { gap: 28px; padding-top: 20px; padding-bottom: 20px; }
  .nav-links { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
  .nav-links > a, .has-mega > a { display: inline-flex; align-items: center; white-space: nowrap; }
  .has-mega { display: flex; padding: 16px 0; margin: -16px 0; }
  /* The panel starts at the bottom of the header, below the link's hover area: this bridge keeps it open on the way down. */
  .mega::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 32px; }
  /* Above the bridge, so the logo, the TS&S link and the search field still take the mouse and clicks while a panel is open. */
  .logo-link, .tss-nav, .search { position: relative; z-index: 1; }
  .has-mega > a::after { content: ''; width: 6px; height: 6px; margin: -2px 0 0 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
  .has-mega:hover .mega, .has-mega:focus-within .mega { display: block; opacity: 1; transform: translateY(0); }
  .has-mega.mega-closed .mega { display: none; }
  @starting-style { .has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 0; transform: translateY(-8px); } }
  .has-mega:hover > a { color: var(--red); }
  .signin { display: inline-flex !important; }
  .menu-btn { display: none !important; }
  .shade-cream { background: linear-gradient(90deg, rgba(245,242,236,.97) 0%, rgba(245,242,236,.95) 34%, rgba(245,242,236,.72) 43%, rgba(245,242,236,.22) 50%, rgba(245,242,236,0) 57%); }
  .shade-dark { background: linear-gradient(90deg, rgba(10,14,20,.92) 0%, rgba(10,14,20,.7) 45%, rgba(10,14,20,.25) 75%, rgba(10,14,20,0) 100%); }
  .footer-grid { grid-template-columns: 2.4fr 1fr 1fr 1fr; }
}
/* Six links in the header: on small laptops the gaps give way, not the search field. */
@media (min-width: 1200px) and (max-width: 1359px) {
  .nav-row { gap: 12px; }
  .nav-links { gap: 12px; }
}
@keyframes bmFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.js .reveal:not(.in-view), .js .reveal-stagger:not(.in-view) > * { opacity: 0; transform: translateY(16px); }
.js .reveal.in-view { animation: bmFadeUp .7s cubic-bezier(.16,1,.3,1) backwards; }
.js .reveal-stagger.in-view > * { animation: bmFadeUp .6s cubic-bezier(.16,1,.3,1) backwards; }
.js .reveal-stagger.in-view > *:nth-child(2) { animation-delay: 60ms; }
.js .reveal-stagger.in-view > *:nth-child(3) { animation-delay: 120ms; }
.js .reveal-stagger.in-view > *:nth-child(4) { animation-delay: 180ms; }
.js .reveal-stagger.in-view > *:nth-child(5) { animation-delay: 240ms; }
.js .reveal-stagger.in-view > *:nth-child(6) { animation-delay: 300ms; }
.js .reveal-stagger.in-view > *:nth-child(7) { animation-delay: 360ms; }
.js .reveal-stagger.in-view > *:nth-child(8) { animation-delay: 420ms; }
.count-up { display: inline-block; font-variant-numeric: tabular-nums; }
.product-img { overflow: hidden; }
.product-img img { transition: transform .6s cubic-bezier(.16,1,.3,1); }
.product-card:hover .product-img img { transform: scale(1.06); }
.mega-feature-card { transition: transform .2s; }
.mega-feature-card:hover { transform: translateY(-2px); }
@media print {
  .js .reveal:not(.in-view), .js .reveal-stagger:not(.in-view) > * { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal:not(.in-view), .js .reveal-stagger:not(.in-view) > * { opacity: 1 !important; transform: none !important; }
  .js .reveal.in-view, .js .reveal-stagger.in-view > *, .slide-media.on .kb { animation: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== Cart count, slide-in cart, search suggestions ===== */
.cart-link { position: relative; }
.cart-count { position: absolute; top: 4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--red); color: #fff; font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 10px; font-weight: 500; line-height: 18px; text-align: center; border-radius: 9px; }
.cart-count[hidden] { display: none; }
.minicart { position: fixed; top: var(--bm-adminbar, 0px); right: 0; bottom: 0; width: min(440px, 100%); z-index: 95; background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s cubic-bezier(.16,1,.3,1); }
.minicart.open { transform: translateX(0); box-shadow: -16px 0 32px -16px rgba(10,14,20,.25); }
.minicart[hidden], .minicart-shade[hidden] { display: none; }
.minicart-shade { position: fixed; inset: 0; z-index: 94; background: rgba(10,14,20,.5); opacity: 0; transition: opacity .3s; }
.minicart-shade.open { opacity: 1; }
.minicart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--rule); }
.minicart-title { font-size: 18px; line-height: 1.2; }
.minicart-count { display: block; margin-top: 4px; font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); }
.minicart-close { width: 44px; height: 44px; margin-right: -12px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; }
.minicart .widget_shopping_cart_content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.minicart-empty, .woocommerce-mini-cart__empty-message { padding: 24px; color: var(--ink-soft); font-size: 14px; }
.woocommerce-mini-cart { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; margin: 0; padding: 0 24px; }
.woocommerce-mini-cart-item { position: relative; min-height: 104px; padding: 16px 24px 16px 86px; border-bottom: 1px solid var(--rule-light); font-size: 14px; line-height: 18px; }
.woocommerce-mini-cart-item > a:not(.remove) { display: block; font-weight: 500; }
.woocommerce-mini-cart-item img { position: absolute; left: 0; top: 16px; width: 72px; height: 72px; object-fit: contain; background: var(--cream); border: 1px solid var(--rule); mix-blend-mode: multiply; }
.woocommerce-mini-cart-item .remove { position: absolute; top: 8px; right: -10px; width: 36px; height: 36px; line-height: 36px; text-align: center; color: var(--ink-soft); font-size: 18px; }
.woocommerce-mini-cart-item .remove:hover { color: var(--red); }
.woocommerce-mini-cart-item .variation { margin: 4px 0 0; font-size: 12px; line-height: 16px; color: var(--ink-soft); }
.woocommerce-mini-cart-item .variation dt, .woocommerce-mini-cart-item .variation dd, .woocommerce-mini-cart-item .variation p { display: inline; margin: 0; }
.woocommerce-mini-cart-item .variation dd::after { content: ''; display: block; }
/* What was chosen, under a line of the slide-in cart and of the cart page (inc/cart-lines.php, Egor 10.11) */
.bm-opts { list-style: none; margin: 0; padding: 0; }
.bm-opts li { margin: 0; padding: 0; overflow-wrap: anywhere; }
.bm-opt-k { color: var(--ink-soft); }
.bm-opts-more > summary { display: inline-block; padding: 2px 0; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; list-style: none; }
.bm-opts-more > summary::-webkit-details-marker { display: none; }
.bm-opts-more[open] > summary { display: none; }
.bm-line-opts .bm-line-sku { margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--ink-soft); overflow-wrap: anywhere; }
.woocommerce-mini-cart-item .bm-line-opts { margin: 6px 0 0; font-size: 13px; line-height: 18px; }
.bm-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px -24px 0 0; }
.bm-mini-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--rule); }
.bm-mini-btn { width: 36px; height: 36px; padding: 0; background: #fff; border: 0; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-size: 16px; line-height: 1; color: var(--ink); cursor: pointer; transition: background-color .15s; }
.bm-mini-btn:hover:not(:disabled) { background: var(--cream); }
.bm-mini-btn:disabled { color: var(--ink-faint); cursor: default; }
.bm-mini-n { display: flex; align-items: center; justify-content: center; min-width: 36px; padding: 0 4px; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 14px; }
.bm-mini-one { font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); }
.bm-mini-price { font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; white-space: nowrap; transition: opacity .15s; }
.minicart.is-busy .bm-mini-price, .minicart.is-busy .bm-mini-total span { opacity: .45; }
.bm-mini-rec { margin: 16px 0; }
.bm-rec.is-mini { display: flex; gap: 12px; padding: 14px; background: var(--cream); border: 1px solid var(--rule); font-size: 14px; line-height: 18px; }
.bm-rec.is-mini .bm-rec-img { flex: none; display: block; width: 52px; height: 52px; background: #fff; border: 1px solid var(--rule); }
.bm-rec.is-mini .bm-rec-img img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.bm-rec.is-mini .bm-rec-body { flex: 1; min-width: 0; }
.bm-rec.is-mini .bm-eyebrow { margin-bottom: 4px; font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 9px; line-height: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--red); }
.bm-rec.is-mini .bm-rec-name { display: block; font-weight: 500; }
.bm-rec.is-mini .bm-rec-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.bm-rec.is-mini .bm-rec-price { font-size: 13px; color: var(--ink-soft); }
.bm-rec.is-mini .bm-rec-go { padding: 6px 0 6px 8px; font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); white-space: nowrap; }
.bm-rec.is-mini .added_to_cart { display: none; }
/* "Choose" opens the quick add panel (inc/quick-add.php): a button that looks exactly like the "Add +" link next to it, Egor 10.11. */
button.bm-rec-go { flex: none; margin: 0; background: none; border: 0; border-radius: 0; line-height: inherit; -webkit-appearance: none; appearance: none; cursor: pointer; }
button.bm-rec-go::after { content: ' \2192'; }
.bm-rec-go:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
/* Small link-buttons in capitals: Choose, Add + (cart, slide-in cart, product cards), Check out now, Full details (quick add).
   One underline on hover and keyboard focus, whatever the element, button or link (Egor 10.11: Choose stuck to the letters, Add +
   sat 2 px under them). The cart page (body.bm-flow) sets its own underline with !important, so its selector is listed with more weight. */
.bm-rec-go:hover, .bm-rec-go:focus-visible, .bm-mini-quiet:hover, .bm-mini-quiet:focus-visible, .bm-qa-more:hover, .bm-qa-more:focus-visible,
.bm-flow .entry .bm-rec .bm-rec-go.bm-rec-go:hover, .bm-flow .entry .bm-rec .bm-rec-go.bm-rec-go:focus-visible { text-decoration: underline 1px !important; text-underline-offset: 4px !important; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 16px 24px 4px; background: var(--cream); border-top: 1px solid var(--rule); font-size: 14px; }
.woocommerce-mini-cart__total strong { font-weight: 400; }
.woocommerce-mini-cart__total .amount { font-weight: 500; }
.bm-mini-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 10px 24px 0; background: var(--cream); }
.bm-mini-total strong { font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 16px; }
.bm-mini-total span { font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; transition: opacity .15s; }
.bm-mini-note { margin: 0; padding: 2px 24px 0; background: var(--cream); font-size: 12px; line-height: 16px; color: var(--ink-soft); }
.bm-mini-note .amount { white-space: nowrap; }
.woocommerce-mini-cart__buttons { display: grid; gap: 4px; margin: 0; padding: 14px 24px max(12px, env(safe-area-inset-bottom)); background: var(--cream); }
.woocommerce-mini-cart__buttons .button { display: block; min-height: 0; background: none; text-align: center; padding: 10px; font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-weight: 500; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); border: 0; }
.woocommerce-mini-cart__buttons .button:hover { background: none; color: var(--red); }
.woocommerce-mini-cart__buttons .bm-mini-primary { padding: 16px; background: var(--red); color: #fff; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-transform: none; transition: background-color .2s; }
.woocommerce-mini-cart__buttons .bm-mini-primary::after { content: ' \2192'; }
.woocommerce-mini-cart__buttons .bm-mini-primary:hover { background: var(--red-dark); color: #fff; }
/* Egor 10.11: "Check out now" is a quiet link under View cart, no frame and no fill. */
.woocommerce-mini-cart__buttons .bm-mini-quiet { padding: 12px 10px 6px; }
/* Express checkout row (inc/checkout-view.php bm_flow_express, Egor 11.11): one look for Apple Pay, Google Pay, PayPal, Afterpay or Klarna
   on the checkout, the cart and here. The payment thread draws the buttons into the slots with these sizes and marks a drawn slot
   data-bm-ready; until one is ready the frame stays laid out off screen, so nothing empty shows. */
:root { --bm-express-h: 48px; --bm-express-radius: 0; --bm-express-gap: 8px; }
.bm-express:not(:has(.bm-express-slot[data-bm-ready])) { position: absolute !important; left: -10000px; top: 0; width: 360px; visibility: hidden; pointer-events: none; }
.bm-express-slot:not([data-bm-ready]) { position: absolute; left: -10000px; top: 0; width: 300px; visibility: hidden; }
.bm-express-row { position: relative; isolation: isolate; z-index: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--bm-express-gap); }
/* The SDK buttons carry their own z-index (PayPal): the row is its own layer, so they never ride over the sticky header (Egor 11.11) */
.bm-express-slot { position: relative; z-index: 0; }
/* Two across on a phone and in the cart columns: an odd last button takes the whole row */
/* Counted among the drawn slots only: a slot that never draws (Apple Pay outside Safari, a PayPal method not offered) does not count */
@media (max-width: 639px) { .bm-express-row > .bm-express-slot[data-bm-ready]:nth-child(odd of [data-bm-ready]):nth-last-child(1 of [data-bm-ready]) { grid-column: 1 / -1; } }
.bm-express:not(.is-checkout) .bm-express-row > .bm-express-slot[data-bm-ready]:nth-child(odd of [data-bm-ready]):nth-last-child(1 of [data-bm-ready]) { grid-column: 1 / -1; }
.bm-express-slot[data-bm-ready] { display: flex; align-items: stretch; min-width: 0; min-height: var(--bm-express-h); border-radius: var(--bm-express-radius); overflow: hidden; }
.bm-express-slot[data-bm-ready] > * { flex: 1 1 auto; min-width: 0; }
.bm-express-label { margin-bottom: 12px; text-align: center; font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-weight: 500; font-size: 10px; line-height: 14px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); }
.bm-express-or { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-weight: 500; font-size: 10px; line-height: 14px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint); }
.bm-express-or::before, .bm-express-or::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.bm-express:not(.is-checkout) .bm-express-or { margin: 0 0 12px; }
/* While the slide-in cart draws its buttons again after − or +, the row keeps its room (base.js holdExpress) */
.minicart .bm-express.is-minicart.is-hold { position: relative !important; left: auto !important; width: auto !important; visibility: visible !important; } /* stronger than the off-screen rule (0,3,0) */
.minicart .bm-express.is-minicart { padding: 2px 24px max(14px, env(safe-area-inset-bottom)); background: var(--cream); }

.search { position: relative; }
/* Search suggestions, variant A (Egor 13.11): rows, how the query was read, a help page, the team's answer, "See all", the closest names. */
.search-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; background: #fff; border: 1px solid var(--rule); box-shadow: 0 16px 32px -16px rgba(10,14,20,.25); max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; }
.search-suggest[hidden] { display: none; }
.search-suggest b { font-weight: 700; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 56px; }
.search-item:hover, .search-item.is-on, .search-item:focus-visible { background: var(--cream); }
.search-img { flex: 0 0 48px; width: 48px; height: 48px; background: var(--cream); }
.search-img img { width: 48px; height: 48px; object-fit: contain; mix-blend-mode: multiply; }
.search-txt { flex: 1 1 auto; min-width: 0; }
.search-name { display: block; font-size: 14px; line-height: 18px; font-weight: 500; }
.search-meta { display: block; font-size: 12px; line-height: 16px; color: var(--ink-soft); }
.search-meta:empty { display: none; }
.search-price { flex: 0 0 auto; font-size: 14px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.search-pr { display: none; }
.search-note { padding: 10px 12px; font-size: 13px; line-height: 18px; color: var(--ink-soft); border-bottom: 1px solid var(--rule); }
.search-note b { color: var(--ink); font-weight: 600; }
.search-page { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; min-height: 44px; font-size: 14px; border-bottom: 1px solid var(--rule); }
.search-page b { font-weight: 600; }
.search-page:hover, .search-page.is-on { background: var(--cream); }
.search-answer { padding: 12px; border-left: 4px solid var(--red); border-bottom: 1px solid var(--rule); display: grid; gap: 4px; font-size: 14px; line-height: 20px; }
.search-l { font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.search-all { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; min-height: 48px; border-top: 1px solid var(--rule); font-size: 14px; font-weight: 600; }
.search-all:hover, .search-all.is-on { background: var(--cream); }
.search-all i { font-style: normal; font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 11px; font-weight: 400; color: var(--ink-soft); }
.search-none { padding: 14px 12px 4px; font-size: 15px; line-height: 20px; font-weight: 600; }
.search-sub { padding: 0 12px 10px; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.search-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-top: 1px solid var(--rule); }
.search-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 14px; font-weight: 600; border: 1px solid var(--ink); background: #fff; }
.search-btn.is-red { background: var(--red); border-color: var(--red); color: #fff; }
.search-btn.is-on { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (min-width: 768px) {
  /* From 1280 the header field is under 250px: the list is at least 440px, held to the field's right edge, growing to the left. */
  .search-suggest { left: auto; right: 0; width: max(100%, 440px); max-width: calc(100vw - 32px); }
}
@media (max-width: 767px) {
  /* The header field is narrow on a phone: the list takes the whole width just under the header (top set by base.js). */
  .search-suggest { position: fixed; left: 0; right: 0; top: 64px; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); border-left: 0; border-right: 0; }
  .search-item > .search-price { display: none; }
  .search-pr { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; font-weight: 600; }
}

/* ===== All categories: one line, the links stay in the HTML ===== */
.allcats-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding-top: 12px; padding-bottom: 12px; color: var(--ink-soft); cursor: pointer; list-style: none; }
.allcats-fold > summary::-webkit-details-marker { display: none; }
.allcats-fold > summary::after { content: ''; flex: 0 0 8px; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.allcats-fold[open] > summary::after { transform: rotate(-135deg); }
.allcats-fold > summary:hover { color: var(--ink); }
.allcats { padding-top: 8px; padding-bottom: 32px; }
.catgroup { break-inside: avoid; margin-bottom: 24px; }
.catgroup .mono { color: var(--ink); margin-bottom: 10px; }
.catgroup li a { display: block; padding: 5px 0; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.catgroup li a:hover { color: var(--ink); }
@media (min-width: 768px) {
  .allcats { columns: 3; column-gap: 32px; }
}
@media (min-width: 1200px) {
  .allcats { columns: 4; }
}

/* Menu font 15px (10.11): from 1360 to 1599 the gaps give 4px each, so at 1440 the search field still shows "Search products". */
@media (min-width: 1360px) and (max-width: 1599px) {
  .nav-links { gap: 18px; }
}
/* Seven links: below 1440 the long name of TS&S gives way to its short one, so the search field keeps its width. */
@media (min-width: 1200px) and (max-width: 1439px) {
  .tss-full { display: none; }
  .tss-short { display: inline; }
}
