/* Hero banner */
.products-hero {
    background: #E2EDF6;
    padding: 40px 80px;
    border-top: 3px solid #3BA7DC;
}

.products-hero h1 {
    color: #0069B4;
}

.products-hero p {
    margin: 8px 0 0;
}

/* Filter button (Mobile) */
.filter-toggle {
    display: none;
}

/* Section padding */
.products-section {
    padding: 40px 80px;
}

/* Two-column flex layout */
.shop-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.products-area {
    flex: 1;
    min-width: 0;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 28px;
}

.filter-group h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #222;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E2EDF6;
}

/* Search + Price inputs */
#sidebar #search {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #E2EDF6;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
}

#sidebar #search:focus {
    border-color: #3BA7DC;
}

/* button */
.filter-toggle {
    display: none;
    background: #0069B4;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.3s;
}

.filter-toggle:hover {
    background: #004F86;
}

/* ask */

/* .filter-apply-btn {
    width: 100%;
    padding: 10px;
    background: #0069B4;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-apply-btn:hover {
    background: #004F86;
} */

.clear-filters {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: #0069B4;
    cursor: pointer;
    font-weight: 600;
    background: none;
    border: none;
}

.clear-filters:hover {
    text-decoration: underline;
}

/* checkbox labels */

.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    color: #4B6070;
    transition: color 0.2s;
}

.filter-group label:hover {
    color: #0069B4;
}

.filter-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0069B4;
}

.filter-group .count {
    margin-left: auto;
    font-size: 12px;
    color: #999;
}

/* Category drill-down */
.category-browser {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-option,
.category-back {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #4B6070;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s, padding-left 0.2s;
}

.category-option:hover,
.category-option.active,
.category-back:hover {
    color: #0069B4;
}

.category-option.active {
    font-weight: 700;
    padding-left: 8px;
}

.category-option .count {
    margin-left: auto;
}

.category-arrow {
    margin-left: 4px;
    font-size: 11px;
}

.category-back {
    gap: 8px;
    margin-bottom: 4px;
    color: #0069B4;
    font-size: 13px;
    font-weight: 700;
}

.category-level-title {
    margin: 2px 0 4px;
    color: #222;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

/* Product : Results Bar */
.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;

}

.results-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-size-control {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4B6070;
    font-size: 13px;
    white-space: nowrap;
}

/* ? */
.results-bar select {
    padding: 8px 12px;
    border: 2px solid #E2EDF6;
    border-radius: 6px;
    cursor: pointer;
}

/* Responsive auto-fill grid */
#products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    /* what is fr? */
    gap: 20px;
}

/* Compact three-part paginator matching the site's teal controls. */
.pagination {
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin-top: 32px;
}

.pagination-button,
.pagination-indicator {
    height: 38px;
    border: 1px solid #0069B4;
    background: #fff;
    color: #0069B4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
}

.pagination-button {
    width: 38px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.pagination-button:first-child {
    border-radius: 3px 0 0 3px;
}

.pagination-button:last-child {
    border-radius: 0 3px 3px 0;
}

.pagination-indicator {
    min-width: 74px;
    padding: 0 12px;
    margin: 0 -1px;
    color: #222;
    font-size: 13px;
    white-space: nowrap;
    gap: 4px;
}

.pagination-page-input {
    width: 32px;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: #222;
    font: inherit;
    text-align: center;
}

.pagination-page-input:focus {
    outline: 2px solid #3BA7DC;
    outline-offset: 1px;
    border-radius: 2px;
}

.pagination-button:hover:not(:disabled) {
    background: #0069B4;
    color: #fff;
}

.pagination-button:disabled {
    color: #a8bbb6;
    cursor: not-allowed;
    background: #f7faf9;
}

/* Card for products */
/* product-card is never called? */
/* below are all never called in products.html */
.product-card {
    background: #fff;
    border: 2px solid #E2EDF6;
    border-radius: 8px;
    overflow: hidden;
    /* ? */
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover effect over card + shadow + lift */
.product-card:hover {
    border-color: #3BA7DC;
    box-shadow: 0 10px 30px rgba(0, 105, 180, 0.2);
    transform: translate(-3px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8f8f8;
    padding: 16px
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 11px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.card-desc {
    font-size: 13px;
    color: #4B6070;
    margin-bottom: 10px;
}

.product-enquire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 9px 16px;
    border: 1px solid #0069B4;
    border-radius: 6px;
    background: #0069B4;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.product-enquire:hover {
    border-color: #004F86;
    background: #004F86;
    color: #fff;
    transform: translateY(-1px);
}

.detail-section {
    margin-top: 28px;
}

.detail-section h3 {
    margin-bottom: 10px;
    color: #222;
    font-size: 15px;
    text-transform: uppercase;
}

.no-results {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

/* Individual Products Page */
#detail-view {
    display: none;
}

#back-link {
    display: inline-block;
    color: #0069B4;
    font-weight: 600;
    margin-bottom: 30px;
    text-decoration: none;
    transition: 0.3s;
}

#back-link:hover {
    color: #3BA7DC;
}

.detail-top {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.detail-image {
    flex: 1;
    background: #f8f8f8;
    border: 2px solid #E2EDF6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 400px;
}

.detail-image img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
}

.detail-info {
    flex: 1;
}

.category-badge {
    display: inline-block;
    background: #E2EDF6;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0069B4;
}

.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.category-badges .category-badge {
    margin: 0;
}

.detail-info h1,
.detail-info h2 {
    font-size: 42px;
    line-height: 48px;
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    background: #E2EDF6;
    border: 1px solid #d0d3e0;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    margin: 0 6px 8px;
}

/* Individual product visual treatment */
#detail-view {
    background: linear-gradient(180deg, #f8fbfb 0%, #ffffff 100%);
}

#detail-view.products-section {
    padding-top: 56px;
    padding-bottom: 88px;
}

.detail-top {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 48px;
    align-items: stretch;
}

.detail-gallery {
    min-width: 0;
}

.detail-image {
    min-height: 520px;
    padding: 36px;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(6, 59, 99, 0.14);
    overflow: hidden;
    cursor: zoom-in;
}

.detail-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
    border-radius: 14px;
    transition: transform 0.35s ease;
}

.detail-image:hover img {
    transform: scale(1.025);
}

.detail-thumbnails[hidden] {
    display: none;
}

.detail-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.detail-thumbnail {
    min-width: 0;
    padding: 5px;
    border: 1px solid #dce9e9;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(6, 59, 99, 0.06);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.detail-thumbnail:hover,
.detail-thumbnail:focus-visible,
.detail-thumbnail[aria-current="true"] {
    border-color: #3BA7DC;
    box-shadow: 0 8px 18px rgba(0, 105, 180, 0.18);
    outline: none;
    transform: translateY(-2px);
}

.detail-thumbnail img {
    display: block;
    width: 100%;
    height: 76px;
    border-radius: 8px;
    object-fit: contain;
    background: #f8fafa;
}

.detail-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 44px;
    border-radius: 24px;
    background: linear-gradient(145deg, #063B63 0%, #0069B4 100%);
    box-shadow: 0 20px 50px rgba(0, 105, 180, 0.22);
    color: #f4ffff;
}

.category-badge {
    padding: 8px 13px;
    border: 1px solid rgba(190, 255, 251, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #EEF8FF;
    font-size: 11px;
    letter-spacing: 0.4px;
}

.category-badges {
    margin-bottom: 22px;
}

.detail-info h1,
.detail-info h2 {
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(2rem, 3.25vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.7px;
}

.detail-info .short-description {
    margin: 0 0 22px;
    color: #fff;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.55;
}

.detail-description-block {
    width: 100%;
    margin-bottom: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(238, 248, 255, 0.22);
}

.detail-info .description {
    margin: 0;
    color: #EAF5FC;
    font-size: 1.02rem;
    line-height: 1.8;
}

.detail-info .description p {
    margin: 0 0 14px;
    color: inherit;
}

.detail-info .description p:last-child {
    margin-bottom: 0;
}

.detail-info .product-enquire {
    align-self: center;
    min-width: 230px;
    margin: 4px 0 30px;
    padding: 14px 25px;
    border: 1px solid #3BA7DC;
    border-radius: 999px;
    background: #3BA7DC;
    color: #063B63;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.detail-info .product-enquire::after {
    content: '\2192';
    margin-left: 10px;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.detail-info .product-enquire:hover {
    border-color: #fff;
    background: #fff;
    color: #063B63;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.detail-info .product-enquire:hover::after {
    transform: translateX(3px);
}

.detail-info .detail-section {
    width: 100%;
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(231, 255, 253, 0.24);
}

.detail-info .detail-section h3 {
    margin-bottom: 12px;
    color: #D8EEFA;
    font-size: 11px;
    letter-spacing: 1.4px;
}

.related-section {
    max-width: 1320px;
    margin: 82px auto 0;
}

.related-heading {
    margin-bottom: 22px;
}

.related-heading .eyebrow {
    margin: 0 0 7px;
    color: #0069B4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.related-heading h2 {
    margin: 0;
    color: #063B63;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.15;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.related-card {
    overflow: hidden;
    border: 1px solid #E2EDF6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(6, 59, 99, 0.07);
    cursor: pointer;
    outline: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.related-card:hover,
.related-card:focus-visible {
    border-color: #3BA7DC;
    box-shadow: 0 14px 30px rgba(0, 105, 180, 0.18);
    transform: translateY(-4px);
}

.related-card img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: #f8fafa;
    padding: 14px;
}

.related-card h3 {
    min-height: 48px;
    margin: 0;
    padding: 15px 16px 17px;
    color: #222;
    font-size: 14px;
    line-height: 1.35;
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    background: rgba(4, 31, 32, 0.88);
}

.image-lightbox img {
    max-width: min(92vw, 1200px);
    max-height: 88vh;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

body.lightbox-open {
    overflow: hidden;
}

/* Responsive Breakpoints for Tablet*/

@media(max-width: 768px) {

    .products-hero,
    .products-section {
        padding-left: 30px;
        padding-right: 30px;
    }

    .results-bar,
    .results-controls {
        flex-wrap: wrap;
        gap: 10px;
    }


    /* show mobile button */
    .filter-toggle {
        display: block;
        width: 100%;
    }

    /* hide sidebar */

    .sidebar {
        display: none;
        width: 100%;
    }


    /* show when toggled */

    .sidebar.open {
        display: block;
        width: 100%;
    }


    .shop-layout {
        flex-direction: column;
        width: 100%;
        gap: 24px;
    }

    .products-area,
    .filter-group,
    #filter-categories {
        width: 100%;
    }

    .detail-top {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #detail-view.products-section {
        padding-top: 36px;
    }

    .detail-image {
        min-height: 360px;
        padding: 22px;
    }

    .detail-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .detail-thumbnail img {
        height: 64px;
    }

    .detail-info {
        padding: 32px 28px;
    }

    .related-section {
        margin-top: 56px;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-info h1,
    .detail-info h2 {
        font-size: 32px;
        line-height: 38px;
    }
}

/* Resposive breakpoint for Phone */
@media(max-width:480px) {

    .products-hero,
    .products-section {
        padding-left: 20px;
        padding-right: 20px;
    }


    /* 1 column display */
    #products {
        grid-template-columns: 1fr;
    }

    .detail-image {
        min-height: 280px;
        padding: 16px;
    }

    .detail-info {
        padding: 26px 22px;
    }

    .detail-info h1,
    .detail-info h2 {
        font-size: 2.25rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card img {
        height: 220px;
    }

    .image-lightbox {
        padding: 20px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}
/* ======================================================================
   Static SEO pages (product and category pages generated by MaplePublisher)
   and catalogue cards rendered as links.
   ====================================================================== */

/* Product cards are anchors so their URLs are crawlable. */
a.product-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.related-card {
    color: inherit;
    text-decoration: none;
}

/* The detail-view block is hidden by default for the in-page catalogue;
   the static product page keeps the markup but must stay visible. */
#detail-view.static-product-view {
    display: block;
}

/* Visible breadcrumb on generated pages. */
.seo-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 13px;
}

.seo-breadcrumb a {
    color: #0069B4;
    text-decoration: none;
}

.seo-breadcrumb a:hover {
    text-decoration: underline;
}

.seo-breadcrumb .current {
    color: #4B6070;
    font-weight: 600;
}

/* Static category pages. */
.static-category-view {
    padding-top: 32px;
}

.category-lede {
    max-width: 900px;
    margin: 0 0 34px;
    color: #33475b;
    font-size: 16px;
    line-height: 1.8;
}

.category-group {
    margin-bottom: 46px;
}

.category-group h2 {
    margin-bottom: 16px;
    color: #063B63;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.category-count {
    color: #0069B4;
    font-size: 0.75em;
    font-weight: 600;
}

.static-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* Subcategory label riding on each tile of the category grid. */
.card-kicker {
    margin-bottom: 4px;
    color: #0069B4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-kicker + .card-title {
    margin-top: 0;
}

/* Compact link lists used on category pages, the 404 page and the
   no-JavaScript fallback on the catalogue page. */
.category-link-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-link-list li {
    margin: 0;
}

.category-link-list a {
    color: #0069B4;
    font-weight: 600;
    text-decoration: none;
}

.category-link-list a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .static-products-grid,
    .category-link-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}
