/*
Theme Name: Kevin's Cycle
Theme URI: https://kevincycle.com
Author: Kevin's Cycle
Description: Custom WooCommerce theme with KCR Part Finder
Version: 4.0
Requires at least: 5.8
Requires PHP: 7.4
License: Private
Text Domain: kevins-cycle
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@400;500;600&display=swap');

/* ── VARIABLES ─────────────────────────────────────────────────────── */
:root {
  --red:      #C8141A;
  --red-h:    #E01E24;
  --red-dark: #9E0E13;
  --black:    #111111;
  --dark:     #1C1C1E;
  --mid:      #2A2A2E;
  --border:   #E2E2E2;
  --bg:       #F4F4F4;
  --white:    #FFFFFF;
  --text:     #1C1C1E;
  --muted:    #6E6E73;
  --radius:   7px;
  --head:     'Barlow Condensed', sans-serif;
  --body:     'Barlow', sans-serif;
  --maxw:     1300px;
}

/* ── RESET / BASE ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: var(--body); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg); }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-h); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
h1,h2,h3,h4,h5,h6 { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.15; color: var(--text); }
p { margin-bottom: 1em; } p:last-child { margin-bottom: 0; }
.kc-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ══════════════════════════════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════════════════════════════ */
.kc-topbar {
  background: var(--black); color: #888;
  font-family: var(--head); font-size: 12px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; padding: 7px 0; line-height: 1;
}
.kc-topbar .kc-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.kc-topbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kc-topbar-sep { color: #333; }
.kc-topbar-right { display: flex; align-items: center; gap: 16px; }
.kc-topbar-right a { color: #666; text-decoration: none; transition: color .15s; }
.kc-topbar-right a:hover { color: var(--red); }
.kc-topbar-phone { color: #e05555 !important; font-weight: 700 !important; font-size: 13px !important; }

/* ══════════════════════════════════════════════════════════════════════
   NOTICE BAR — background set via inline style from Customizer
══════════════════════════════════════════════════════════════════════ */
.kc-noticebar {
  color: #fff !important; text-align: center;
  font-family: var(--head); font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; padding: 9px 24px; line-height: 1;
}

/* ══════════════════════════════════════════════════════════════════════
   HEADER  — PURE DARK, NO ORANGE ANYWHERE
══════════════════════════════════════════════════════════════════════ */
.kc-header {
  background: var(--dark) !important;
  border-bottom: 3px solid var(--red) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.45) !important;
  position: sticky; top: 0; z-index: 200; padding: 14px 0;
}
.kc-header .kc-inner { display: flex; align-items: center; gap: 16px; }

/* Logo */
.kc-logo { flex-shrink: 0; text-decoration: none; display: flex; align-items: center; }
.kc-logo img { height: 46px; width: auto; filter: brightness(0) invert(1); }
.kc-logo-text { font-family: var(--head); font-size: 30px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; color: #fff; line-height: 1; }
.kc-logo-text em { color: var(--red); font-style: normal; }

/* Search bar */
.kc-search { flex: 1; min-width: 0; }
.kc-search form {
  display: flex !important; width: 100%;
  background: rgba(255,255,255,.08) !important;
  border: 1.5px solid rgba(255,255,255,.14) !important;
  border-radius: var(--radius) !important;
  overflow: hidden; transition: border-color .2s;
}
.kc-search form:focus-within { border-color: var(--red) !important; }
.kc-search input[type="search"],
.kc-search input[type="text"] {
  flex: 1 !important; min-width: 0 !important;
  background: transparent !important; border: none !important; outline: none !important;
  box-shadow: none !important; color: #fff !important;
  font-family: var(--body) !important; font-size: 14px !important;
  padding: 10px 14px !important; border-radius: 0 !important; width: 100% !important;
  /* Kill any WP default styles */
  -webkit-appearance: none !important;
}
.kc-search input::placeholder { color: rgba(255,255,255,.38) !important; }
.kc-search button[type="submit"],
.kc-search input[type="submit"] {
  background: var(--red) !important;
  border: none !important; border-radius: 0 !important;
  padding: 0 16px !important; color: #fff !important; cursor: pointer !important;
  font-size: 16px !important; flex-shrink: 0 !important;
  transition: background .15s !important; height: 42px !important; min-width: 44px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
}
.kc-search button[type="submit"]:hover { background: var(--red-h) !important; }
/* Kill any WordPress search form orange/default colours */
.kc-search form button, .kc-search form input[type="submit"] {
  background-color: var(--red) !important;
}

/* Header action buttons */
.kc-header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.kc-header-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 14px; border-radius: var(--radius);
  color: rgba(255,255,255,.72); text-decoration: none;
  font-family: var(--head); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  transition: all .15s; border: 1px solid transparent; cursor: pointer; background: transparent;
}
.kc-header-btn:hover { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.14); }
.kc-btn-icon { font-size: 18px; line-height: 1; }
/* Cart button — RED */
.kc-cart-btn {
  background: var(--red) !important; color: #fff !important;
  border-color: var(--red) !important; position: relative;
}
.kc-cart-btn:hover { background: var(--red-h) !important; border-color: var(--red-h) !important; color: #fff !important; }
.kc-cart-count {
  position: absolute; top: 4px; right: 8px;
  background: #fff; color: var(--red); font-size: 9px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════════════
   PRIMARY NAV
══════════════════════════════════════════════════════════════════════ */
.kc-nav-primary { background: var(--mid); border-bottom: 1px solid rgba(255,255,255,.06); position: relative; z-index: 150; }
.kc-nav-primary .kc-inner { display: flex; align-items: stretch; }
.kc-primary-menu { display: flex; flex-wrap: wrap; }
.kc-primary-menu li { position: relative; }
.kc-primary-menu > li > a {
  font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(255,255,255,.62); padding: 13px 16px; display: block;
  text-decoration: none; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s; white-space: nowrap;
}
.kc-primary-menu > li > a:hover,
.kc-primary-menu > li.current-menu-item > a,
.kc-primary-menu > li.current_page_item > a { color: #fff; border-bottom-color: var(--red); }
.kc-primary-menu ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--dark); border-top: 2px solid var(--red);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.35); min-width: 200px; z-index: 300;
}
.kc-primary-menu li:hover > ul { display: block; }
.kc-primary-menu ul li a {
  display: block; padding: 10px 16px;
  font-family: var(--head); font-size: 12px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: rgba(255,255,255,.62) !important;
  text-decoration: none; border-bottom: none !important;
  transition: color .15s, background .15s;
}
.kc-primary-menu ul li a:hover { color: var(--red) !important; background: rgba(255,255,255,.05); }
.kc-menu-toggle {
  display: none; background: transparent; border: none;
  color: rgba(255,255,255,.8); padding: 13px 16px; cursor: pointer;
  font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; align-items: center; gap: 8px;
}
.kc-menu-toggle:hover { color: var(--red); }

/* ══════════════════════════════════════════════════════════════════════
   CATEGORIES BAR
══════════════════════════════════════════════════════════════════════ */
.kc-nav-categories { background: var(--black); border-bottom: 1px solid rgba(255,255,255,.05); }
.kc-nav-categories .kc-inner { display: flex; align-items: center; }
.kc-categories-menu { display: flex; flex-wrap: wrap; }
.kc-categories-menu li a {
  font-family: var(--head); font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.5); padding: 9px 12px;
  display: block; text-decoration: none; transition: color .15s; white-space: nowrap;
}
.kc-categories-menu li a:hover,
.kc-categories-menu li.current-menu-item > a { color: var(--red); }
.kc-cat-select-wrap { display: none; width: 100%; padding: 8px 0; }
.kc-cat-select {
  width: 100%; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--radius); color: #fff; font-family: var(--head); font-size: 14px;
  font-weight: 600; padding: 10px 12px; cursor: pointer; appearance: none;
}
.kc-cat-select option { background: #222; }

/* ══════════════════════════════════════════════════════════════════════
   BIKE FINDER BAR — stays horizontal on mobile
══════════════════════════════════════════════════════════════════════ */
.kc-bike-finder-bar {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a0808 100%);
  border-bottom: 3px solid var(--red); padding: 12px 0;
}
.kc-bike-finder-bar .kc-inner { display: flex; align-items: center; gap: 10px; }
.kc-finder-label {
  font-family: var(--head); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--red);
  white-space: nowrap; flex-shrink: 0;
}
form.kcr-part-finder { display: contents; }
.kcr-ymm-fields {
  display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: nowrap;
}
.kcr-ymm-fields select {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.09) !important; border: 1.5px solid rgba(255,255,255,.16) !important;
  border-radius: var(--radius) !important; color: #fff !important;
  font-family: var(--head) !important; font-size: 12px !important; font-weight: 600 !important;
  padding: 8px 24px 8px 9px !important; cursor: pointer !important; appearance: none !important; -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23C8141A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 7px center !important;
  box-shadow: none !important; transition: border-color .15s !important;
}
.kcr-ymm-fields select:focus { border-color: var(--red) !important; outline: none !important; }
.kcr-ymm-fields select option { background: #2a2a2a !important; color: #fff !important; }
.kcr-ymm-fields button[type="submit"] {
  background: var(--red) !important; color: #fff !important; border: none !important;
  border-radius: var(--radius) !important; padding: 9px 16px !important;
  font-family: var(--head) !important; font-size: 12px !important; font-weight: 700 !important;
  letter-spacing: .07em !important; text-transform: uppercase !important;
  cursor: pointer !important; white-space: nowrap; flex-shrink: 0; transition: background .15s !important;
}
.kcr-ymm-fields button[type="submit"]:hover { background: var(--red-h) !important; }
.kcr-ymm-fields .kcr-clear-bike {
  background: transparent !important; color: rgba(255,255,255,.4) !important;
  border: 1.5px solid rgba(255,255,255,.15) !important; border-radius: var(--radius) !important;
  padding: 8px 11px !important; font-family: var(--head) !important; font-size: 11px !important;
  font-weight: 600 !important; letter-spacing: .05em !important; text-transform: uppercase !important;
  cursor: pointer !important; white-space: nowrap; flex-shrink: 0; transition: all .15s !important;
}
.kcr-ymm-fields .kcr-clear-bike:hover { color: rgba(255,255,255,.8) !important; border-color: rgba(255,255,255,.35) !important; }

/* ══════════════════════════════════════════════════════════════════════
   PAGE LAYOUT
══════════════════════════════════════════════════════════════════════ */
.kc-page-wrap { max-width: var(--maxw); margin: 0 auto; padding: 28px 24px; display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.kc-page-wrap.kc-no-sidebar { grid-template-columns: 1fr; }
.kc-main-content, .kc-sidebar { min-width: 0; }

/* ══════════════════════════════════════════════════════════════════════
   SIDEBAR — desktop normal, mobile collapsible toggle
══════════════════════════════════════════════════════════════════════ */
/* Toggle button — hidden on desktop */
.kc-sidebar-toggle {
  display: none;
  width: 100%; padding: 12px 16px;
  background: var(--dark); color: rgba(255,255,255,.85);
  border: none; border-radius: var(--radius); cursor: pointer;
  font-family: var(--head); font-size: 14px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 8px; transition: background .15s;
}
.kc-sidebar-toggle:hover { background: var(--mid); }
.kc-sidebar-toggle-icon { transition: transform .25s; display: inline-block; font-size: 12px; }
.kc-sidebar.is-open .kc-sidebar-toggle-icon { transform: rotate(180deg); }

/* Sidebar inner — visible on desktop, collapsed on mobile */
.kc-sidebar-inner { /* no extra wrapper on desktop */ }

.kc-sidebar .widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.kc-sidebar .widget-title { background: var(--black); color: #fff; font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 11px 16px; margin: 0; }
.kc-sidebar .widget ul { padding: 6px 0; margin: 0; }
.kc-sidebar .widget ul li { border-left: 3px solid transparent; transition: all .15s; }
.kc-sidebar .widget ul li a { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; color: var(--text); font-size: 14px; text-decoration: none; transition: all .15s; }
.kc-sidebar .widget ul li a:hover { color: var(--red); background: #FFF5F5; }
.kc-sidebar .widget ul li:hover { border-left-color: var(--red); }
.kc-sidebar .widget ul li.current-cat { border-left-color: var(--red); }
.kc-sidebar .widget ul li.current-cat > a { color: var(--red); font-weight: 600; background: #FFF5F5; }
.kc-sidebar .widget ul li .count { background: var(--bg); color: var(--muted); font-size: 11px; padding: 2px 7px; border-radius: 20px; }
.kc-sidebar .widget_text .textwidget { background: var(--black); color: rgba(255,255,255,.65); padding: 16px; font-size: 13px; line-height: 1.85; }
.kc-sidebar .widget_text .textwidget a { color: #e05555; }
.kc-sidebar .widget_text .textwidget strong { color: #e05555; display: block; font-family: var(--head); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.kc-sidebar .widget_search form { display: flex; }
.kc-sidebar .widget_search input[type="search"] { flex: 1; border: 1.5px solid var(--border) !important; border-right: none !important; border-radius: var(--radius) 0 0 var(--radius) !important; padding: 9px 12px !important; font-size: 14px !important; }
.kc-sidebar .widget_search input[type="search"]:focus { border-color: var(--red) !important; }
.kc-sidebar .widget_search input[type="submit"], .kc-sidebar .widget_search button { background: var(--red) !important; color: #fff !important; border: none !important; padding: 9px 14px !important; border-radius: 0 var(--radius) var(--radius) 0 !important; cursor: pointer !important; }
.kc-sidebar .widget_price_filter .price_slider_wrapper { padding: 14px 16px; }
.kc-sidebar .widget_price_filter .ui-widget-header { background: var(--red); }
.kc-sidebar .widget_price_filter .ui-slider-handle { border-color: var(--red); }
.kc-sidebar .widget_price_filter button { background: var(--red); color: #fff; border: none; border-radius: 5px; padding: 7px 14px; font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }

/* ══════════════════════════════════════════════════════════════════════
   SHOP HEADER
══════════════════════════════════════════════════════════════════════ */
.kc-shop-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.kc-shop-title { font-size: 28px; color: var(--black); line-height: 1; }
.kc-shop-title em { color: var(--red); font-style: normal; }
.woocommerce-result-count { font-family: var(--body) !important; font-size: 13px !important; color: var(--muted) !important; }
.woocommerce-ordering select { font-family: var(--head) !important; font-weight: 600 !important; font-size: 13px !important; letter-spacing: .03em !important; text-transform: uppercase !important; border: 1px solid var(--border) !important; border-radius: var(--radius) !important; padding: 8px 12px !important; background: #fff !important; color: var(--text) !important; cursor: pointer !important; }
.woocommerce-ordering select:focus { border-color: var(--red) !important; outline: none !important; }

/* ══════════════════════════════════════════════════════════════════════
   PRODUCT GRID
══════════════════════════════════════════════════════════════════════ */
ul.products { display: grid !important; grid-template-columns: repeat(3,1fr) !important; gap: 16px !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
ul.products li.product { background: var(--white) !important; border: 1px solid var(--border) !important; border-radius: var(--radius) !important; overflow: hidden !important; padding: 0 !important; margin: 0 !important; float: none !important; clear: none !important; width: auto !important; display: flex !important; flex-direction: column !important; position: relative !important; transition: transform .2s, box-shadow .2s, border-color .2s !important; }
ul.products li.product:hover { transform: translateY(-3px) !important; box-shadow: 0 8px 28px rgba(0,0,0,.1) !important; border-color: var(--red) !important; }
ul.products li.product a img { border-bottom: 1px solid var(--border) !important; width: 100% !important; aspect-ratio: 1 !important; object-fit: contain !important; padding: 12px !important; background: var(--bg) !important; display: block !important; transition: transform .3s !important; }
ul.products li.product:hover a img { transform: scale(1.04) !important; }
ul.products li.product .woocommerce-loop-product__title, ul.products li.product h2 { font-family: var(--head) !important; font-size: 14px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .01em !important; color: var(--text) !important; padding: 11px 14px 4px !important; margin: 0 !important; line-height: 1.3 !important; flex: 1 !important; }
ul.products li.product .price { font-family: var(--head) !important; font-size: 20px !important; font-weight: 700 !important; color: var(--black) !important; padding: 2px 14px 0 !important; margin: 0 !important; display: block !important; }
ul.products li.product .price del .amount { font-size: 13px !important; color: var(--muted) !important; font-weight: 400 !important; }
ul.products li.product .price ins { text-decoration: none !important; }
ul.products li.product .price ins .amount { color: var(--red) !important; }
ul.products li.product .button { font-family: var(--head) !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .07em !important; text-transform: uppercase !important; background: var(--black) !important; color: #fff !important; border: none !important; border-radius: 5px !important; padding: 8px 14px !important; margin: 10px 14px 14px !important; display: inline-block !important; cursor: pointer !important; transition: background .15s !important; text-decoration: none !important; }
ul.products li.product .button:hover { background: var(--red) !important; }
.woocommerce span.onsale { background: var(--red) !important; border-radius: 4px !important; font-family: var(--head) !important; font-size: 10px !important; font-weight: 700 !important; letter-spacing: .08em !important; text-transform: uppercase !important; padding: 4px 8px !important; min-width: unset !important; min-height: unset !important; line-height: 1.2 !important; top: 10px !important; left: 10px !important; right: auto !important; }

/* ══════════════════════════════════════════════════════════════════════
   SINGLE PRODUCT — price + add to cart side by side
   JavaScript (main.js) wraps .price and form.cart in .kc-price-cart-row
══════════════════════════════════════════════════════════════════════ */
.kc-price-cart-row {
  display: flex !important; align-items: center !important;
  gap: 16px !important; flex-wrap: wrap !important; margin: 14px 0 !important;
}
.kc-price-cart-row .price {
  font-family: var(--head) !important; font-size: 28px !important;
  font-weight: 700 !important; color: var(--black) !important;
  margin: 0 !important; white-space: nowrap; line-height: 1 !important;
}
.kc-price-cart-row .price ins { text-decoration: none !important; }
.kc-price-cart-row .price ins .amount { color: var(--red) !important; }
.kc-price-cart-row form.cart {
  margin: 0 !important; display: flex !important;
  align-items: center !important; gap: 8px !important; flex-wrap: wrap !important;
}
.kc-price-cart-row form.cart .quantity { margin: 0 !important; }
.kc-price-cart-row form.cart input.qty {
  width: 56px !important; height: 44px !important; text-align: center !important;
  border-radius: var(--radius) !important; border: 1.5px solid var(--border) !important;
  font-size: 15px !important; font-family: var(--head) !important; font-weight: 700 !important;
}

.woocommerce div.product h1.product_title { font-family: var(--head) !important; font-size: 32px !important; font-weight: 800 !important; text-transform: uppercase !important; color: var(--black) !important; border-bottom: 3px solid var(--red) !important; padding-bottom: 10px !important; margin-bottom: 10px !important; }
/* Normal price (outside wrapper, before JS runs) */
.woocommerce div.product .price { font-family: var(--head) !important; font-size: 26px !important; font-weight: 700 !important; }
.woocommerce div.product .price ins { text-decoration: none !important; }
.woocommerce div.product .price ins .amount { color: var(--red) !important; }

.woocommerce div.product .single_add_to_cart_button,
.woocommerce button.button.alt {
  font-family: var(--head) !important; font-size: 15px !important; font-weight: 700 !important;
  letter-spacing: .08em !important; text-transform: uppercase !important;
  background: var(--red) !important; color: #fff !important;
  border: none !important; border-radius: var(--radius) !important;
  padding: 12px 28px !important; cursor: pointer !important; transition: background .15s !important;
}
.woocommerce div.product .single_add_to_cart_button:hover { background: var(--red-h) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-family: var(--head) !important; font-weight: 700 !important; text-transform: uppercase !important; font-size: 13px !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--red) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-top: 2px solid var(--red) !important; }

/* ══════════════════════════════════════════════════════════════════════
   FITMENT BLOCK (.kcr-fitment-block)
   JS moves this after .sku + collapses long lists
══════════════════════════════════════════════════════════════════════ */
.kcr-fitment-block {
  margin: 16px 0 !important; background: #fafafa !important;
  border: 1px solid var(--border) !important; border-radius: var(--radius) !important;
  padding: 0 !important; overflow: hidden !important;
}
/* Override plugin inline green/red with cleaner styles */
.kcr-fitment-block span[style*="color:green"] {
  display: flex !important; align-items: center; gap: 8px;
  color: #1a7a3c !important; background: #e8f5ee; padding: 10px 14px;
  font-family: var(--head) !important; font-size: 13px !important; font-weight: 700 !important;
}
.kcr-fitment-block span[style*="color:green"]::before { content: "✓ Fits your bike: "; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.kcr-fitment-block span[style*="color:#cc0000"],
.kcr-fitment-block span[style*="color:red"] {
  display: flex !important; align-items: center; gap: 8px;
  color: var(--red-dark) !important; background: #fdf0f0; padding: 10px 14px;
  font-family: var(--head) !important; font-size: 13px !important; font-weight: 700 !important;
}
.kcr-additional-fitment, .kcr-product-fitment-list {
  padding: 10px 14px 12px !important; font-size: 13px !important; line-height: 1.75 !important; color: #444 !important;
}
.kcr-additional-fitment strong, .kcr-product-fitment-list strong {
  font-family: var(--head) !important; font-size: 11px !important; font-weight: 700 !important;
  letter-spacing: .08em !important; text-transform: uppercase !important;
  color: var(--muted) !important; display: block !important; margin-bottom: 6px !important;
}
/* Fitment line rows (added by JS) */
.kc-fitment-row { display: block; line-height: 1.75; }
/* Toggle button */
.kc-fitment-toggle {
  display: block; width: 100%; padding: 8px 14px;
  background: #f0f0f0; border: none; border-top: 1px solid var(--border);
  font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--red); cursor: pointer; text-align: left; transition: background .15s;
}
.kc-fitment-toggle:hover { background: #e8e8e8; }

/* ══════════════════════════════════════════════════════════════════════
   VENDOR / PART NUMBER BOX
══════════════════════════════════════════════════════════════════════ */
.kc-vendor-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 14px 0; }
.kc-vendor-box-title { background: var(--black); color: #fff; font-family: var(--head); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; }
.kc-vendor-box-body { display: grid; grid-template-columns: 1fr 1fr; }
.kc-vendor-field { padding: 10px 14px; }
.kc-vendor-field:first-child { border-right: 1px solid var(--border); }
.kc-vendor-field-label { font-family: var(--head); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.kc-vendor-field-value { font-family: var(--head); font-size: 16px; font-weight: 700; color: var(--black); }

/* ══════════════════════════════════════════════════════════════════════
   STORE INFO BLOCK (below grid on mobile only)
══════════════════════════════════════════════════════════════════════ */
.kc-store-info-block { background: var(--black); border-radius: var(--radius); padding: 20px; color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.9; margin-top: 24px; display: none; }
.kc-store-info-block strong { color: #e05555; display: block; font-family: var(--head); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.kc-store-info-block .kc-sib-phone { color: #fff; font-family: var(--head); font-size: 22px; font-weight: 700; margin: 8px 0 4px; }
.kc-store-info-block .kc-sib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.kc-store-info-block .kc-sib-col h4 { color: #fff; font-family: var(--head); font-size: 12px; letter-spacing: .08em; margin-bottom: 6px; }
.kc-store-info-block a { color: #e05555; }

/* ══════════════════════════════════════════════════════════════════════
   BREADCRUMBS / NOTICES / WC BUTTONS
══════════════════════════════════════════════════════════════════════ */
.woocommerce .woocommerce-breadcrumb { font-family: var(--head) !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: var(--muted) !important; background: transparent !important; padding: 0 0 14px !important; margin: 0 !important; }
.woocommerce .woocommerce-breadcrumb a { color: var(--muted) !important; }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--red) !important; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--red) !important; background: #FFF5F5 !important; border-radius: 0 0 var(--radius) var(--radius) !important; }
.woocommerce-message::before { color: var(--red) !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { font-family: var(--head) !important; font-weight: 700 !important; letter-spacing: .06em !important; text-transform: uppercase !important; border-radius: var(--radius) !important; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--red) !important; color: #fff !important; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { background: var(--red) !important; color: #fff !important; font-family: var(--head) !important; font-size: 16px !important; font-weight: 700 !important; letter-spacing: .08em !important; text-transform: uppercase !important; border-radius: var(--radius) !important; display: block !important; text-align: center !important; }
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover { background: var(--red-h) !important; }
#place_order { background: var(--red) !important; font-family: var(--head) !important; font-size: 16px !important; font-weight: 700 !important; }
nav.woocommerce-pagination, .woocommerce-pagination { margin-top: 32px !important; text-align: center !important; }
.woocommerce-pagination ul { display: inline-flex !important; gap: 6px !important; flex-wrap: wrap !important; justify-content: center !important; list-style: none !important; padding: 0 !important; margin: 0 !important; }
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span { font-family: var(--head) !important; font-size: 14px !important; font-weight: 600 !important; width: 36px !important; height: 36px !important; display: flex !important; align-items: center !important; justify-content: center !important; border: 1.5px solid var(--border) !important; border-radius: 6px !important; color: var(--text) !important; background: #fff !important; text-decoration: none !important; padding: 0 !important; transition: all .15s !important; }
.woocommerce-pagination ul li a:hover { border-color: var(--red) !important; color: var(--red) !important; }
.woocommerce-pagination ul li span.current { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }

/* ══════════════════════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════════════════════ */
input[type="text"], input[type="email"], input[type="search"], input[type="password"], input[type="tel"], input[type="number"], textarea, select { font-family: var(--body); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 9px 12px; font-size: 14px; transition: border-color .15s; background: #fff; color: var(--text); }
input:focus, textarea:focus, select:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(200,20,26,.1); }

/* ══════════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════════ */
.kc-footer { background: var(--black); color: rgba(255,255,255,.5); border-top: 3px solid var(--red); margin-top: 48px; padding: 44px 0 0; }
.kc-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.kc-footer-logo { font-family: var(--head); font-size: 28px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; color: #fff; line-height: 1; margin-bottom: 14px; }
.kc-footer-logo em { color: var(--red); font-style: normal; }
.kc-footer-address { font-size: 13px; line-height: 1.9; }
.kc-footer-phone { color: #e05555; font-family: var(--head); font-size: 22px; font-weight: 700; margin: 8px 0 4px; }
.kc-footer-email { color: rgba(255,255,255,.4); font-size: 12px; }
.kc-footer-hours { margin-top: 10px; font-size: 13px; }
.kc-footer-hours strong { color: #fff; font-weight: 600; display: block; }
.kc-footer-col h4 { font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.kc-footer-col ul { list-style: none; padding: 0; margin: 0; }
.kc-footer-col ul li { padding: 4px 0; }
.kc-footer-col ul li a { color: rgba(255,255,255,.45); text-decoration: none; font-size: 13px; transition: color .15s; }
.kc-footer-col ul li a:hover { color: var(--red); }
.kc-footer .widget-title { font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.kc-footer .widget ul li a { color: rgba(255,255,255,.45); text-decoration: none; font-size: 13px; display: block; padding: 4px 0; transition: color .15s; }
.kc-footer .widget ul li a:hover { color: var(--red); }
.kc-footer a { color: rgba(255,255,255,.45); text-decoration: none; transition: color .15s; }
.kc-footer a:hover { color: var(--red); }
.kc-footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 16px 0; }
.kc-footer-bottom .kc-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgba(255,255,255,.3); }
.kc-footer-bottom a { color: rgba(255,255,255,.3); }
.kc-footer-bottom a:hover { color: var(--red); }

/* ══════════════════════════════════════════════════════════════════════
   PAGE / 404
══════════════════════════════════════════════════════════════════════ */
.kc-entry { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; }
.kc-entry h1 { font-size: 28px; margin-bottom: 16px; border-bottom: 3px solid var(--red); padding-bottom: 10px; }
.kc-entry p { line-height: 1.7; margin-bottom: 1em; color: #444; }
.kc-404 { text-align: center; padding: 60px 24px; }
.kc-404 h1 { font-size: 80px; color: var(--red); line-height: 1; }
.kc-404 h2 { font-size: 24px; color: var(--black); margin: 8px 0 16px; }
.kc-btn-primary { display: inline-block; background: var(--red); color: #fff; padding: 12px 28px; border-radius: var(--radius); font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  ≤1024px
══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .kc-page-wrap { grid-template-columns: 200px 1fr; gap: 20px; }
  .kc-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  ≤768px
══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Top bar: just phone centred */
  .kc-topbar-left { display: none; }
  .kc-topbar .kc-inner { justify-content: center; }

  /* Header */
  .kc-header { padding: 10px 0; }
  .kc-header .kc-inner { flex-wrap: wrap; gap: 10px; }
  .kc-logo { order: 1; }
  .kc-header-actions { order: 2; margin-left: auto; }
  .kc-search { order: 3; flex-basis: 100%; }
  .kc-header-btn > span:last-child { display: none; }
  .kc-header-btn { padding: 8px 10px; }
  .kc-cart-count { top: 2px; right: 4px; }

  /* Hamburger */
  .kc-menu-toggle { display: flex; }
  .kc-primary-menu { display: none; flex-direction: column; width: 100%; background: var(--mid); padding: 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
  .kc-primary-menu.kc-open { display: flex; }
  .kc-primary-menu > li > a { padding: 11px 20px !important; border-bottom: 1px solid rgba(255,255,255,.06) !important; }
  .kc-primary-menu > li > a:hover { border-bottom-color: rgba(255,255,255,.06) !important; }
  .kc-primary-menu ul { display: none !important; position: static !important; box-shadow: none !important; border-top: none !important; background: rgba(0,0,0,.2) !important; }
  .kc-primary-menu li.kc-has-children.kc-sub-open > ul { display: block !important; }
  .kc-primary-menu ul li a { padding: 9px 20px 9px 32px !important; font-size: 11px !important; }

  /* Categories nav: hide desktop links, show select */
  .kc-categories-menu { display: none; }
  .kc-cat-select-wrap { display: block; }

  /* Bike finder: stays horizontal but tighter */
  .kc-bike-finder-bar .kc-inner { gap: 6px; flex-wrap: wrap; }
  .kc-finder-label { flex-basis: 100%; text-align: center; font-size: 12px; }
  .kcr-ymm-fields { gap: 5px; flex-wrap: wrap; }
  .kcr-ymm-fields select { flex: 1 1 calc(33% - 5px) !important; min-width: 70px !important; font-size: 11px !important; padding: 8px 18px 8px 7px !important; }
  .kcr-ymm-fields button[type="submit"] { flex: 1 1 55% !important; padding: 10px !important; font-size: 12px !important; }
  .kcr-ymm-fields .kcr-clear-bike { flex: 1 1 38% !important; padding: 10px 8px !important; text-align: center !important; }

  /* Page layout: single column */
  .kc-page-wrap { grid-template-columns: 1fr; padding: 12px; gap: 14px; }

  /* Sidebar: collapsed into toggle button */
  .kc-sidebar { order: -1; }
  .kc-sidebar-toggle { display: flex; }
  .kc-sidebar-inner { display: none; }
  .kc-sidebar.is-open .kc-sidebar-inner { display: block; padding-top: 8px; }

  /* Hide sidebar store info on mobile (shown in kc-store-info-block below grid) */
  .kc-sidebar .widget_text { display: none; }
  .kc-store-info-block { display: block; }

  /* Product grid: 2 columns always on mobile */
  ul.products { grid-template-columns: repeat(2,1fr) !important; gap: 10px !important; }
  ul.products li.product .woocommerce-loop-product__title,
  ul.products li.product h2 { font-size: 12px !important; padding: 8px 10px 3px !important; }
  ul.products li.product .price { font-size: 16px !important; padding: 2px 10px 0 !important; }
  ul.products li.product .button { font-size: 11px !important; padding: 7px 10px !important; margin: 8px 10px 10px !important; }

  /* Footer */
  .kc-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .kc-footer-bottom .kc-inner { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL  ≤480px
══════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  ul.products { grid-template-columns: repeat(2,1fr) !important; gap: 8px !important; }
  .kc-footer-grid { grid-template-columns: 1fr; }
  .kc-vendor-box-body { grid-template-columns: 1fr; }
  .kc-vendor-field:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .kc-store-info-block .kc-sib-grid { grid-template-columns: 1fr; }
}

/* ── SAFETY NET: hide any non-product element that ends up inside ul.products ── */
/* This prevents stray divs/wrappers from taking up grid slots */
ul.products > *:not(li) {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}
ul.products > li:not([class*="product"]):not([class*="type-"]) {
  display: none !important;
}
