/* ---------------------------------------------
   ---------------------------------------------
   START OF ff_main.css
---------------------------------------------
--------------------------------------------- */


/********* masterHeader *********/

/* ===========================
   COLOUR VARIABLES
   =========================== */
:root {
    /* ============================
       BRAND COLOURS
    ============================ */
    --ff-orange:      #F28C38;
    --ff-blue:        #264B7F;
    --ff-green:       #3FAE4E;

    /* ============================
       NEUTRALS
    ============================ */
    --ff-white:       #FFFFFF;
    --ff-light:       #F7F7F7;
    --ff-steel:       #E3E0DC;   /* light neutral */
    --ff-hover:       #CCC7C2;   /* hover neutral */

    /* ============================
       TEXT COLOURS
    ============================ */
    --ff-charcoal:    #2B2B2B;   /* primary text */
    --ff-grey-dark:   #333333;   /* strong headings */
    --ff-grey-mid:    #666666;   /* secondary text */

    /* ============================
       KC-SPECIFIC NEUTRALS
       (used in KC nav + accents)
    ============================ */
    --ff-steel-light: #D7D7D7;   /* KC link text */
    --ff-blue-muted:  #9BB0C9;   /* KC section labels */

    /* ============================
       FUNCTIONAL COLOURS
    ============================ */
    --ff-overlay:     rgba(0,0,0,0.45);
}


/* ===========================
   FF CATEGORY COLOUR PALETTE
   =========================== */

:root {
    /* Allthreads – Soft Steel Blue */
    --ff-cat-allthreads: #E8EEF5;

    /* Machine Screws – Muted Brass Neutral */
    --ff-cat-machine-screws: #F3EDE2;

    /* Bolts – Light Graphite Grey */
    --ff-cat-bolts: #E6E6E6;

    /* Nuts & Washers (Assemblies) – Warm Neutral */
    --ff-cat-assemblies: #EFEFEA;

    /* Wall Ties & Tooling – TIGER‑inspired Soft Orange */
    --ff-cat-wallties: #FCEFE4;
    --ff-cat-driverbits: #FCEFE4;
}

/* ===========================
   GLOBAL BASE STYLES
   =========================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: var(--ff-light);
    color: var(--ff-charcoal);
    display: flex;
    flex-direction: column;
}
html, body {
    height: 100%;
    /*overflow-x: hidden;*/
    overflow-y: visible; /* required for sticky */
}
#ff-main-content {
    padding-left: 5px;
    padding-right: 5px;
    margin-top: 50px;
    flex: 1;
}
@media (max-width: 1100px) {
    #ff-main-content {
        padding: 10px;
    }
}
/* Links */
a {
    color: var(--ff-blue);
    text-decoration: none;
}
a:hover {
    color: var(--ff-orange);
}
.margintop0 {
    margin-top: 0px;
}
.marginbottom0 {
    margin-bottom: 0px;
}
/* ===========================
   NAVIGATION (FINAL, CLEAN)
   =========================== */

/* WRAPPER — isolates nav from external CSS */
#ff-nav-wrapper {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    background: var(--ff-charcoal);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* NAV BAR */
#ff-nav {
    position: relative; /* anchors mobile menu */
    background: var(--ff-charcoal);
    color: var(--ff-steel);
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box;
}

/* LOGO */
#ff-logo {
    height: 25px;
    width: auto !important;
    display: block !important;
    max-width: none !important;
}

/* DESKTOP LINKS */
#ff-nav-right a {
    color: var(--ff-steel) !important;
    margin-left: 20px !important;
    font-weight: 500 !important;
    padding: 5px 0 5px 0 !important;
    display: inline-block !important;
}
#ff-nav-right a:hover {
    color: var(--ff-orange) !important;
}
@media (min-width: 900px) {
    #ff-nav-right a.active {
        color: var(--ff-orange) !important;
        font-weight: 500;
    }
}

/* HAMBURGER */
#ff-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    height: 40px;
    cursor: pointer;
    flex-shrink: 0;
}
#ff-hamburger span {
    width: 26px;
    height: 3px;
    background: var(--ff-steel);
    border-radius: 2px;
}

/* MOBILE MENU (ANIMATED SLIDE DOWN) */
#ff-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--ff-charcoal);
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(227,224,220,0.15);
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
}

#ff-mobile-menu.show {
    max-height: 600px;
}

#ff-mobile-menu a {
    color: var(--ff-steel) !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(227,224,220,0.15);
    display: block !important;
}
#ff-mobile-menu a:hover {
    color: var(--ff-orange) !important;
}

/* HOVER EFFECTS */
.ff-dropdown {
  position: relative;
  display: inline-block;
}

.ff-dropdown-content {
  display: none;
  position: absolute;
  background: var(--ff-charcoal);
  min-width: 160px;
  padding: 20px 10px;
  z-index: 999;
  border-radius: 4px;
}

.ff-dropdown:hover .ff-dropdown-content {
  display: block;
}

.ff-dropdown-content a {
  display: block;
  padding: 8px 12px;
  white-space: nowrap;
}

.ff-mobile-group span {
  color: var(--ff-steel) !important;
  font-weight: bold;
  display: block;
  margin-top: 10px;
  border-bottom: 1px solid rgba(227, 224, 220, 0.15);
  color: var(--ff-steel);
  padding-top: 10px;
  padding-bottom: 10px;
}

/* MOBILE BEHAVIOUR */
@media (max-width: 700px) {

    #ff-nav-right {
        display: none !important;
    }

    #ff-hamburger {
        display: flex !important;
    }

    #ff-logo {
        height: 20px;
    }

}

/* ===========================
   BUTTONS
   =========================== */
.ff-btn {
    padding: 10px 18px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

/* Primary (Orange) */
.ff-btn-primary {
    background: var(--ff-orange);
    color: var(--ff-white);
}
.ff-btn-primary:hover {
    background: #d97a2f;
}

/* Secondary (Blue) */
.ff-btn-secondary {
    background: var(--ff-blue);
    color: var(--ff-white);
}
.ff-btn-secondary:hover {
    background: #1f3f6a;
}

/* ===========================
   PRODUCT CARD / MODAL
   =========================== */
.ff-modal {
    background: var(--ff-white);
    border-radius: 6px;
    padding: 20px;
    max-width: 500px;
    margin: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ===========================
   PRODUCT MATRIX BASICS
   =========================== */
.ff-matrix {
    width: 100%;
    border-collapse: collapse;
    background: var(--ff-white);
}

.ff-matrix th {
    background: var(--ff-charcoal);
    color: var(--ff-white);
    padding: 10px;
    text-align: left;
}

.ff-matrix td {
    padding: 8px;
    border-bottom: 1px solid #E0E0E0;
    text-align: left;
}

.ff-matrix td:hover {
    background: var(--ff-orange);
    color: var(--ff-white);
    cursor: pointer;
}
#ff-cookie-banner {
    display: none;
    background: var(--ff-charcoal);
    color: var(--ff-steel);
    padding: 12px 20px;
    text-align: center;
    position: fixed;
    bottom: -100px; /* start hidden below screen */
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
    transition: bottom 0.5s ease;
}

#ff-cookie-banner.show {
    bottom: 0; /* slides up into view */
}

#ff-cookie-banner a {
    color: var(--ff-orange);
    margin-left: 10px;
}

#ff-cookie-banner a:hover {
    color: var(--ff-white);
}

/********* masterFooter *********/

#ff-backtotop i {
    border: none;
    display: inline-block;
    cursor: pointer;
}
/* FOOTER */
#ff-footer {
    background: var(--ff-charcoal);
    color: var(--ff-orange);
    padding: 20px 0px;
    margin-top: 0px;
    line-height: 1.6;
}
.ff-footer-inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
#ff-footer a {
    color: var(--ff-steel);
    text-decoration: none;
}
#ff-footer a:hover {
    color: var(--ff-orange);
}
#ff-footer p {
    margin: 4px 0;
    font-size: 14px;
}
.ff-footer-columns {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.ff-footer-col {
    flex: 1 1 220px;
    margin-bottom: 30px;
}
.ff-footer-col h4 {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--ff-orange);
}
.ff-footer-col a {
    display: block;
    margin: 6px 0;
    text-decoration: none;
    font-size: 14px;
}
.ff-footer-col a:hover {
    color: var(--ff-orange);
}
.ff-footer-secure {
    text-align: center;
    color: var(--ff-orange);
    font-size: 0.95rem;
    margin-bottom: 5px;
    margin-top: 10px;
}
@media (max-width: 600px) {
    .ff-footer-col {
        width: 100%;
    }
}
/* FOOTER STRAP */
.ff-footer-strap {
    border-top: 1px solid rgba(227,224,220,0.2);
    margin-top: 20px;
    padding-top: 15px;
    text-align: center;
    font-size: 14px;
    color: var(--ff-orange);
}
.ff-footer-strap span {
    margin: 0 10px;
}
/* BACK TO TOP BUTTON */
#ff-backtotop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    background: var(--ff-orange);
    color: var(--ff-white);
    border-radius: 8px; /* matches tile radius */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 999;
}
@media (max-width: 700px) {
    #ff-backtotop {
        right: 50px;
    }
}
#ff-backtotop:hover {
    background: #d97a2f;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.22);
}
.ff-security-link {
    color: var(--ff-orange);
    margin-left: 10px;
    font-size: 14px;
}
.ff-security-link:hover {
    color: var(--ff-steel);
}
.ff-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.ff-modal-window {
    background: var(--ff-white);
    width: 90%;
    max-width: 600px;
    border-radius: 6px;
    padding: 20px;
    position: relative;
}
.ff-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--ff-charcoal);
}

/* ******** homePage *********/

.ff-home {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0rem 1rem;
}
.ff-section-title {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.2rem;
    font-weight: 600;
    color: #222;
}
/* Desktop: 7-wide */
.ff-tile-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
/* Tablet: 4-wide */
@media (max-width: 1100px) {
    .ff-tile-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* Mobile: 2-wide */
@media (max-width: 700px) {
    .ff-tile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.4rem;
    }
}
/* Very small screens: 1-wide ... changed to 2-wide */
@media (max-width: 420px) {
    .ff-tile-grid {
        /*grid-template-columns: 1fr;*/
        grid-template-columns: repeat(2, 1fr);
    }
}
.ff-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 1.2rem;
    border: 1px solid #ddd; /* lighter, cleaner */
    border-radius: 8px;
    background: var(--ff-white); /* neutral base */
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.ff-tile img {
    width: 70%;
    height: auto;
    margin-bottom: 1rem;
}
.ff-tile span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ff-grey-dark);
    text-align: center;
    line-height: 1.3;
}
.ff-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.ff-home-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 0 1rem;
}
.ff-home-intro h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--ff-charcoal);
    margin-bottom: 1rem;
}
.ff-home-intro p {
    font-size: 1.1rem;
    color: var(--ff-charcoal);
    line-height: 1.55;
}
.ff-category-hero p {
    font-size: 1.1rem;
    color: var(--ff-charcoal);
    line-height: 1.55;
}
.ff-technical-category p {
    font-size: 1.1rem;
    color: var(--ff-charcoal);
    line-height: 1.55;
}
.ff-seo-footer p {
    font-size: 1.1rem;
    color: var(--ff-charcoal);
    line-height: 1.55;
}
.ff-seo-content {
    font-size: 1.1rem;
    color: var(--ff-charcoal);
    line-height: 1.55;
}
.ff-security-note {
    background: #DAD7D3;
    padding: 1rem 1rem;
    padding-left: 0;
    padding-right: 0;
    margin: 3rem auto 2.5rem auto;
    border-radius: 8px;
    text-align: center;
    max-width: 1250px;
}
.ff-security-note p {
    margin: 0;
    font-size: 1rem;
    color: var(--ff-charcoal);
    line-height: 1.5;
}
.ff-security-note .ff-lock {
    font-size: 1.2rem;
    margin-right: 0.4rem;
    vertical-align: -2px;
}
.ff-cat-quicklinks .ff-tile {
    background: var(--ff-steel);
}
.ff-cat-allthreads .ff-tile,
.ff-cat-allthreads .ff-tile-small {
    background: var(--ff-cat-allthreads);
}

.ff-cat-machine-screws .ff-tile,
.ff-cat-machine-screws .ff-tile-small {
    background: var(--ff-cat-machine-screws);
}

.ff-cat-bolts .ff-tile,
.ff-cat-bolts .ff-tile-small {
    background: var(--ff-cat-bolts);
}

.ff-cat-assemblies .ff-tile,
.ff-cat-assemblies .ff-tile-small {
    background: var(--ff-cat-assemblies);
}

.ff-cat-wallties .ff-tile,
.ff-cat-wallties .ff-tile-small {
    background: var(--ff-cat-wallties);
}
.ff-cat-driverbits .ff-tile,
.ff-cat-driverbits .ff-tile-small {
    background: var(--ff-cat-driverbits);
}

/* Hover states */
.ff-cat-quicklinks .ff-tile:hover {
    background: #C8D0D8;
}
.ff-cat-allthreads .ff-tile:hover {
    background: #DDE6F0;
}
.ff-cat-machine-screws .ff-tile:hover {
    background: #EDE5D8;
}
.ff-cat-bolts .ff-tile:hover {
    background: #DCDCDC;
}
.ff-cat-assemblies .ff-tile:hover {
    background: #E6E6E0;
}
.ff-cat-wallties .ff-tile:hover {
    background: #F8E5D7;
}
.ff-cat-driverbits .ff-tile:hover {
    background: #F8E5D7;
}
.ff-cat-allthreads-wrap .ff-tile,
.ff-cat-allthreads-wrap.ff-tile {
    background: var(--ff-cat-allthreads);
}

.ff-cat-machine-screws-wrap .ff-tile,
.ff-cat-machine-screws-wrap.ff-tile {
    background: var(--ff-cat-machine-screws);
}

.ff-cat-bolts-wrap .ff-tile,
.ff-cat-bolts-wrap.ff-tile {
    background: var(--ff-cat-bolts);
}

.ff-cat-assemblies-wrap .ff-tile,
.ff-cat-assemblies-wrap.ff-tile {
    background: var(--ff-cat-assemblies);
}
/* Hover states for self-wrapped tiles */
.ff-cat-allthreads-wrap.ff-tile:hover {
  background: #DDE6F0;
}

.ff-cat-machine-screws-wrap.ff-tile:hover {
  background: #EDE5D8;
}

.ff-cat-bolts-wrap.ff-tile:hover {
  background: #DCDCDC;
}

.ff-cat-assemblies-wrap.ff-tile:hover {
  background: #E6E6E0;
}

.ff-cat-wallties-wrap.ff-tile:hover {
  background: #F8E5D7;
}
.ff-section-desc {
    margin-top: -0.8rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--ff-charcoal) !important;
    line-height: 1.4;
}
.ff-hero-image {
    width: 100%;
    height: 260px;
    background-image: url('/images/ff-hero-fasteners.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px;
    margin: 1rem 0 2rem;
    position: relative; /* REQUIRED for ::after overlay */
    overflow: hidden;   /* ensures overlay respects border radius */
}

.ff-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.18); /* stronger, more premium overlay */
    border-radius: 6px;
    pointer-events: none; /* ensures overlay never blocks clicks */
}
.ff-hero-image::after {
    background: linear-gradient(
        rgba(0,0,0,0.18),
        rgba(0,0,0,0.10)
    );
}


.ff-title-banner {
    width: 100%;
    max-width: 1250px;
    margin: 20px auto 0px auto;   /* centers the table */
    border-collapse: collapse;
}
.ff-matrix-table {
    width: 100%;
    max-width: 1250px;
    margin: 0px auto 0px auto;   /* centers the table */
    border-collapse: collapse;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

.ff-matrix-table th,
.ff-matrix-table td {
    border: 1px solid var(--ff-steel);
    padding: 8px 10px;
    text-align: center;
}

.ff-matrix-table th {
    background: var(--ff-light);
    font-weight: 600;
}

.ff-matrix-table td.ff-no-stock {
    background: #e8e8e8;
}

.ff-matrix-table td.ff-has-stock {
    background: var(--ff-steel);
    color: var(--ff-charcoal);
    cursor: pointer;
    font-weight: 600;
}

.ff-matrix-table td.ff-has-stock:hover {
    background: var(--ff-hover);
}
.ff-product-image {
    max-width: 1250px;
    margin: 0px auto 20px auto;
    text-align: center;
}

.ff-product-image img {
    max-width: 100px;
    height: auto;
    opacity: 0.95;
}
.ff-card-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    padding: 40px;
    overflow-y: auto;
    z-index: 9999;
}
/* Modal is instantly visible when display:block is applied */
.ff-card-modal {
    pointer-events: none;
}

.ff-card-modal.active {
    pointer-events: auto;
}
/* Base Tiger Product Card */
.ff-product-card {
    position: relative;
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    background: var(--ff-white);
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-family: Arial, sans-serif;
}
/* Product card slide + fade */
.ff-product-card {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.ff-product-card p {
    color: var(--ff-grey-dark) !important;
    margin: 0 0 10px 0;
    line-height: 1.4;
}
/* Close Button */
.ff-close-card {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    color: var(--ff-grey-dark);
    transition: 0.2s ease;
}

.ff-close-card:hover {
    color: var(--ff-charcoal);
}

.ff-card-modal.active .ff-product-card {
    transform: translateY(0);
    opacity: 1;
}
.ff-submenu {
    max-width: 100%;
    margin: 0px auto;
    padding: 40px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.ff-submenu-item {
    padding: 8px 14px;
    background: var(--ff-steel);
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    color: var(--ff-charcoal);
    border: 1px solid var(--ff-charcoal);
}
.ff-submenu-item:hover {
    background: var(--ff-orange);
    color: var(--ff-steel);
    border-color: var(--ff-orange);
}
.ff-submenu-item.active {
    background: var(--ff-blue);
    color: var(--ff-steel);
    border-color: var(--ff-blue);
}
.ff-product-wrapper {
    padding: 0;
    margin-bottom: 0;
}

.ff-cat-allthreads.ff-product-wrapper {
    background: color-mix(in srgb, var(--ff-cat-allthreads) 66%, white);
}
.ff-cat-machine-screws.ff-product-wrapper {
    background: color-mix(in srgb, var(--ff-cat-machine-screws) 50%, white);
}
.ff-cat-bolts.ff-product-wrapper {
    background: color-mix(in srgb, var(--ff-cat-bolts) 50%, white);
}
.ff-cat-assemblies.ff-product-wrapper {
    background: color-mix(in srgb, var(--ff-cat-assemblies) 50%, white);
}
.ff-cat-wallties.ff-product-wrapper {
    background: color-mix(in srgb, var(--ff-cat-wallties) 50%, white);
}
.ff-cat-driverbits.ff-product-wrapper {
    background: color-mix(in srgb, var(--ff-cat-wallties) 50%, white);
}
.ff-page-wrapper h1,
.ff-page-wrapper h2,
.ff-page-wrapper h3,
.ff-page-wrapper h4,
.ff-page-wrapper p {
    color: var(--ff-charcoal) !important;
}
.ff-page-wrapper a {
    color: var(--ff-blue); /* or whatever your link colour is */
}

.ff-page-wrapper a:visited {
    color: var(--ff-blue); /* force visited links to match normal links */
}

.ff-page-wrapper a:hover {
    color: var(--ff-orange); /* optional hover colour */
}
.leaflet-control-attribution {
    font-size: 10px;
    color: var(--ff-grey-mid);
    background: rgba(255,255,255,0.7);
    padding: 2px 6px;
    border-radius: 4px;
}
.leaflet-attribution-flag {
    display: none !important;
}
.leaflet-control-attribution a[href="https://leafletjs.com"] {
    display: none !important;
}
.leaflet-popup {
    display: none;
}
.leaflet-popup-content {
    text-align: center;
    padding: 4px 0;
}
.leaflet-popup-content-wrapper {
    border-radius: 6px;
}

/* ---------------------------------------------
   ---------------------------------------------
   START OF ff_main2.css
---------------------------------------------
--------------------------------------------- */

/* Tiger installation layout (used by driver bits, cavity ties, starter ties) */
.tiger-installation-container {
    max-width: 600px;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tiger-installation-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.tiger-step-caption {
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ff-grey-dark);
    text-align: left;
    line-height: 1.3;
}

@media (max-width: 700px) {
    .tiger-installation-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

.tiger-text p {
    color: var(--ff-grey-dark);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.tiger-length-image img {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 10px 0 20px 0;
    border-radius: 6px;
}

@media (max-width: 700px) {
    .tiger-length-image img {
        max-width: 100%;
    }
}

.tiger-list {
    margin: 20px 0 30px 0;
}

.tiger-list ul {
    margin: 0;
    padding-left: 20px;
}

.tiger-list li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--ff-grey-dark);
}
/* ----------------------------------------------------------
   TIGER — Shared Layout
---------------------------------------------------------- */

.ff-cat-wallties img {
    height: auto;
    display: block;
}

/* Hero image container */
.ff-hero-image-tiger {
    margin-top: 20px;
}

/* ----------------------------------------------------------
   TIGER Landing Page — Image + Link Blocks
---------------------------------------------------------- */

.tiger-box-one {
    display: flex;
    gap: 30px;
    justify-content: flex-start; /* left aligned to match installation graphics */
    margin-top: 20px;
}

.tiger-hero-image-one {
    max-width: 30%;
    height: auto;
}

.link-box {
    flex: 1;
    min-width: 260px;
    max-width: 33%;
}

.tiger-box-two {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tiger-box-two p {
    color: var(--ff-charcoal);
}

.link-box-driverbits {
    flex: 1;
    min-width: 260px;
    max-width: 20%;
}
.link-box-driverbits .ff-tile {
    background-color: var(--ff-cat-driverbits);
}
.driverbits-box {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.driverbits-box p {
    color: var(--ff-charcoal);
}

/* ----------------------------------------------------------
   DRIVER BITS Product Cards (Hilti + Makita + Senco)
---------------------------------------------------------- */

.driverbits-product-list {
    display: flex;
    flex-direction: column;
    max-width: 660px;
}

.driverbits-product-card {
    padding: 10px;
    border-radius: 6px;
    background: var(--ff-charcoal);
    margin-bottom: 10px;
}

.driverbits-product-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--ff-steel);
    font-weight: 600;
}
.driverbits-stock-line {
    color: var(--ff-steel);
    padding-bottom: 10px;
}
.driverbits-product-flex {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.driverbits-product-row {
    flex: 1;
    min-width: 260px;
    border: 1px solid var(--ff-grey-light);
    padding: 15px;
    border-radius: 6px;
    background: #fafafa;
}

.driverbits-product-label {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--ff-charcoal);
}

.driverbits-product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--ff-charcoal);
}

.driverbits-product-price {
    font-weight: 700;
    color: var(--ff-blue);
}


/* ----------------------------------------------------------
   TIGER Product Cards (Starter + Cavity)
---------------------------------------------------------- */

.tiger-product-list {
    display: flex;
    flex-direction: column;
    max-width: 660px;
}

.tiger-product-card {
    padding: 10px;
    border-radius: 6px;
    background: var(--ff-charcoal);
    margin-bottom: 10px;
}

.tiger-product-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--ff-steel);
    font-weight: 600;
}

.tiger-product-flex {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.tiger-product-row {
    flex: 1;
    min-width: 260px;
    border: 1px solid var(--ff-grey-light);
    padding: 15px;
    border-radius: 6px;
    background: #fafafa;
}

.tiger-product-label {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--ff-charcoal);
}

.tiger-product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--ff-charcoal);
}

.tiger-product-price {
    font-weight: 700;
    color: var(--ff-blue);
}

/* ----------------------------------------------------------
   TIGER Installation Grid (shared)
---------------------------------------------------------- */

.tiger-installation-container {
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tiger-installation-item {
    flex: 1;
    min-width: 260px;
    text-align: left;
}

.tiger-step-caption {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--ff-charcoal);
}

/* ----------------------------------------------------------
   TIGER Length Diagram
---------------------------------------------------------- */

.tiger-length-image img {
    max-width: 50%;
    height: auto;
    margin-top: 20px;
}

/* ----------------------------------------------------------
   TIGER Text + Lists
---------------------------------------------------------- */

.tiger-text p {
    color: var(--ff-charcoal);
    line-height: 1.6;
}

.tiger-list ul {
    padding-left: 20px;
    line-height: 1.7;
}


/* Product table tweaks */
.ff-product-table .ff-price-block {
    /* reserved for future layout adjustments */
}

.ff-product-table .ff-btn {
    width: 100px;
    padding: 6px 8px;
    font-size: 0.8rem;
    text-align: center;
}

.ff-product-table td,
.ff-product-table th {
    font-size: 1rem;
}
/* Payment information page */
#payment p {
    color: var(--ff-charcoal);
}

.payment-logo {
    margin-top: 20px;
}

.payment-logo img {
    width: 100px;
    opacity: 0.9;
}

#payment a:visited {
    color: var(--ff-blue);
}

#payment a:hover,
#payment a:visited:hover {
    color: var(--ff-orange);
}
/* Supplementary Payment Page */
.ff-payment-card {
    position: relative;
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--ff-hover);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-family: Arial, sans-serif;
}

.ff-payment-card p {
    color: var(--ff-grey-dark) !important;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.ff-payment-card input {
    border: 1px solid var(--ff-hover);
    border-radius: 4px;
}

/* Header */
.ff-payment-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.ff-payment-title h2 {
    margin: 0;
    font-size: 22px;
    color: var(--ff-grey-dark);
}

.ff-payment-title h3 {
    margin: 5px 0 0 0;
    font-size: 16px;
    color: var(--ff-grey-mid);
}

/* Pricing */
.ff-payment-pricing {
    margin-bottom: 25px;
}

.ff-payment-pricing h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--ff-grey-dark);
}

/* Order Section */
.ff-payment-order {
    margin-top: 25px;
}

.ff-payment-order input {
    width: 120px;
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Header */
.ff-product-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.ff-card-image img {
    width: 100px;
    height: auto;
    opacity: 0.95;
}

.ff-product-title h2 {
    margin: 0;
    font-size: 22px;
    color: var(--ff-grey-dark);
}

.ff-product-title h3 {
    margin: 5px 0 0 0;
    font-size: 16px;
    color: var(--ff-grey-mid);
}

/* Pricing */
.ff-product-pricing {
    margin-bottom: 25px;
}

.ff-product-pricing h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--ff-grey-dark);
}

.ff-tiger-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--ff-grey-dark);
    margin-bottom: 10px;
}

.ff-tiger-qty-label {
    font-size: 14px;
    color: var(--ff-grey-mid);
    margin-bottom: 8px;
}

/* Order Section */
.ff-product-order {
    margin-top: 25px;
}

.ff-product-order input {
    width: 120px;
    padding: 8px;
    margin-left: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.ff-tiger-total {
    margin-top: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #2a7a2a;
}

.ff-payment-title h3 {
    margin: 5px 0 0 0;
    font-size: 16px;
    color: var(--ff-grey-mid);
}

/* Pricing */
.ff-payment-pricing {
    margin-bottom: 25px;
}

.ff-payment-pricing h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--ff-grey-dark);
}

.ff-tiger-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--ff-grey-dark);
    margin-bottom: 10px;
}

.ff-tiger-qty-label {
    font-size: 14px;
    color: var(--ff-grey-mid);
    margin-bottom: 8px;
}

/* Order Section */
.ff-payment-order {
    margin-top: 25px;
}

.ff-payment-order input {
    width: 120px;
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.ff-tiger-total {
    margin-top: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #2a7a2a;
}
/* ------------------------------
   PRICE TABLE (Matrix‑style mini)
   ------------------------------ */

#ff-price-table {
    border-collapse: collapse;
    width: auto;              /* content‑hugging */
    max-width: 300px;         /* prevents runaway width */
    font-size: 14px;
}

/* Header cells */
#ff-price-table th {
    background: var(--ff-light);
    border: 1px solid var(--ff-grey-mid);
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 600;
}

/* Body cells */
#ff-price-table td {
    border: 1px solid var(--ff-grey-mid);
    padding: 6px 10px;
    font-size: 14px;
}

/* Align first column left, second column right */
#ff-price-table td:first-child {
    text-align: left;
}
#ff-price-table td:last-child {
    text-align: right;
}

/* Hover behaviour (subtle, like matrix) */
#ff-price-table tbody tr {
    transition: background 0.2s ease;
}
#ff-price-table tbody tr:hover {
    background: #f5f5f5;
}

/* Active tier highlight */
#ff-price-table td.active-tier {
    background: #e8f4ff;
    font-weight: bold;
}

/* ------------------------------
   SUMMARY BLOCK
   ------------------------------ */

.ff-summary {
    padding: 10px 0px 10px 10px;
    background: #f8f8f8;
    border-radius: 4px;
    font-size: 14px;
}

.ff-summary strong {
    margin-right: 5px;
}

/* matrix codes from /engine/ */
.ff-spinner {
    width: 32px;
    height: 32px;
    border: 4px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ff-stickyTitleHeader {
    position: -webkit-sticky;
    position: sticky;
    top: 50px;
    z-index: 20; /* from metric */
}

.ff-stickyTableHeader {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    z-index: 10; /* from metric */
}
.ff-stickyTableHeaderImp {
    position: -webkit-sticky;
    position: sticky;
    top: 50px;
    z-index: 10; /* from metric */
}
.stock-now,
.stock-extended {
    color: var(--ff-green);
    font-weight: 700;
}

.stock-now { 
    opacity: 1; /* added as requested */
}

.stock-extended { 
    opacity: 0.75;
}

.ff-no-stock {
    background: #f3f3f3;
    opacity: 0.6; /* from third block */
}

.ff-tech-link {
    margin-top: 30px;
    text-align: left;
}

.ff-tech-link a {
    font-weight: 600;
    color: #ff6600;
    text-decoration: none;
}

.ff-tech-link a:hover {
    text-decoration: underline;
}

/* Main fastener productCard */
.ff-product-card-main {
    position: relative;
    width: fit-content;
    max-width: 90vw; /* prevents overflow on small screens */
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-family: Arial, sans-serif;
}

.ff-product-stock {
    margin-bottom: 25px;
    font-size: 14px;
}

.ff-product-stock div {
    margin-bottom: 6px;
}

.ff-stock-uk strong {
    color: #2a7a2a;
}

.ff-stock-uk2 strong {
    color: #c47a00;
}

.ff-product-pricing h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.ff-price-table {
    width: 100%;
    border-collapse: collapse;
}

.ff-price-table th,
.ff-price-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.ff-product-order {
    margin-top: 25px;
}

/* SUB MENUS */
.ff-headmenu {
    max-width: 1250px;
    margin: 0px auto 0px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 40px 0px 0px 0px;
}

.ff-headmenu-bolts {
    max-width: 900px;
    margin: 0px auto 0px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 40px 0px 0px 0px;
}
.ff-headmenu-assembly {
    max-width: 500px;
    margin: 0px auto 0px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 40px 0px 0px 0px;
}

.ff-headmenu-item {
    text-align: center;
    text-decoration: none;
    color: var(--ff-charcoal);
    outline: 3px solid transparent;
    border-radius: 6px;
    padding: 6px;
}
.ff-headmenu-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 8px;
}
.ff-headmenu-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}
.ff-headmenu-active {
    outline: 3px solid var(--ff-blue);
}
.ff-tile-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 0.75rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #e3e5e7;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-width: 100px; 
}
.ff-tile-small img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}
.ff-tile-small span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
}
.ff-tile-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.ff-headmenu-tiger {
    max-width: 450px;
    margin: 0px auto 0px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 40px 0px 0px 0px;
}
.ff-headmenu-driverbits {
    max-width: 750px;
    margin: 0px auto 0px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 40px 0px 0px 0px;
}
/* TIGER logo sizing */
.tiger-logo {
    width: 85px;
}
/* TIGER logo tile uses the same dimensions as other tiles */
.tiger-logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #e3e5e7;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    width: 100%;
    height: 100%;
}
/* Override the generic tile image rule for the TIGER logo */
.tiger-logo-tile .tiger-logo {
    width: 85px;          /* or whatever size looked right before */
    height: auto;
    margin-bottom: 0;     /* remove the 0.5rem gap */
    object-fit: contain;
}
.tiger-logo-tile {
    background: transparent !important; /* already added */
    border: none !important;            /* removes the boxy outline */
}
.tiger-logo-tile:hover {
    transform: none;
    box-shadow: none;
    cursor: default;
}
/* ---------------------------------------------
   CHECKOUT LAYOUT
--------------------------------------------- */

#checkout-wrapper {
    max-width: 100%;
    margin: 40px auto;
    padding: 20px;
}


/* ---------------------------------------------
   CHECKOUT STEPS / BREADCRUMBS
--------------------------------------------- */

.ff-checkout-steps {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    gap: 0; /* arrows handle spacing */
    flex-wrap: wrap;
    justify-content: center;
}

.ff-checkout-steps li {
    position: relative;
    padding: 10px 18px 10px 28px;
    background: var(--ff-steel);
    color: var(--ff-charcoal);
    font-weight: 600;
    font-size: 14px;
    border-right: 1px solid #ccc;
}

.ff-checkout-steps li:first-child {
    padding-left: 18px;
    border-radius: 4px 0 0 4px;
}

.ff-checkout-steps li:last-child {
    border-right: none;
    border-radius: 0 4px 4px 0;
}

/* Arrows between steps */
.ff-checkout-steps .arrows {
    margin: 0 8px;
    color: var(--ff-charcoal);
    font-weight: 700;
}

.ff-checkout-steps li.active .arrows {
    color: var(--ff-steel);
    opacity: 1;
}

.ff-checkout-steps li:last-child .arrows {
    display: none;
}

/* Active step */
.ff-checkout-steps li.active {
    background: var(--ff-blue);
    color: var(--ff-white);
}

/* Completed steps */
.ff-checkout-steps li.completed {
    background: var(--ff-charcoal);
    color: var(--ff-orange);
    padding-right: 32px; /* room for tick */
}

.ff-checkout-steps li.completed::after {
    content: "✓";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 700;
    color: var(--ff-steel);
}

.ff-checkout-steps li.completed .arrows {
    display: none;
}


/* ---------------------------------------------
   MAIN CHECKOUT STAGE AREA
--------------------------------------------- */

#checkout-stage {
    max-width: 900px;
    background: var(--ff-white);
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-height: 200px;
    margin: 0 auto;
}

.checkout-stage-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* Optional fade-in animation */
.checkout-fade {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ---------------------------------------------
   MOBILE BREADCRUMB
--------------------------------------------- */

.mobile-breadcrumb {
    display: none;
}

@media (max-width: 600px) {
    #checkout-breadcrumbs {
        display: none; /* hide full breadcrumb */
    }

    .mobile-breadcrumb {
        display: block;
        background: #333;
        color: #fff;
        padding: 12px 15px;
        font-size: 15px;
        border-radius: 4px;
        margin-bottom: 20px;
        text-align: center;
    }
}

/* ---------------------------------------------
   STAGE 1
--------------------------------------------- */
.ff-highlight-text {
    color: var(--ff-blue);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.robot-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

#robotCheckBox {
    transform: scale(1.4);
    cursor: pointer;
}

#robotContinueBtn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}
/* ---------------------------------------------
   STAGE 2
--------------------------------------------- */
.ff-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.ff-summary-table th,
.ff-summary-table td {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.ff-summary-table th.right,
.ff-summary-table td.right {
    text-align: right;
}

.ff-summary-totals {
    margin-top: 25px;
    font-size: 16px;
}

.ff-summary-totals .row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.ff-summary-totals .total {
    font-weight: 700;
    font-size: 18px;
    border-top: 2px solid var(--ff-steel);
    padding-top: 12px;
}

.ff-summary-totals .vat {
    font-size: 16px;
    border-top: 2px solid var(--ff-steel);
    padding-top: 12px;
    opacity: 0.85;
}

.remove-item {
    color: #c00;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

.remove-item:hover {
    opacity: 0.7;
}
.sku {
    display: block;
    font-size: 12px;
    color: var(--ff-charcoal);
    margin-top: 4px;
    margin-bottom: 4px;
    opacity: 0.85;
}
.ff-summary-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}
/* ---------------------------------------------
   STAGE 3
--------------------------------------------- */
/* --- Checkout Container --- */
.checkout-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 10px;
}

/* --- Headings --- */
.checkout-container h2 {
    margin-bottom: 10px;
}

.checkout-container p {
    margin-bottom: 25px;
    color: var(--ff-charcoal);
}

/* --- Form Rows --- */
.form-row {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-row label {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-row .required {
    color: #c00;
    font-weight: bold;
}

/* --- Inputs --- */
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"] {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-row input:focus {
    border-color: #0077cc;
    outline: none;
}

/* --- Navigation Buttons --- */
.checkout-nav {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.input-error {
    border-color: #c00 !important;
    background: #ffecec;
}
/* ---------------------------------------------
   STAGE 4
--------------------------------------------- */
.note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
}
.note a {
    color: #0077cc;
    text-decoration: underline;
}
/* ---------------------------------------------
   STAGE 5
--------------------------------------------- */
.review-section {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.review-section h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.review-section a:focus {
    color: var(--ff-blue);
}

.review-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.review-row.total {
    font-weight: bold;
}

.review-row.grand-total {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
}

.address-columns {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.address-column {
    flex: 1;
    min-width: 260px;
}
/* ---------------------------------------------
   STAGE 6
--------------------------------------------- */
.payment-address-summary {
    margin-bottom: 25px;
    padding: 15px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}
/* ---------------------------------------------
   CONTACT PAGE MAP
--------------------------------------------- */
#map {
    width: 350px;
    height: 350px;
    border-radius: 6px;
    margin: 20px 0;
}
/* Mobile: map becomes full width */
@media (max-width: 600px) {
    #map {
        width: 100%;
    }
}
/* ---------------------------------------------
   BASKET MODAL
--------------------------------------------- */
.ff-basket-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.ff-basket-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 1000px;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    max-height: 80vh;
    overflow-y: auto;
    animation: ffModalIn 0.15s ease-out;
}
@keyframes ffModalIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
/* Basket table */
.ff-basket {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 15px;
}
.ff-basket th {
    background: #f4f4f4;
    padding: 10px;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
}
.ff-basket td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.ff-basket tr:last-child td {
    border-bottom: none;
}
/* Right-align numeric columns */
.ff-basket td:nth-child(2),
.ff-basket td:nth-child(3),
.ff-basket td:nth-child(4) {
    text-align: right;
}
/* Remove link */
.ff-basket a {
    color: #c00;
    text-decoration: none;
    font-weight: 600;
}
.ff-basket a:hover {
    text-decoration: underline;
}
/* Scrollable modal content */
.ff-modal-content {
    max-height: 80vh;
    overflow-y: auto;
}
/* Close button */
.ff-basket-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 26px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    line-height: 1;
}
.ff-basket-close:hover {
    color: #000;
}
.ff-basket-actions {
    margin-top: 20px;
    text-align: right;
}
/* ---------------------------------------------
   TECHNICAL SHEET (DRAWING + TABLE)
--------------------------------------------- */

.ff-techsheet {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: fit-content;
}

.ff-techsheet-drawing img {
    max-width: 260px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.ff-techsheet-table table {
    width: 100%;
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
}

.ff-techsheet-table th,
.ff-techsheet-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.ff-techsheet-table th {
    background: #f7f7f7;
    font-weight: 600;
}

@media (max-width: 768px) {
    .ff-techsheet {
        flex-direction: column;
    }
}

.iso-din-note,
.thread-note {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.ff-techsheet-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}
/* ---------------------------------------------
   TECHNICAL INDEX PAGE (TILES + MODAL)
--------------------------------------------- */

/* Page title */
.ff-tech-index h1 {
    font-size: 32px;
    font-weight: 600;
}

/* Grid layout */
.ff-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Tile container */
.ff-tech-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 1.5rem;
    border: 2px solid var(--ff-hover);
    border-radius: 8px;
    background: #FFFFFF;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

/* Hover behaviour */
.ff-tech-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Image wrapper */
.ff-tech-tile-image img {
    width: 70%;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-right: auto;
    margin-left: auto;
}
/* Image wrapper */
.ff-tech-image img {
    width: 70%;
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}
/* Title text */
.ff-tech-tile-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.35;
}

/* Modal overlay */
.ff-tech-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
}

/* Modal content */
.ff-tech-modal-content {
    background: #fff;
    margin: 60px auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 1100px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Close button */
.ff-tech-modal-close {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.ff-tech-modal-close:hover {
    color: #000;
}

/* Group heading */
.ff-tech-group-heading {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 10px;
    color: #333;
    text-align: left;
}

/* SITEMAP */
  .ff-sitemap {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: system-ui, sans-serif;
  }

  .ff-sitemap details {
    background: var(--ff-charcoal);
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 4px;
    color: #fff;
  }

  .ff-sitemap summary {
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
  }

  .ff-sitemap summary::-webkit-details-marker {
    display: none;
  }

  .ff-sitemap summary::after {
    content: "▾";
    float: right;
    transition: transform 0.2s ease;
  }

  .ff-sitemap details[open] summary::after {
    transform: rotate(180deg);
  }

  .ff-sitemap ul {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
  }

  .ff-sitemap li {
    margin: 6px 0;
  }

  .ff-sitemap a {
    color: #fff;
    text-decoration: none;
  }

  .ff-sitemap a:hover {
    text-decoration: underline;
  }
/* INFO ICON */
.ff-info-icon {
  display: inline-block;
  margin-left: 2px;
  margin-right: 2px;
  font-size: 0.85em;
  cursor: help;
  position: relative;
  color: var(--ff-orange);
}

.ff-info-icon:hover .ff-info-tooltip,
.ff-info-icon:focus .ff-info-tooltip {
  opacity: 1;
  visibility: visible;
}

.ff-info-tooltip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 125%;
  background: var(--ff-charcoal);
  color: var(--ff-steel);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.85em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 999;
}

.ff-info-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--ff-charcoal) transparent transparent transparent;
}

/* ================================
   KC MENU BUTTON
================================ */

.kc-menu-button-wrapper {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 50px;
    background: var(--ff-blue);
    color: var(--ff-steel);
    width: 100%;
    text-align: center;
}

.kc-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ff-blue);
    color: var(--ff-steel);
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease;
    font-weight: 500 !important;
}

.kc-menu-button:hover {
    background: var(--ff-orange);
    color: var(--ff-charcoal);
}

.kc-icon-hamburger {
    width: 20px;
    height: 20px;
    display: block;
    padding-right: 10px;
}


/* ================================
   KC OVERLAY
================================ */

.kc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ff-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 900;
}

.kc-overlay.visible {
    opacity: 1;
    visibility: visible;
}


/* ================================
   KC SLIDE-IN PANEL
================================ */

.kc-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 100%;
    background: var(--ff-blue);
    color: var(--ff-steel);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.kc-panel.open {
    transform: translateX(0);
}


/* ================================
   PANEL HEADER
================================ */

.kc-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.kc-panel-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--ff-white);
}

.kc-close-button {
    background: none;
    border: none;
    color: var(--ff-white);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}


/* ================================
   NAV LIST
================================ */

.kc-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kc-nav-list li {
    margin-bottom: 12px;
}

.kc-nav-list a {
    color: var(--ff-steel-light);
    text-decoration: none;
    font-size: 15px;
    display: block;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.kc-nav-list a:hover {
    color: var(--ff-white);
}

.kc-nav-section {
    margin-top: 25px;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ff-blue-muted);
}

.kc-section {
    border-top: 1px solid var(--ff-blue-muted);
    padding-top: 20px;
    margin-top: 30px;
}

/* ================================
   MOBILE BEHAVIOUR
================================ */

@media (max-width: 768px) {
    .kc-panel {
        width: 80%;
        max-width: 300px;
    }
}

/* ================================
   FASTENER BASICS ICONS
================================ */
.ff-headstyle-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 12px 0;
}

.ff-headstyle-icon {
    width: 50px;
    height: auto;
    flex-shrink: 0;
}

/* ================================
   FASTENER STANDARDS
================================ */
#ff-standards-table th.asc::after {
    content: " ▲";
    font-size: 0.7em;
}

#ff-standards-table th.desc::after {
    content: " ▼";
    font-size: 0.7em;
}
 
.ff-standards-search input {
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}
.ff-standards-search input:focus {
    outline: none;
    border-color: #888;
}
#ff-standards-table {
    border: solid 2px var(--ff-blue-muted);
    border-radius: 4px;
    box-shadow: 0 0 0 1px var(--ff-steel);
}

#ff-standards-table th,
#ff-standards-table td {
    border-bottom: solid 1px var(--ff-blue-muted);
}


#ff-standards-table thead th {
    position: sticky;
    top: 90px;
    background: var(--ff-blue);
    color: var(--ff-steel);
    z-index: 5;
}

#ff-standards-table tbody tr:hover td {
    background: var(--ff-steel-light);
}

input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
}
.ff-stocked td {
    background: #f3f7ff; /* subtle blue‑white tint */
    font-weight: 700;
}
.ff-stocked:hover td {
    background: #e8f0ff; /* slightly stronger tint on hover */
}
.ff-highlight {
    background: var(--ff-steel-light);
    padding: 0 2px;
    border-radius: 2px;
}
.ff-family-btn {
    background: var(--ff-light);
    border: 1px solid var(--ff-steel);
    padding: 6px 12px;
    margin: 4px 4px 0 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.ff-family-btn.active {
    background: var(--ff-steel-light);
    border-color: var(--ff-charcoal);
    font-weight: 600;
}
.ff-standard-link {
    color: var(--ff-blue);
    text-decoration: none;
    font-weight: 600;
}

.ff-standard-link:hover {
    text-decoration: underline;
}
.ff-stock-icon {
    text-align: center;
    width: 40px;
}

.ff-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    filter: 
        grayscale(100%) 
        brightness(0.55) 
        sepia(20%) 
        hue-rotate(180deg);
    opacity: 0.85;
    transition: 
        filter 0.25s ease,
        opacity 0.25s ease,
        transform 0.15s ease;
    cursor: pointer;
}
.ff-icon:hover {
    filter: none; /* restores original orange */
    opacity: 1;
    transform: scale(1.12);
}
.did-you-know {
    background: var(--ff-steel-light);
    border-left: solid 10px var(--ff-charcoal);
    border-radius: 8px;
    padding: 20px 20px 5px 20px;
}

/* ================================
   GLOSSARY PRESENTATION ENHANCEMENTS
   (Non-destructive: does NOT affect Standards table)
================================ */

/* Term column: stronger visual anchor */
#ff-standards-table .ff-glossary-term strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    display: block;
    margin-bottom: 8px;
    margin-left: 10px;
    line-height: 1.3;
}

/* Definition cell spacing */
#ff-standards-table .ff-glossary-definition {
    padding-top: 6px;
    padding-bottom: 12px;
}

/* Synonyms: subtle, secondary */
#ff-standards-table .ff-synonyms {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #666;
}
#ff-standards-table .ff-synonyms strong {
    font-weight: 600;
    color: #555;
}

/* Learn more link: consistent placement */
#ff-standards-table .ff-learnmore {
    display: inline-block;
    font-weight: 600;
    color: var(--ff-blue);
    text-decoration: none;
}
#ff-standards-table .ff-learnmore:hover {
    text-decoration: underline;
}

/* Row rhythm: subtle breathing room */
#ff-standards-table tbody tr {
    padding-top: 10px;
    padding-bottom: 10px;
}
.ff-glossary-definition {
    font-size: 1.0rem;
}
.ff-learnmore {
    font-size: 0.85rem;
}
.glossary-letter:hover,
.glossary-letter:focus {
    color: var(--ff-orange);
    text-decoration: underline;
}
.glossary-letter.active {
    color: var(--ff-orange);
    text-decoration: underline;
}