/* =============================================================
   Murphy Fast Plug — Black Theme Override
   Loaded LAST (after bootstrap/font-awesome/style/booze)

   Accent color (gold): sampled from the Faster Plug banner text.
   ============================================================= */

:root {
  --mfp-black:       #000;
  --mfp-ink:         #0d0d0d;     /* near-black for section depth */
  --mfp-panel:       #141414;     /* card backgrounds */
  --mfp-panel-2:     #1c1c1c;     /* card bottom in gradient */
  --mfp-border:      #2a2a2a;     /* subtle borders */
  --mfp-text:        #ffffff;
  --mfp-muted:       #c7c7c7;
  --mfp-gold:        #FAC800;     /* banner yellow */
  --mfp-gold-soft:   #D4A800;     /* darker yellow for hovers */
  --mfp-danger:      #ff5252;
}

/* --- Base backgrounds: everything black --- */
html,
body,
#ct-js-wrapper,
.ct-pageWrapper,
.ct-sliderSection,
.ct-introSection,
.ct-u-backgroundColorDark,
.ct-subHeader,
.ct-footer,
.ct-postFooter {
  background-color: var(--mfp-black) !important;
  background-image: none !important;
}

/* Kill any inline background-image sprinkled by the theme */
section[style*="background-image"],
div[style*="background-image"] {
  background-image: none !important;
}

/* Base text color */
body,
.ct-article,
.ct-article-content,
.ct-article-tags,
.ct-pageTitle,
.ct-subHeader,
.ct-footer,
.ct-postFooter,
.ct-copyright,
.ct-authorPage,
p, h1, h2, h3, h4, h5, h6,
li, a, span {
  color: var(--mfp-text);
}

/* Links */
a {
  color: var(--mfp-gold);
}
a:hover,
a:focus {
  color: #ffe064;
  text-decoration: none;
}

/* =============================================================
   MAIN NAV: logo on top, all links + cart in one row below
   ============================================================= */
.mfp-main-nav {
  background-color: var(--mfp-black);
  border-bottom: 1px solid var(--mfp-border);
  padding: 18px 0 12px;
}
.mfp-main-nav > .container {
  position: relative;
  text-align: center;
}
.mfp-brand {
  display: inline-block;
  margin: 0 auto 14px;
  text-decoration: none !important;
}
.mfp-brand img {
  display: block;
  max-height: 140px;
  width: auto;
  max-width: 100%;
}

/* Cart icon floats top-right of the main nav */
.mfp-main-nav .mfp-cart-nav-icon {
  position: absolute;
  right: 15px;
  top: 20px;
  color: var(--mfp-gold) !important;
  text-decoration: none !important;
  font-family: 'TitilliumText400', 'Lato', Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  z-index: 2;
  transition: color .18s ease;
}
.mfp-main-nav .mfp-cart-nav-icon:hover,
.mfp-main-nav .mfp-cart-nav-icon:focus {
  color: #ffe064 !important;
  text-decoration: none !important;
}
.mfp-main-nav .mfp-cart-nav-icon i { font-size: 18px; }

.mfp-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.mfp-nav-links > li {
  display: inline-block;
  margin: 0;
  padding: 0;
}
.mfp-nav-links > li > a {
  display: inline-block;
  padding: 10px 12px;
  color: var(--mfp-text) !important;
  text-decoration: none !important;
  font-family: 'TitilliumText400', 'Lato', Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  text-transform: none;
  position: relative;
  transition: color .18s ease;
  background: transparent !important;
  white-space: nowrap;
}
.mfp-nav-links > li > a:hover,
.mfp-nav-links > li > a:focus {
  color: var(--mfp-gold) !important;
  text-decoration: none !important;
  background: transparent !important;
}
.mfp-nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--mfp-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}
.mfp-nav-links > li > a:hover::after,
.mfp-nav-links > li > a:focus::after {
  transform: scaleX(1);
}

/* Legacy .mfp-sub-nav markup removed — all links live in .mfp-main-nav now */

/* Mobile hamburger menu (unchanged structure, re-styled) */
.ct-menuMobile {
  background-color: var(--mfp-black) !important;
}
.ct-menuMobile .ct-menuMobile-navbar > li {
  border-bottom: 1px solid var(--mfp-border);
}
.ct-menuMobile .ct-menuMobile-navbar > li > a {
  color: var(--mfp-text) !important;
  text-decoration: none !important;
}
.ct-menuMobile .ct-menuMobile-navbar > li > a:hover {
  color: var(--mfp-gold) !important;
}
.ct-button {
  background-color: var(--mfp-gold) !important;
}
.ct-button .icon-bar {
  background-color: var(--mfp-black) !important;
}

/* =============================================================
   Page sub-header (title + breadcrumbs)
   ============================================================= */
.ct-subHeader {
  padding: 24px 0;
  border-top: 0 !important;
  border-bottom: 1px solid var(--mfp-border);
  background: var(--mfp-black) !important;
  box-shadow: none !important;
}
.ct-pageTitle {
  color: var(--mfp-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-top: 0 !important;  /* Canvas sets a 1px white border-top; kill it */
}

/* Breadcrumbs — yellow accent */
.breadcrumb {
  background-color: transparent !important;
  padding: 4px 0 0 0;
  margin: 6px 0 0 0;
}
.breadcrumb > li,
.breadcrumb > li > a {
  color: var(--mfp-gold) !important;
  font-weight: 600;
  text-decoration: none !important;
}
.breadcrumb > li.active {
  color: var(--mfp-muted) !important;
}
.breadcrumb > li + li::before {
  color: var(--mfp-gold) !important;
  content: "\00bb" !important;
  padding: 0 8px;
}

/* =============================================================
   Section containers + body polish
   ============================================================= */
.ct-introSection {
  padding: 40px 0 50px !important;
  background: radial-gradient(ellipse at top, #0f0f0f 0%, var(--mfp-black) 70%) !important;
}

/* Container framing on product/intro sections */
.ct-introSection > .container,
.ct-introSection > .container-fluid {
  padding-left: 20px;
  padding-right: 20px;
}

/* ----- Content-on-section fix for free-form pages (safety, about,
   murphyslaw, suppliers) that put <p>/<ul>/<form> directly inside
   <section class="ct-introSection"> instead of wrapping in a container.
   Center the content inside a readable column.
   ---------------------------------------------------------------- */
.ct-introSection > p,
.ct-introSection > h1,
.ct-introSection > h2,
.ct-introSection > h3,
.ct-introSection > h4,
.ct-introSection > h5,
.ct-introSection > h6,
.ct-introSection > ul,
.ct-introSection > ol,
.ct-introSection > hr,
.ct-introSection > form,
.ct-introSection > iframe,
.ct-introSection > div:not(.container):not(.container-fluid):not(.row) {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* --- Product cards --- */
.ct-article {
  background: linear-gradient(180deg, var(--mfp-panel) 0%, var(--mfp-panel-2) 100%);
  border: 1px solid var(--mfp-border);
  border-radius: 8px;
  padding: 18px 16px;
  margin: 6px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  height: 100%;
}
.ct-article:hover {
  border-color: var(--mfp-gold);
  box-shadow: 0 6px 20px rgba(250, 200, 0, 0.15);
  transform: translateY(-2px);
}
.article-media {
  background-color: var(--mfp-black);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid #1f1f1f;
}
.article-media img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}
.ct-article-tags { padding: 4px 0 !important; }

/* =============================================================
   Shipping notice (grey borders now — icon stays gold)
   ============================================================= */
.mfp-shipping-notice {
  background: linear-gradient(90deg, var(--mfp-panel) 0%, #0d0d0d 50%, var(--mfp-panel) 100%);
  border-top: 2px solid var(--mfp-border);
  border-bottom: 2px solid var(--mfp-border);
  color: var(--mfp-text);
  text-align: center;
  padding: 14px 16px;
  margin: 0 0 30px 0;
  font-family: TitilliumText400, Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0.3px;
  font-weight: 600;
}
.mfp-shipping-notice i {
  color: var(--mfp-gold);
  margin-right: 10px;
  font-size: 17px;
  vertical-align: middle;
}

/* =============================================================
   Kill Canvas's auto-comma inside .ct-article-tags <a>
   (Canvas style.css line ~5951 adds content:"," after every <a>;
   we repurposed this markup for product info, not a tag list.)
   ============================================================= */
.ct-article-content ul.ct-article-tags li a:after,
.ct-article-content ul.ct-article-tags li a::after,
article.ct-article .ct-article-content ul.ct-article-tags li a:after,
article.ct-article .ct-article-content ul.ct-article-tags li a::after {
  content: "" !important;
  display: none !important;
}

/* =============================================================
   Spec sheet download button
   ============================================================= */
.mfp-spec-btn {
  display: inline-block;
  background-color: transparent;
  color: var(--mfp-gold) !important;
  border: 1px solid var(--mfp-gold);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none !important;
  border-radius: 3px;
  margin: 6px 4px;
  font-family: TitilliumText400, Arial, sans-serif;
  transition: all .18s ease;
  letter-spacing: 0.3px;
}
.mfp-spec-btn:hover,
.mfp-spec-btn:focus,
.mfp-spec-btn:active {
  background-color: var(--mfp-gold);
  color: var(--mfp-black) !important;
  text-decoration: none !important;
}
.mfp-spec-btn i { margin-right: 6px; }

/* Add to Cart button in gold */
.mfp-add-btn {
  background-color: var(--mfp-gold);
  color: var(--mfp-black);
  border: 0;
  padding: 8px 18px;
  font-weight: 700;
  border-radius: 3px;
  font-family: TitilliumText400, Arial, sans-serif;
  letter-spacing: 0.3px;
  transition: background-color .18s ease;
  text-decoration: none !important;
}
.mfp-add-btn:hover,
.mfp-add-btn:focus {
  background-color: var(--mfp-gold-soft);
  color: var(--mfp-black);
  text-decoration: none !important;
}
.mfp-add-btn i {
  margin-right: 6px;
  color: var(--mfp-black);
}

/* =============================================================
   Faster Plug full-width banner (home page)
   ============================================================= */
.mfp-faster-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  background-color: var(--mfp-black);
  text-decoration: none !important;
}
.mfp-faster-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* =============================================================
   Footer — ALWAYS show the left copyright, right credit link.
   Overrides Canvas's narrow-screen rules that hid both and relied
   on the .ct-displayHide duplicate (which we don't use).
   ============================================================= */
.ct-footer {
  border-top: 1px solid var(--mfp-border);
  padding: 0;
  margin-top: 40px;
}
.ct-postFooter {
  padding: 24px 0 !important;
  background-color: var(--mfp-black) !important;
}

/* Force flex layout regardless of theme's old table-cell rules */
.ct-postFooter .ct-u-displayTableVertical {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100% !important;
  padding: 0 15px !important;
}
.ct-postFooter .ct-u-displayTableCell {
  display: block !important;
  flex: 1 1 300px;
  width: auto !important;
  padding: 0 !important;
}
.ct-postFooter .ct-footerCol1 {
  text-align: left !important;
}
.ct-postFooter .ct-footerCol3 {
  text-align: right !important;
}

/* The visible copyright on the LEFT must always show, even on narrow
   screens where Canvas's style.css sets .ct-copyright { display:none } */
.ct-footer .ct-postFooter .ct-footerCol1 .ct-copyright {
  display: block !important;
  color: var(--mfp-muted) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}
.ct-postFooter .ct-authorPage {
  color: var(--mfp-muted) !important;
  font-size: 13px !important;
  margin: 0 !important;
}
.ct-postFooter .ct-authorPage a {
  color: var(--mfp-gold) !important;
  text-decoration: none !important;
}
.ct-postFooter .ct-authorPage a:hover {
  color: #ffe064 !important;
}

/* Hide the duplicate copyright that Canvas uses on narrow widths —
   we handle visibility via the LEFT column above instead. */
.ct-postFooter .ct-footerCol3 .ct-copyright.ct-displayHide {
  display: none !important;
}

/* Mobile: stack and center both columns */
@media (max-width: 767px) {
  .ct-postFooter .ct-u-displayTableVertical {
    flex-direction: column;
    text-align: center;
  }
  .ct-postFooter .ct-footerCol1,
  .ct-postFooter .ct-footerCol3 {
    text-align: center !important;
  }
}

/* =============================================================
   Cart drawer (readable on dark)
   ============================================================= */
#mfp-cart-drawer,
.mfp-cart-drawer {
  background-color: #111 !important;
  color: var(--mfp-text);
}
.mfp-cart-badge {
  background-color: var(--mfp-gold) !important;
  color: var(--mfp-black) !important;
}

/* STOP warning stays red for safety emphasis */
.ct-introSection span[style*="color: red"] {
  color: var(--mfp-danger) !important;
  font-weight: bold;
}

/* =============================================================
   Faster Plug disclosure figures row + caption
   ============================================================= */
.mfp-figure-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: stretch;
  margin: 36px auto 10px;
  max-width: 1140px;
  padding: 0 15px;
}
.mfp-figure {
  flex: 1 1 280px;
  max-width: 360px;
  margin: 0;
  padding: 10px;
  background: linear-gradient(180deg, var(--mfp-panel) 0%, var(--mfp-panel-2) 100%);
  border: 1px solid var(--mfp-border);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.mfp-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.mfp-figure-caption {
  text-align: center;
  font-family: TitilliumText400, Arial, sans-serif;
  font-size: 10px;
  font-style: italic;
  color: var(--mfp-muted);
  max-width: 900px;
  margin: 28px auto 0;
  padding: 0 20px;
  line-height: 1.5;
}

/* =============================================================
   Safety page — parts list PDF embed
   ============================================================= */
.mfp-safety-doc {
  max-width: 1000px;
  margin: 28px auto 0;
  padding: 12px;
  background: linear-gradient(180deg, var(--mfp-panel) 0%, var(--mfp-panel-2) 100%);
  border: 1px solid var(--mfp-border);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}
.mfp-safety-doc-frame {
  display: block;
  width: 100%;
  height: 900px;
  border: 0;
  background: #fff;   /* PDF viewer background while loading */
  border-radius: 4px;
}
.mfp-safety-doc-fallback {
  text-align: center;
  margin: 12px 0 0;
  color: var(--mfp-muted);
  font-size: 14px;
}
.mfp-safety-doc-fallback a {
  color: var(--mfp-gold) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.mfp-safety-doc-fallback a:hover {
  color: #ffe064 !important;
}
@media (max-width: 767px) {
  .mfp-safety-doc-frame { height: 600px; }
}

/* =============================================================
   Embedded videos (about.php, etc.)
   ============================================================= */
.mfp-video-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  margin: 24px auto !important;
  max-width: 1140px !important;
  padding: 0 20px !important;
}
.mfp-video {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 9;
  background-color: var(--mfp-ink);
  border: 1px solid var(--mfp-border);
  border-radius: 6px;
  overflow: hidden;
}
.mfp-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* =============================================================
   Full-screen submit overlay + spinner (contact form)
   ============================================================= */
.mfp-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.mfp-overlay-active {
  display: flex;
}
.mfp-spinner {
  width: 72px;
  height: 72px;
  border: 5px solid rgba(250, 200, 0, 0.18);
  border-top-color: var(--mfp-gold);
  border-radius: 50%;
  animation: mfp-spin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(250, 200, 0, 0.2);
}
@keyframes mfp-spin {
  to { transform: rotate(360deg); }
}

/* Form result banner (success / error) */
.mfp-form-result {
  margin: 0;
  padding: 0;
  font-family: TitilliumText400, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
.mfp-form-result:empty {
  display: none;
}
.mfp-form-result-success,
.mfp-form-result-error {
  display: block;
  padding: 12px 16px;
  margin: 0 0 18px 0;
  border-radius: 4px;
  font-weight: 600;
}
.mfp-form-result-success {
  background: rgba(250, 200, 0, 0.10);
  border: 1px solid var(--mfp-gold);
  color: var(--mfp-gold);
}
.mfp-form-result-error {
  background: rgba(255, 82, 82, 0.10);
  border: 1px solid var(--mfp-danger);
  color: #ff8080;
}
/* Server-rendered fallback (non-AJAX): the <p> inside carries old inline
   colors. Normalize them to match the banner. */
.mfp-form-result-success > p,
.mfp-form-result-error > p {
  color: inherit !important;
  margin: 0 !important;
  font-size: inherit !important;
}

/* =============================================================
   Contact form card (about.php)
   ============================================================= */
.mfp-contact-card {
  background: linear-gradient(180deg, var(--mfp-panel) 0%, var(--mfp-panel-2) 100%);
  border: 1px solid var(--mfp-border);
  border-radius: 8px;
  padding: 28px 32px 32px;
  margin: 24px auto 40px !important;
  max-width: 760px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}
.mfp-contact-card-title {
  color: var(--mfp-text) !important;
  font-family: TitilliumText800, Arial, sans-serif;
  font-size: 22px;
  letter-spacing: 0.5px;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--mfp-gold);
  display: inline-block;
}
.mfp-contact-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.mfp-contact-form .mfp-field {
  margin-bottom: 16px;
}
.mfp-contact-form .mfp-field label {
  display: block;
  color: var(--mfp-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.mfp-contact-form input[type="text"],
.mfp-contact-form input[type="email"],
.mfp-contact-form input[type="tel"],
.mfp-contact-form textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background-color: #0a0a0a !important;
  color: var(--mfp-text) !important;
  border: 1px solid var(--mfp-border);
  border-radius: 4px;
  font-family: TitilliumText400, Arial, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color .18s ease, box-shadow .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.mfp-contact-form textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.5;
}
.mfp-contact-form input[type="text"]:focus,
.mfp-contact-form input[type="email"]:focus,
.mfp-contact-form input[type="tel"]:focus,
.mfp-contact-form textarea:focus {
  outline: none;
  border-color: var(--mfp-gold);
  box-shadow: 0 0 0 2px rgba(250, 200, 0, 0.15);
}
.mfp-contact-form input::placeholder,
.mfp-contact-form textarea::placeholder {
  color: #666;
}
/* Chrome/Edge autofill — keep dark background */
.mfp-contact-form input:-webkit-autofill,
.mfp-contact-form input:-webkit-autofill:hover,
.mfp-contact-form input:-webkit-autofill:focus,
.mfp-contact-form textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--mfp-text);
  -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset;
  caret-color: var(--mfp-text);
  border: 1px solid var(--mfp-border);
}
.mfp-contact-form .mfp-field-submit {
  margin-top: 24px;
  margin-bottom: 0;
}
.mfp-contact-form input[type="submit"].mfp-add-btn {
  display: inline-block;
  width: auto;
  cursor: pointer;
  padding: 10px 28px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 0;
}

@media (max-width: 600px) {
  .mfp-contact-card { padding: 20px 18px 24px; }
  .mfp-contact-card-title { font-size: 18px; }
}

/* =============================================================
   Responsive nav tweaks
   ============================================================= */
@media (max-width: 1199px) {
  .mfp-nav-links > li > a {
    padding: 10px 10px;
    font-size: 14px;
    letter-spacing: 0.2px;
  }
  .mfp-nav-links > li > a::after {
    left: 10px;
    right: 10px;
  }
}
@media (max-width: 991px) {
  .mfp-nav-links > li > a {
    padding: 8px 8px;
    font-size: 13px;
  }
  .mfp-nav-links > li > a::after {
    left: 8px;
    right: 8px;
  }
  .mfp-main-nav .mfp-cart-nav-icon {
    top: 14px;
    right: 10px;
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .mfp-brand img { max-height: 100px; }
  .mfp-nav-links > li > a { padding: 6px 7px; font-size: 12px; letter-spacing: 0; }
  .mfp-main-nav .mfp-cart-nav-icon span:not(.mfp-cart-badge) { display: none; }
}
