:root {
    --fd-ink: #0d3440;
    --fd-ink-soft: #48626a;
    --fd-teal: #16b8b0;
    --fd-teal-dark: #087b78;
    --fd-mint: #d9f3ef;
    --fd-coral: #f2685e;
    --fd-coral-soft: #fff0ed;
    --fd-yellow: #f8c84a;
    --fd-yellow-soft: #fff7d8;
    --fd-paper: #ffffff;
    --fd-canvas: #f3f7f6;
    --fd-line: #cbd9d7;
    --fd-shadow: 4px 4px 0 rgba(13, 52, 64, 0.12);
    --fd-radius: 6px;
    --fd-width: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--fd-canvas);
    color: var(--fd-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
}

body.admin-bar .fd-header {
    top: 32px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
    letter-spacing: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.screen-reader-text,
.fd-skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fd-skip-link:focus {
    z-index: 9999;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    background: var(--fd-paper);
    border: 2px solid var(--fd-ink);
}

.fd-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: var(--fd-paper);
    border-bottom: 1px solid var(--fd-line);
}

.fd-header-inner {
    width: min(100% - 40px, var(--fd-width));
    min-height: 78px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto auto;
    align-items: center;
    gap: 28px;
}

.fd-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    color: var(--fd-ink);
    text-decoration: none;
}

.fd-brand img,
.fd-brand .custom-logo {
    width: 44px;
    height: 52px;
    object-fit: contain;
}

.fd-brand .custom-logo-link {
    display: inline-block;
}

.fd-brand span {
    display: grid;
}

.fd-brand strong {
    font-size: 17px;
    line-height: 1.1;
}

.fd-brand small {
    margin-top: 4px;
    color: var(--fd-teal-dark);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.fd-primary-nav {
    align-self: stretch;
}

.fd-nav-list {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    list-style: none;
}

.fd-nav-list a {
    position: relative;
    min-height: 78px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    color: var(--fd-ink);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.fd-nav-list a:hover::after,
.fd-nav-list .current-menu-item a::after,
.fd-nav-list .current_page_item a::after {
    position: absolute;
    right: 14px;
    bottom: 0;
    left: 14px;
    height: 4px;
    background: var(--fd-coral);
    content: "";
}

.fd-menu-toggle {
    display: none;
}

.fd-enquiry-trigger {
    min-width: 112px;
    height: 42px;
    padding: 0 8px 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 2px solid var(--fd-ink);
    border-radius: var(--fd-radius);
    background: var(--fd-yellow);
    color: var(--fd-ink);
    font-weight: 800;
    cursor: pointer;
}

.fd-enquiry-trigger strong {
    min-width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--fd-ink);
    color: var(--fd-paper);
    font-size: 12px;
}

.fd-hero {
    background: var(--fd-teal);
    border-bottom: 8px solid var(--fd-yellow);
}

.fd-hero-inner,
.fd-page-banner {
    width: min(100% - 48px, var(--fd-width));
    min-height: 152px;
    margin: 0 auto;
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.fd-eyebrow {
    margin: 0 0 5px;
    color: var(--fd-teal-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.fd-hero .fd-eyebrow {
    color: var(--fd-ink);
}

.fd-hero h1,
.fd-page-banner h1 {
    max-width: 860px;
    margin: 0;
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: 0;
}

.fd-hero h1 + p {
    margin: 8px 0 0;
    color: var(--fd-ink);
    font-size: 19px;
    font-weight: 700;
}

.fd-product-total {
    min-width: 172px;
    padding: 14px 20px;
    display: grid;
    border: 2px solid var(--fd-ink);
    border-radius: var(--fd-radius);
    background: var(--fd-paper);
    box-shadow: var(--fd-shadow);
}

.fd-product-total strong {
    font-size: 30px;
    line-height: 1;
}

.fd-product-total span {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 800;
}

.fd-trade-layout {
    width: min(100% - 48px, var(--fd-width));
    margin: 32px auto 64px;
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.fd-catalogue-panel,
.fd-archive-sidebar {
    border: 1px solid var(--fd-line);
    border-radius: var(--fd-radius);
    background: var(--fd-paper);
    overflow: hidden;
}

.fd-panel-title {
    min-height: 58px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--fd-ink);
    color: var(--fd-paper);
}

.fd-panel-title h2 {
    margin: 0;
    font-size: 19px;
}

.fd-panel-title span {
    color: var(--fd-yellow);
    font-size: 12px;
    font-weight: 800;
}

.fd-panel-body {
    padding: 22px 20px;
}

.fd-product-search label,
.fd-panel-body h3 {
    display: block;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.fd-product-search > div,
.woocommerce-product-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
}

.fd-product-search input[type="search"],
.woocommerce-product-search .search-field {
    min-width: 0;
    height: 46px;
    padding: 0 13px;
    border: 2px solid var(--fd-teal-dark);
    border-right: 0;
    border-radius: var(--fd-radius) 0 0 var(--fd-radius);
    outline: none;
}

.fd-product-search input[type="search"]:focus,
.woocommerce-product-search .search-field:focus {
    box-shadow: inset 0 0 0 2px var(--fd-yellow);
}

.fd-product-search button,
.woocommerce-product-search button {
    width: 48px;
    height: 46px;
    border: 2px solid var(--fd-teal-dark);
    border-radius: 0 var(--fd-radius) var(--fd-radius) 0;
    background: var(--fd-yellow);
    color: var(--fd-ink);
    cursor: pointer;
}

.fd-panel-body h3 {
    margin-top: 24px;
}

.fd-category-list {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 3px;
    list-style: none;
}

.fd-category-list a {
    min-height: 43px;
    padding: 8px 9px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    text-decoration: none;
}

.fd-category-list a:hover {
    background: var(--fd-mint);
}

.fd-category-list strong {
    min-width: 0;
    font-size: 14px;
}

.fd-category-list small {
    color: var(--fd-ink-soft);
    font-weight: 800;
}

.fd-category-mark {
    width: 17px;
    height: 17px;
    border: 2px solid var(--fd-teal-dark);
    border-radius: 3px;
}

.fd-category-mark-1 { background: var(--fd-coral); }
.fd-category-mark-2 { background: var(--fd-mint); }
.fd-category-mark-3 { background: var(--fd-yellow); }
.fd-category-mark-4 { background: var(--fd-paper); }

.fd-outline-button {
    min-height: 46px;
    margin-top: 22px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid var(--fd-ink);
    border-radius: var(--fd-radius);
    background: var(--fd-paper);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.fd-outline-button:hover {
    background: var(--fd-yellow-soft);
}

.fd-featured-products {
    min-width: 0;
}

.fd-section-heading {
    min-height: 84px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid var(--fd-line);
    border-bottom: 0;
    border-radius: var(--fd-radius) var(--fd-radius) 0 0;
    background: var(--fd-paper);
}

.fd-section-heading h2 {
    margin: 0;
    font-size: 23px;
    line-height: 1.15;
}

.fd-section-heading p:last-child {
    margin: 4px 0 0;
    color: var(--fd-ink-soft);
    font-size: 13px;
}

.fd-section-heading > a {
    flex: 0 0 auto;
    color: var(--fd-teal-dark);
    font-size: 13px;
    font-weight: 850;
}

.products.fd-product-grid,
.woocommerce ul.products,
ul.products {
    margin: 0;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    border: 1px solid var(--fd-line);
    background: var(--fd-paper);
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product,
ul.products li.fd-product-card,
.fd-product-card {
    width: auto;
    margin: 0;
    padding: 0 0 12px;
    display: flex;
    flex-direction: column;
    float: none;
    border: 1px solid var(--fd-line);
    border-radius: var(--fd-radius);
    background: var(--fd-paper);
    overflow: hidden;
}

.fd-product-card-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.fd-product-media {
    aspect-ratio: 4 / 3;
    padding: 16px;
    display: grid;
    place-items: center;
    background: var(--fd-mint);
    border-bottom: 1px solid var(--fd-line);
    overflow: hidden;
}

.fd-product-card:nth-child(3n + 2) .fd-product-media {
    background: var(--fd-coral-soft);
}

.fd-product-card:nth-child(3n + 3) .fd-product-media {
    background: var(--fd-yellow-soft);
}

.fd-product-media img,
.woocommerce ul.products li.product .fd-product-media img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}

.fd-product-copy {
    padding: 13px 14px 8px;
}

.fd-product-category,
.fd-product-category a {
    color: var(--fd-teal-dark);
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.fd-product-card .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 50px;
    margin: 6px 0 12px;
    padding: 0;
    color: var(--fd-ink);
    font-size: 17px;
    line-height: 1.25;
}

.fd-product-card dl {
    margin: 0;
    display: grid;
    gap: 3px;
}

.fd-product-card dl div {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 5px;
    color: var(--fd-ink-soft);
    font-size: 11px;
}

.fd-product-card dt {
    font-weight: 850;
}

.fd-product-card dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.fd-empty-state {
    min-height: 420px;
    padding: 42px 24px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    border: 1px solid var(--fd-line);
    background: var(--fd-paper);
}

.fd-empty-state img {
    width: min(280px, 80%);
}

.fd-empty-state h3 {
    margin: 20px 0 4px;
}

.fd-empty-state p {
    max-width: 500px;
    margin: 0;
    color: var(--fd-ink-soft);
}

.fd-catalogue-page {
    min-height: 70vh;
}

.fd-page-banner {
    min-height: 138px;
}

.fd-page-banner h1 {
    font-size: 36px;
}

.fd-page-banner .term-description p {
    margin: 6px 0 0;
    color: var(--fd-ink-soft);
}

.fd-archive-layout {
    width: min(100% - 48px, var(--fd-width));
    margin: 0 auto 64px;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.fd-archive-sidebar {
    padding: 20px;
}

.fd-archive-sidebar h2 {
    margin: 0 0 14px;
    font-size: 19px;
}

.fd-archive-sidebar .widget {
    margin-top: 26px;
}

.fd-category-filter > summary {
    display: none;
}

.fd-category-filter:not([open]) > .fd-category-filter-content {
    display: block;
}

.fd-archive-sidebar .widget-title {
    font-size: 14px;
    text-transform: uppercase;
}

.fd-archive-sidebar .product-categories {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1px;
    list-style: none;
}

.fd-archive-sidebar .product-categories a {
    padding: 8px 0;
    display: inline-block;
    color: var(--fd-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.fd-archive-sidebar .count {
    color: var(--fd-ink-soft);
    font-size: 12px;
}

.fd-archive-products {
    min-width: 0;
}

.fd-archive-products .woocommerce-result-count {
    margin: 11px 0 0;
    color: var(--fd-ink-soft);
}

.fd-archive-products .woocommerce-ordering {
    margin-bottom: 14px;
}

.fd-archive-products .woocommerce-ordering select {
    min-height: 42px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--fd-line);
    border-radius: var(--fd-radius);
    background: var(--fd-paper);
}

.fd-archive-products ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
    border: 0;
    background: transparent;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    border: 1px solid var(--fd-line);
    border-radius: var(--fd-radius);
    overflow: hidden;
}

.woocommerce nav.woocommerce-pagination ul li {
    border-color: var(--fd-line);
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--fd-teal);
    color: var(--fd-ink);
}

.fd-content-page,
.single-product .site-main,
.single-product-shell {
    width: min(100% - 48px, 1120px);
    margin: 48px auto 72px;
}

.fd-article {
    padding: 34px;
    border: 1px solid var(--fd-line);
    border-radius: var(--fd-radius);
    background: var(--fd-paper);
}

.fd-article h1 {
    margin-top: 0;
}

.single-product div.product {
    padding: 28px;
    border: 1px solid var(--fd-line);
    border-radius: var(--fd-radius);
    background: var(--fd-paper);
}

.single-product div.product .summary h1 {
    font-size: 32px;
}

.single-product div.product .product_meta {
    display: grid;
    gap: 4px;
    color: var(--fd-ink-soft);
    font-size: 13px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: var(--fd-teal);
    background: var(--fd-paper);
}

.fd-footer {
    background: var(--fd-ink);
    color: var(--fd-paper);
}

.fd-footer-inner {
    width: min(100% - 48px, var(--fd-width));
    min-height: 180px;
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.fd-footer-brand {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.fd-footer-brand img {
    width: 54px;
    height: 64px;
    padding: 6px;
    object-fit: contain;
    background: var(--fd-paper);
    border-radius: 4px;
}

.fd-footer-brand strong {
    font-size: 19px;
}

.fd-footer-brand p {
    margin: 5px 0 0;
    color: #b9cccf;
}

.fd-footer address {
    max-width: 420px;
    display: grid;
    gap: 7px;
    font-style: normal;
    text-align: right;
}

.fd-footer address a {
    color: var(--fd-yellow);
    font-weight: 750;
    text-decoration: none;
}

.fd-footer-base {
    min-height: 48px;
    padding: 10px max(24px, calc((100% - var(--fd-width)) / 2));
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #31515a;
    color: #b9cccf;
    font-size: 12px;
}

.fd-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
}

.fd-footer-links a {
    color: var(--fd-yellow);
    font-weight: 750;
    text-decoration: none;
}

@media (max-width: 1180px) {
    .fd-header-inner {
        grid-template-columns: minmax(220px, 1fr) auto auto;
        gap: 14px;
    }

    .fd-nav-list a {
        padding: 0 10px;
    }

    .fd-trade-layout {
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .products.fd-product-grid,
    .woocommerce ul.products,
    ul.products,
    .fd-archive-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    body.admin-bar .fd-header {
        top: 46px;
    }

    .fd-header-inner {
        min-height: 68px;
        grid-template-columns: minmax(0, 1fr) 42px auto;
    }

    .fd-brand span {
        display: none;
    }

    .fd-brand img,
    .fd-brand .custom-logo {
        width: 38px;
        height: 44px;
    }

    .fd-menu-toggle {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border: 1px solid var(--fd-line);
        border-radius: var(--fd-radius);
        background: var(--fd-paper);
        color: var(--fd-ink);
        font-size: 22px;
        cursor: pointer;
    }

    .fd-primary-nav {
        position: absolute;
        top: 68px;
        right: 0;
        left: 0;
        display: none;
        border-top: 1px solid var(--fd-line);
        border-bottom: 2px solid var(--fd-ink);
        background: var(--fd-paper);
    }

    .fd-primary-nav.is-open {
        display: block;
    }

    .fd-nav-list {
        width: min(100% - 40px, var(--fd-width));
        margin: 0 auto;
        display: grid;
    }

    .fd-nav-list a {
        min-height: 48px;
        padding: 0;
    }

    .fd-nav-list a:hover::after,
    .fd-nav-list .current-menu-item a::after,
    .fd-nav-list .current_page_item a::after {
        right: 0;
        left: 0;
    }

    .fd-hero-inner,
    .fd-page-banner {
        min-height: 0;
        align-items: flex-start;
    }

    .fd-hero h1,
    .fd-page-banner h1 {
        font-size: 34px;
    }

    .fd-trade-layout,
    .fd-archive-layout {
        grid-template-columns: 1fr;
    }

    .fd-catalogue-panel,
    .fd-archive-sidebar {
        position: static;
    }

    .fd-archive-sidebar {
        padding: 16px;
    }

    .fd-category-filter {
        margin-top: 16px;
        border-top: 1px solid var(--fd-line);
    }

    .fd-category-filter > summary {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--fd-teal-dark);
        font-size: 14px;
        font-weight: 850;
        cursor: pointer;
        list-style: none;
    }

    .fd-category-filter > summary::-webkit-details-marker {
        display: none;
    }

    .fd-category-filter > summary::after {
        content: "+";
        font-size: 22px;
        line-height: 1;
    }

    .fd-category-filter[open] > summary::after {
        content: "-";
    }

    .fd-category-filter:not([open]) > .fd-category-filter-content {
        display: none;
    }

    .fd-category-filter-content .widget {
        margin-top: 6px;
    }

    .fd-archive-products ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fd-header-inner,
    .fd-hero-inner,
    .fd-page-banner,
    .fd-trade-layout,
    .fd-archive-layout,
    .fd-footer-inner,
    .fd-content-page,
    .single-product-shell {
        width: min(100% - 28px, var(--fd-width));
    }

    .fd-enquiry-trigger {
        min-width: 46px;
        padding: 0 8px;
    }

    .fd-enquiry-trigger > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .fd-hero-inner,
    .fd-page-banner {
        padding: 24px 0;
        display: grid;
        gap: 22px;
    }

    .fd-hero h1,
    .fd-page-banner h1 {
        font-size: 30px;
        overflow-wrap: anywhere;
    }

    .fd-hero h1 + p {
        font-size: 16px;
    }

    .fd-product-total {
        width: 100%;
    }

    .fd-trade-layout {
        margin-top: 20px;
    }

    .fd-section-heading {
        display: grid;
    }

    .products.fd-product-grid,
    .woocommerce ul.products,
    ul.products,
    .fd-archive-products ul.products {
        grid-template-columns: 1fr;
    }

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    ul.products li.fd-product-card,
    .fd-product-card {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }

    .fd-product-media {
        aspect-ratio: 16 / 10;
    }

    .woocommerce nav.woocommerce-pagination {
        width: 100%;
        overflow: hidden;
    }

    .woocommerce nav.woocommerce-pagination ul {
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        border: 0;
        overflow: visible;
    }

    .woocommerce nav.woocommerce-pagination ul li {
        border: 1px solid var(--fd-line);
    }

    .fd-footer-inner,
    .fd-footer-base {
        display: grid;
    }

    .fd-footer-links {
        justify-content: flex-start;
    }

    .fd-footer address {
        text-align: left;
    }

    .fd-article,
    .single-product div.product {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
