:root {
  --accent: #f5851f;
  --dark: #1b2733;
  --grey-bg: #f5f5f5;
  --text: #333;
  --max-width: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  visibility: hidden;
}
/* Site-wide page-transition rule: every page's content stays hidden (plain blank
   page, nothing half-built ever visible) until components.js reveals it once the
   page has genuinely finished building itself — not on a timer, so there's no
   added delay, just no in-between state shown. See components.js. */
body.page-ready { visibility: visible; }

a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  background: var(--dark);
  min-height: 78px;
}

.header-top {
  background: var(--dark);
  color: #fff;
  padding: 22px 32px;
}
.header-top-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo { font-size: 22px; font-weight: 700; }
.logo span { color: var(--accent); }
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.site-logo { height: 64px; width: auto; object-fit: contain; }

/* Search */
.search-wrap { position: relative; flex: 1; display: flex; }
.search-input {
  flex: 1;
  padding: 14px 22px;
  border-radius: 8px 0 0 8px;
  border: none;
  font-size: 15px;
  color: var(--dark);
  outline: none;
  min-width: 0;
}
.search-btn {
  background: var(--accent);
  border: none;
  padding: 0 22px;
  border-radius: 0 8px 8px 0;
  font-size: 18px;
  cursor: pointer;
  color: #fff;
}
.search-btn:hover { background: #d96f10; }

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 620px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  z-index: 200;
  overflow: hidden;
  max-height: 560px;
  overflow-y: auto;
}
.search-results.open { display: block; }
.sr-item {
  display: grid;
  grid-template-columns: 64px 1fr 70px 90px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: #f7f9fc; }
.sr-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #f5f5f5; }
.sr-info { min-width: 0; }
.sr-name { font-size: 15px; font-weight: 700; color: var(--dark); display: block; margin-bottom: 5px; white-space: normal; line-height: 1.3; }
.sr-name:hover { color: var(--accent); }
.sr-meta { font-size: 13px; color: #666; white-space: normal; line-height: 1.5; }
.sr-price { font-size: 15px; font-weight: 700; color: var(--dark); white-space: nowrap; text-align: center; }
.sr-add { background: var(--accent); color: #fff; border: none; padding: 10px 14px; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; text-align: center; }
.sr-add:hover { background: #d96f10; }
.sr-empty { padding: 20px 18px; font-size: 14px; color: #777; }

.social-links {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-left: 28px;
  border-left: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.social-link {
  color: rgba(255,255,255,0.8);
  line-height: 1;
  transition: color 0.2s;
}
.social-link:hover { color: #fff; }
.social-link .fa-facebook-f { font-size: 24px; }
.social-link .fa-ebay       { font-size: 32px; }
.social-link .fa-amazon     { font-size: 28px; }

.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cart-link:hover { background: #d96f10; }
.cart-count {
  background: #fff;
  color: var(--accent);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Nav bar */
.header-nav {
  background: #243444;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.header-nav ul {
  display: flex;
  gap: 0;
  list-style: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.header-nav a {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #c8d0d8;
  padding: 10px 9px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.header-nav a:hover { color: #fff; border-bottom-color: var(--accent); }
.header-nav a.active { color: #fff; border-bottom-color: var(--accent); }

/* Dropdown */
.nav-has-dropdown { position: relative; }
.nav-dropdown-trigger { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1b2d3e;
  min-width: 210px;
  z-index: 200;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  padding: 6px 0;
  border-top: 2px solid var(--accent);
}
.nav-has-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 9px 20px;
  color: #c8d0d8;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: none;
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-menu a:hover { color: #fff; background: rgba(255,255,255,0.06); border-bottom-color: transparent; }
.nav-dropdown-menu a.active { color: var(--accent); background: rgba(245,133,31,0.08); border-bottom-color: transparent; }

/* Search */
.search-wrap { position: relative; flex: 1; max-width: 320px; margin: 0 20px; }
.search-input {
  width: 100%;
  padding: 9px 16px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  outline: none;
  transition: background 0.2s;
}
.search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-input:focus { background: rgba(255,255,255,0.22); }

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  z-index: 200;
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}
.search-results.open { display: block; }
.sr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: #f9f9f9; }
.sr-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; background: #f5f5f5; flex-shrink: 0; }
.sr-info { flex: 1; min-width: 0; }
.sr-name { font-size: 13.5px; font-weight: 600; color: var(--dark); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-name:hover { color: var(--accent); }
.sr-meta { font-size: 12px; color: #888; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-add { background: var(--dark); color: #fff; border: none; padding: 6px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.sr-add:hover { background: var(--accent); }
.sr-empty { padding: 16px 14px; font-size: 13.5px; color: #777; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--dark), #2c3e50);
  color: #fff;
  padding: 70px 24px;
  text-align: center;
}
.hero h1 { font-size: 38px; margin-bottom: 14px; }
.hero p { font-size: 18px; max-width: 600px; margin: 0 auto 28px; opacity: 0.9; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.btn:hover { background: #d96f10; }
.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

/* Page intro */
.page-intro {
  padding: 50px 24px 20px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.page-intro h1 {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--dark);
}
.page-intro p { font-size: 16px; color: #555; }

.accent-bar {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Product groups grid (home page) */
.section { padding: 50px 24px; }
.section-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 36px;
  color: var(--dark);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }

.card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 16px; margin-bottom: 8px; color: var(--dark); }
.card-body p { font-size: 14px; color: #666; flex: 1; }
.card-body .specs { font-size: 12.5px; color: #888; margin-top: 10px; font-style: italic; }

.card-footer {
  padding: 12px 16px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price { font-weight: 700; color: var(--dark); }

.add-btn {
  background: var(--dark);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.add-btn:hover { background: var(--accent); }

/* Category nav strip */
.category-strip {
  background: var(--grey-bg);
  padding: 16px 24px;
}
.category-strip .container { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.category-strip a {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}
.category-strip a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* About */
.about-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 50px 24px;
  font-size: 16px;
  color: #444;
}
.about-content h2 { color: var(--dark); margin: 28px 0 12px; font-size: 22px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 70px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info p { margin-bottom: 14px; font-size: 15px; }
.contact-info strong { color: var(--dark); }

form.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* Cart page */
.cart-table { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 40px 24px; }
.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px 120px 40px;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.cart-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: #fff; }
.qty-input { width: 60px; padding: 6px; border: 1px solid #ccc; border-radius: 4px; text-align: center; }
.remove-btn { background: none; border: none; color: #c00; cursor: pointer; font-size: 18px; }
.cart-summary {
  max-width: 360px;
  margin: 30px 0 0 auto;
  background: var(--grey-bg);
  border-radius: 8px;
  padding: 20px;
}
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 15px; }
.cart-summary .total { font-weight: 700; font-size: 18px; border-top: 1px solid #ddd; padding-top: 10px; }
.empty-cart { text-align: center; padding: 60px 24px; color: #777; }

/* Checkout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 70px;
}
@media (max-width: 800px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-grid h2 { margin-bottom: 16px; color: var(--dark); }
.checkout-form input, .checkout-form select {
  width: 100%;
  padding: 11px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
.checkout-form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-summary { background: var(--grey-bg); border-radius: 8px; padding: 20px; align-self: start; }
.order-summary .item { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.demo-note {
  background: #fff7ec;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: #8a5a12;
  margin-bottom: 16px;
}

/* Footer */
footer {
  background: var(--dark);
  color: #cfd6dc;
  padding: 40px 24px 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto 24px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
footer h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; font-size: 13.5px; }
/* Space between the home page's orange banner and the footer text (owner, 2026-12-01: "i want a slightly bigger gap
   between the bottom of the oragne bit and where the text starts"); only where the footer comes straight after it */
.cta-banner + #site-footer { padding-top: 36px; }
.footer-bottom {
  text-align: center;
  font-size: 12.5px;
  color: #8a96a3;
  border-top: 1px solid #2f3c48;
  padding-top: 18px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark);
  color: #fff;
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Subcategory cards (category drill-down) */
.subcat-grid { display: flex; flex-direction: column; gap: 12px; }

.subcat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.subcat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateX(4px);
}
.subcat-image {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.subcat-image img { width: 100%; height: 100%; object-fit: contain; }
.subcat-body { flex: 1; }
.subcat-body h3 { font-size: 16px; color: var(--dark); margin-bottom: 4px; }
.subcat-count { font-size: 13px; color: #888; }
.subcat-arrow { font-size: 20px; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ============ Slideshow hero ============ */
.slideshow-hero {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease;
}
.slideshow-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 14px);
  pointer-events: none;
  z-index: 0;
}
.hero-slide { display: none; }
.hero-slide.active { display: block; animation: heroFade 0.5s ease; }
@keyframes heroFade { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }

.hero-slide-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 52px;
  position: relative;
  z-index: 1;
}
.hero-text { flex: 1; color: #fff; }
.hero-text .eyebrow { margin-bottom: 18px; }
.hero-text h1, .hero-text h2 { font-size: 46px; line-height: 1.15; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.5px; }   /* the 2nd and 3rd slides' titles are h2 (one h1 a page), the same look */
.hero-text p { font-size: 17px; color: rgba(255,255,255,0.72); margin: 0 0 30px; line-height: 1.6; max-width: 500px; }

.hero-img-side {
  flex: 0 0 380px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-placeholder { color: rgba(255,255,255,0.22); font-size: 13px; }

.slide-prev, .slide-next {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.slide-prev { left: 18px; }
.slide-next { right: 18px; }
.slide-prev:hover, .slide-next:hover { background: rgba(245,133,31,0.55); }

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 0 0 18px;
  position: relative;
  z-index: 1;
}
.sdot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.sdot.active { background: var(--accent); transform: scale(1.25); }

/* ============ Home page (professional redesign) ============ */

.home-hero {
  background: radial-gradient(circle at 20% 20%, #233040 0%, var(--dark) 55%, #0f161e 100%);
  color: #fff;
  padding: 100px 24px 90px;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.home-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  background: rgba(245,133,31,0.15);
  color: var(--accent);
  border: 1px solid rgba(245,133,31,0.4);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.home-hero h1 {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.home-hero p.subhead {
  font-size: 18px;
  color: #c3ccd4;
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; }
.btn-lg { padding: 14px 32px; font-size: 15.5px; border-radius: 8px; }

.trust-strip {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #b9c2ca; font-weight: 500; }
.trust-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* Featured categories */
.featured-section { padding: 80px 24px; background: #fff; }
.featured-head { text-align: center; max-width: 600px; margin: 0 auto 50px; }
.featured-head .kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.featured-head h2 { font-size: 32px; color: var(--dark); margin-bottom: 12px; }
.featured-head p { color: #666; font-size: 15.5px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(27,39,51,0.12);
  border-color: transparent;
}
.feature-card .fc-image {
  aspect-ratio: 1/1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card .fc-image img { width: 55%; height: 55%; object-fit: contain; }
#fc-hydraulic-hose, #fc-hydraulic-hose-connectors, #fc-hydraulic-valves, #fc-hose-inserts, #fc-adaptors, #fc-bonded-washers, #fc-service-plugs, #fc-window-cleaning, #fc-air-line, #fc-air-line-hose, #fc-air-brake, #fc-pressure-washer, #fc-carpet-cleaning, #fc-lpg { border: 1px solid #e3e3e3; border-radius: 8px; }
.feature-card .fc-body { padding: 22px 20px 24px; }
.feature-card h3 { font-size: 16.5px; color: var(--dark); margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: #666; margin-bottom: 14px; min-height: 40px; }
.fc-link { font-size: 13.5px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.fc-link .arrow { transition: transform 0.2s; }
.feature-card:hover .fc-link .arrow { transform: translateX(4px); }

/* Why choose us */
.why-section { background: var(--grey-bg); padding: 80px 24px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .why-grid { grid-template-columns: 1fr; } }

.why-item { text-align: center; }
.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--dark);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 24px;
  font-weight: 700;
}
.why-item h4 { font-size: 16px; color: var(--dark); margin-bottom: 8px; }
.why-item p { font-size: 13.5px; color: #666; }

/* Closing CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--accent), #d96f10);
  color: #fff;
  text-align: center;
  padding: 60px 24px;
}
.cta-banner h2 { font-size: 28px; margin-bottom: 12px; }
.cta-banner p { font-size: 15.5px; opacity: 0.95; margin-bottom: 26px; }
.cta-banner .btn { background: #fff; color: var(--dark); font-weight: 700; }

/* Product size selector (subcategory group level) */
.ps-wrap { max-width: 820px; margin: 0 auto; padding: 0 24px 60px; }
.ps-desc { color: #555; font-size: 15px; margin-bottom: 28px; }
.ps-section { margin-bottom: 28px; }
.ps-label { font-size: 13px; font-weight: 700; color: #555; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.ps-options { display: flex; flex-wrap: wrap; gap: 10px; }
.ps-btn {
  padding: 10px 20px; border: 2px solid #ddd; border-radius: 7px;
  background: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  color: var(--dark); transition: border-color .15s, background .15s, color .15s;
}
.ps-btn:hover { border-color: var(--accent); color: var(--accent); }
.ps-btn.selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.ps-summary {
  background: #f5f7f9; border-radius: 10px; padding: 24px;
  border: 1px solid #e4e8ec; margin-top: 8px;
}
.ps-summary--waiting p { color: #999; margin: 0; font-style: italic; }
.ps-specs { font-size: 14px; color: #555; margin-bottom: 12px; }
.ps-price { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.ps-add {
  background: var(--accent); color: #fff; border: none;
  padding: 14px 32px; border-radius: 8px; font-size: 16px; font-weight: 700;
  cursor: pointer; width: 100%; transition: background .2s;
}
.ps-add:hover { background: #d96e10; }
.cta-banner .btn:hover { background: #f1f1f1; }

/* ══ Phones and narrow screens (owner, 2026-11-19: "have problmes with the mobile version looks not very good is there a
   way to improve this without changing the computer version"). Everything below sits inside max-width rules, so the
   computer layout is unchanged. "body" in front of a selector makes it win over the pages' own <style> blocks. ══ */

/* The product page and the build-your-own pages keep their photo in view (sticky) while the details scroll past it.
   Once the photo sits above the details instead of beside them, that made it slide over Qty and Add to Cart. */
@media (max-width: 860px) {
  body .pgp-above { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body .pgp-images { position: static; }
}
@media (max-width: 720px) {
  body .config-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body .config-media { position: static; }
  body .config-image { position: relative; top: auto; }
}

@media (max-width: 700px) {
  /* Nothing wider than the screen makes the page scroll sideways */
  html, body { overflow-x: clip; }

  /* Header: logo, search and cart on one row; the social icons (not linked anywhere yet) left out */
  #site-header { min-height: 0; }
  .header-top { padding: 10px 12px; }
  .header-top-inner { gap: 10px; }
  .site-logo { height: 40px; }
  .social-links { display: none; }
  body .search-wrap { flex: 1 1 auto; max-width: none; margin: 0; min-width: 0; }
  body .search-input { padding: 9px 10px; font-size: 16px; } /* 16px stops iPhones zooming in on the box */
  body .search-btn { padding: 0 12px; font-size: 16px; }
  .cart-link { font-size: 0; gap: 6px; padding: 9px 11px; } /* the trolley and the count, without the word Cart */
  .cart-link i { font-size: 17px; }
  .cart-count { font-size: 12px; }
  /* Search results across the whole screen width, just under the header row */
  body .search-results { position: fixed; top: 62px; left: 8px; right: 8px; width: auto; max-height: 70vh; }
  body .sr-item { gap: 10px; padding: 10px 12px; }
  body .sr-price { font-size: 13.5px; }
  .header-nav ul { padding: 0 8px; }
  .header-nav a { font-size: 13px; padding: 10px 9px; }
  /* Products menu: no scroll bar and no white strip under it (owner, 2026-11-19); long names wrap instead of
     running off the side, the items are a little closer so all 13 fit, and it can still be swiped if a screen is short */
  .nav-dropdown-menu { max-height: calc(100vh - 120px); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: 4px 0; }
  .nav-dropdown-menu::-webkit-scrollbar { display: none; }
  .nav-dropdown-menu a { white-space: normal; padding: 7px 16px; font-size: 13.5px; line-height: 1.35; }
  /* And no scroll bar down the side of the page on phones */
  html { scrollbar-width: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

  /* Page spacing */
  .container { padding: 0 16px; }
  .section { padding: 32px 16px; }
  .page-intro { padding-left: 16px; padding-right: 16px; }

  /* Category buttons: all of them showing, small and close together (owner, 2026-11-19: "want all of them but want it
     to be very compact"; the first phone version was one row you swiped along, showing two at a time) */
  .category-strip { padding: 10px 10px; }
  .category-strip .container { gap: 5px; padding: 0; }
  .category-strip a { font-size: 11.5px; padding: 4px 9px; border-radius: 14px; line-height: 1.35; }

  /* The product boxes on the category pages (and their sub-pages): smaller, without the description (owner, 2026-11-19:
     "lets make all the boxs with the products in them smaller just dont show the description"). The grid's side padding is
     set on the element itself, hence !important. */
  .subcat-grid { gap: 8px; padding-left: 14px !important; padding-right: 14px !important; }
  .subcat-card { gap: 12px; padding: 10px 12px; }
  .subcat-image { width: 54px; height: 54px; }
  .subcat-body h3 { font-size: 15px; margin-bottom: 0; line-height: 1.3; }
  .subcat-count { display: none; }
  .subcat-arrow { font-size: 18px; }

  /* Home page banner: text, then the photo, with small arrows at the bottom */
  .slideshow-hero .hero-slide-inner { flex-direction: column; align-items: stretch; gap: 20px; padding: 34px 18px 20px; }
  .slideshow-hero .hero-text h1, .slideshow-hero .hero-text h2 { font-size: 30px; }
  .slideshow-hero .hero-text p { font-size: 15px; margin-bottom: 20px; }
  .slideshow-hero .hero-img-side { flex: none; width: 100%; height: 210px; }
  .slideshow-hero .slide-prev, .slideshow-hero .slide-next { top: auto; bottom: 8px; transform: none; width: 34px; height: 34px; font-size: 20px; }
  .slideshow-hero .slide-dots { padding-bottom: 20px; }
  /* The four points under the banner (UK Registered Company, Trade-Quality Components, …) left out on phones
     (owner, 2026-11-19: "these bullet points should not be there i think it takes up to much space on the phone") */
  .slideshow-hero .trust-strip { display: none; }
  .featured-section, .why-section { padding: 48px 16px; }
  .featured-head { margin-bottom: 28px; }
  .featured-head h2 { font-size: 24px; }

  /* Product page */
  body .pgp-wrap { padding: 16px 14px 56px; }
  body .pgp-title { font-size: 21px; }
  body .pgp-thumb { width: 72px; padding: 6px; }
  body .pgp-badge-item { width: 64px; height: 64px; }
  body .pgp-tab { padding: 12px 14px; }
  body .pgp-trust { gap: 10px 16px; }

  /* Build-your-own pages */
  body .configurator { padding: 20px 14px 56px; }

  /* Basket: photo, name and remove on top; price and quantity underneath */
  .cart-table { padding: 24px 14px; }
  .cart-row { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "img info remove" "img price qty";
              gap: 6px 12px; align-items: start; }
  .cart-row > :nth-child(1) { grid-area: img; width: 56px; height: 56px; }
  .cart-row > :nth-child(2) { grid-area: info; min-width: 0; }
  .cart-row > :nth-child(3) { grid-area: price; align-self: center; font-weight: 600; }
  .cart-row > :nth-child(4) { grid-area: qty; justify-self: end; }
  .cart-row > :nth-child(5) { grid-area: remove; justify-self: end; }
  .cart-summary { max-width: none; margin-top: 20px; }
  /* Each line's details (the spec list under the name) cut to two lines on phones (owner, 2026-11-19: "i dont want all
     this info just couple lines at most ... on phone only") */
  .cart-row > :nth-child(2) > strong + div { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
                                              -webkit-box-orient: vertical; overflow: hidden; }

  /* Footer: the text in from the edges, and the bullets inside the columns (owner: "make this text come in a bit so
     its not right on the edge of the page"). The footer is #site-footer (a div), so the old "footer" rules never apply. */
  #site-footer { padding: 28px 18px 20px; }
  #site-footer ul { padding-left: 18px; }
  /* a line above it the same as the one above the © line: inside the side margins, not touching the edges */
  #site-footer .footer-grid { gap: 22px 18px; margin-bottom: 20px; border-top: 1px solid #2f3c48; padding-top: 26px; }
}

/* Home page category cards two to a row on phones (owner, 2026-11-19: "make all the main images on the main page
   smaller so that you can get 2 in one row next to each other") */
@media (max-width: 500px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .feature-card .fc-image img { width: 72%; height: 72%; }
  .feature-card .fc-body { padding: 12px 12px 14px; }
  .feature-card h3 { font-size: 14.5px; margin-bottom: 6px; }
  .feature-card p { font-size: 12px; line-height: 1.45; min-height: 0; margin-bottom: 10px; }
  .fc-link { font-size: 12.5px; }
}

/* Guides and tools (tools/make_guides.py, 2026-12-01): the article, its tables, notes, questions and the bar/psi converter */
.guide { max-width: 880px; margin: 0 auto; padding: 6px 24px 60px; font-size: 16px; color: #444; line-height: 1.65; }
.guide h2 { color: var(--dark); margin: 34px 0 12px; font-size: 22px; }
.guide p { margin: 0 0 14px; }
.guide ol, .guide ul { margin: 0 0 16px 22px; }
.guide li { margin-bottom: 6px; }
.guide a { color: var(--accent); font-weight: 600; }
.guide-small { font-size: 13.5px; color: #777; }
.guide-table-wrap { overflow-x: auto; margin: 0 0 12px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.guide-table-narrow { width: auto; min-width: 420px; }
.guide-table th, .guide-table td { border: 1px solid #e2e6ea; padding: 8px 10px; text-align: left; white-space: nowrap; }
.guide-table th { background: var(--dark); color: #fff; font-weight: 700; }
.guide-table tr:nth-child(even) td { background: #f7f9fb; }
.guide-note { background: #fff7ef; border-left: 4px solid var(--accent); padding: 12px 16px; margin: 6px 0 18px; font-size: 15px; }
.guide-faq dt { font-weight: 700; color: var(--dark); margin-top: 14px; }
.guide-faq dd { margin: 4px 0 0; }
.guide-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 18px; list-style: none; margin-left: 0 !important; }
.conv-box { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; background: #f4f6f8; border: 1px solid #e2e6ea; border-radius: 10px; padding: 18px; margin: 0 0 10px; }
.conv-box label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--dark); font-size: 14px; }
.conv-box input { font-size: 20px; padding: 10px 12px; border: 1px solid #cfd6dc; border-radius: 8px; width: 100%; }
@media (max-width: 700px) {
  .conv-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body .guide { padding: 4px 16px 40px; }
}
/* Coupling guide (tools/make_guides.py, 2026-12-02): smaller headings, a comparison table whose cells wrap, and a row of photos */
.guide h3 { color: var(--dark); margin: 26px 0 10px; font-size: 18px; }
.guide-table-text { min-width: 640px; }
.guide-table-text th, .guide-table-text td { white-space: normal; vertical-align: top; }
.guide-table-text td:first-child { width: 22%; }
.guide-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 6px 0 18px; }
.guide-photos figure { margin: 0; }
.guide-photos img { display: block; width: 100%; height: 190px; object-fit: contain; background: #fff; border: 1px solid #e2e6ea; border-radius: 10px; padding: 10px; box-sizing: border-box; }
.guide-photos figcaption { font-size: 14px; color: #555; margin-top: 8px; line-height: 1.45; }
@media (max-width: 700px) {
  .guide-photos { gap: 8px; }
  .guide-photos img { height: 110px; padding: 6px; }
  .guide-photos figcaption { font-size: 12.5px; }
}

/* "Guides & Tools" in the top menu (2026-12-02): "Guides" on phones, where the longer name would push the menu off the
   screen; on the narrowest phones (320px) the five menu links sit a little closer so they fit */
.header-nav .nav-short { display: none; }
@media (max-width: 700px) { .header-nav .nav-long { display: none; } .header-nav .nav-short { display: inline; } }
@media (max-width: 340px) { .header-nav a { padding: 10px 6px; } }

/* Ball valve guide (tools/make_guides.py, 2026-12-02): small flow diagrams, the ball from above with the oil's path in orange */
.guide-diagrams { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 6px 0 14px; max-width: 560px; }
.guide-diagrams figure { margin: 0; background: #f4f6f8; border: 1px solid #e2e6ea; border-radius: 10px; padding: 10px 10px 8px; text-align: center; }
.guide-diagrams svg { display: block; width: 100%; max-width: 140px; height: auto; margin: 0 auto; }
.guide-diagrams figcaption { font-size: 13.5px; color: #444; margin-top: 6px; line-height: 1.4; }
@media (max-width: 700px) {
  .guide-diagrams { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .guide-diagrams figcaption { font-size: 12.5px; }
}
