/* ============================================
   bs-commercial
   this file serves /commercial/group.aspx & /commercial/filters.aspx
   ============================================ */

/* Hero Section & Top Banners */
#topsection {
    height: min(520px, 80vh);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.text-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 5vw, 3rem);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.light-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.dark-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.dark-text {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.tile-section {
    margin: 0 0 1.5rem 0;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.front-text {
    font-family: 'Arial', sans-serif;
    font-size: 22px;
    font-weight: 500;
    text-align: center;
    color: #ffffff;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgb(0 0 0);
}

.description_text {
    align-content: center;
    padding: 14px 14px 16px 14px;
    color: #ffffff;
}

.description-container {
    align-self: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    word-wrap: break-word;
}

.description-text {
    font-family: 'Arial', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgb(0 0 0);
}

.background_image {
    position: relative;
    overflow: hidden;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: #fff;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.6);
}

.border-line {
    margin-bottom: 1rem;
    margin: .5rem auto;
}

.breadcrumb-wrapper {
    border-bottom: 1.5px solid #eee;
    padding: 0.4rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #faf9f7;
    display: flex;
    align-items: center;
}

#menu-links {
    max-width: 1510px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

    #menu-links .col-md-9 {
        padding-left: 0px;
        display: flex;
        align-items: center;
    }

    #menu-links .col-md-3 {
        padding-right: 0px;
    }

    #menu-links .row {
        margin: 0;
        align-items: center;
    }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: inherit;
}

.breadcrumb-item {
    font-size: .9rem;
    margin-right: 0.5rem;
    line-height: 1.3rem;
    display: flex;
    align-items: center;
}

    .breadcrumb-item a {
        text-decoration: none;
        color: #4F7942;
        transition: color 0.3s ease, text-decoration 0.3s ease;
    }

    .breadcrumb-item.active {
        color: #474e55;
        font-weight: 600;
    }

    .breadcrumb-item a:hover {
        color: #ec1c24;
    }

    .breadcrumb-item i {
        margin-right: 0.25rem;
    }

    .breadcrumb-item::after {
        content: "\203A";
        color: #6c757d;
        font-size: 1.2rem;
        margin-left: 0.5rem;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        content: none;
    }

    .breadcrumb-item + .breadcrumb-item {
        padding-left: .3rem;
    }

    .breadcrumb-item:last-child::after {
        content: "";
    }

    .breadcrumb-item:last-child a {
        color: #343a40;
        font-weight: bold;
        pointer-events: none;
    }

/* Buttons & CTAs */
.enquiry-btn {
    display: inline-flex;
    gap: .4em .6em;
    padding: .5em 1.5em;
    border: 3px solid #5e0414;
    text-decoration: none;
    background-color: #5e0414;
    color: #fefefe;
    text-align: center;
    border-radius: 2em;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    line-height: 1.45;
    box-sizing: border-box;
    transition: .15s linear;
    transition-property: background-color,color,transform;
    margin: 0;
    white-space: nowrap;
    appearance: none;
    font-family: inherit;
}

    .enquiry-btn:hover {
        color: #ffff;
        transform: scale(1.04);
        text-decoration: none;
    }

.view-products {
    display: inline-flex;
    gap: .4em .6em;
    padding: .5em 1.1em;
    color: #013220;
    border: 3px solid #013220;
    text-decoration: none;
    background-color: transparent;
    text-align: center;
    border-radius: 2em;
    cursor: pointer;
    font-size: .9em;
    font-weight: 500;
    line-height: 1.35;
    box-sizing: border-box;
    transition: .15s linear;
    transition-property: background-color,color,transform;
    margin: 0;
    white-space: nowrap;
    appearance: none;
    font-family: inherit;
}

    .view-products:hover {
        background-color: #013220;
        color: #fefefe;
        transform: scale(1.04);
        text-decoration: none;
    }

.usefilters-btn {
    display: inline-flex;
    gap: .4em .6em;
    padding: .5em 1.5em;
    border: 3px solid #030836;
    text-decoration: none;
    background-color: #030836;
    color: #fefefe;
    text-align: center;
    border-radius: 2em;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    line-height: 1.45;
    box-sizing: border-box;
    transition: .15s linear;
    transition-property: background-color,color,transform;
    margin: 0;
    white-space: nowrap;
    appearance: none;
    font-family: inherit;
}

    .usefilters-btn:hover {
        color: #fefefe;
        transform: scale(1.04);
        text-decoration: none;
    }

.filters-link {
    float: right;
    text-decoration: none;
    box-shadow: inset 0 0 0 2px #0707073b;
    background-color: transparent;
    color: #000;
    font-size: 0.8rem;
    padding: .5rem;
}

    .filters-link:hover {
        background-color: #000;
        color: #ad974f;
    }

.backbtn {
    float: right;
}

.filters-btn {
    background-color: #f8f9fa;
    border: 1px solid #000000;
    color: #495057;
    letter-spacing: 0.2px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

    .filters-btn:hover {
        background-color: #000000;
        color: #ffff;
        transform: translateY(-1px);
    }

    .filters-btn:active {
        transform: translateY(0px);
    }

    .filters-btn:focus {
        box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.25);
    }

.action-buttons {
    position: sticky;
    top: 49px;
    display: flex;
    flex-wrap: wrap;
    clear: right;
    margin-top: 20px;
    gap: 10px;
    z-index: 900;
    background: white;
    padding: 10px 0;
}

    .action-buttons .btn {
        margin-right: 0;
        margin-bottom: 0;
        flex: 0 1 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 160px;
        text-align: center;
    }

/* Product Cards & Lists */
.product-list .card-link {
    text-decoration: none;
    color: inherit;
}

.product-list .card {
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 0px;
    transition: all 0.3s ease;
}

    .product-list .card:hover {
        box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
        border-color: #ad974f;
    }

    .product-list .card .card-body {
        padding: 1rem;
    }

    .product-list .card .tags {
        padding-left: .5rem;
    }

    .product-list .card .card-image {
        padding: 0 !important;
        margin-left: 10px;
        margin-right: 10px;
        margin-top: .4rem;
    }

.product-list .card-body {
    padding: .3rem;
}

    .product-list .card-body h5 {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0 0 8px;
    }

    .product-list .card-body p {
        font-size: 0.9rem;
        color: #666;
        line-height: 1.4;
    }

.product-list .card-image {
    width: auto;
    height: 250px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-bottom: 1rem;
}

.product-list .product-card-brand {
    position: absolute;
    right: -10px;
    top: -20px;
    background: #ff4444;
    border-radius: 50%;
    text-align: center;
    color: #fff;
    font-size: 14px;
    width: 50px;
    height: 50px;
    padding: 15px 0 0 0;
}

.product-list .btn-success {
    align-items: center;
    border-radius: .4rem;
    flex-shrink: 0;
    font-size: 13px;
    color: #ffffff;
    font-weight: 400;
}

.product-list .card-image-overlay span {
    display: inline-block;
}

.product-list .ad-btn {
    text-transform: uppercase;
    width: 150px;
    height: 40px;
    border-radius: 80px;
    font-size: 16px;
    line-height: 35px;
    text-align: center;
    border: 3px solid #e6de08;
    display: block;
    text-decoration: none;
    margin: 20px auto 1px auto;
    color: #000;
    overflow: hidden;
    position: relative;
    background-color: #e6de08;
}

    .product-list .ad-btn:hover {
        background-color: #e6de08;
        color: #1e1717;
        border: 2px solid #e6de08;
        background: transparent;
        transition: all 0.3s ease;
        box-shadow: 12px 15px 20px 0px rgba(46,61,73,0.15);
    }

.product-list .ad-title h5 {
    text-transform: uppercase;
    font-size: 18px;
}

.product-list .row {
    margin: 0 -15px;
}

.product-list [class*='col-'] {
    padding: 10px;
}

.landing .card-image {
    width: 150px !important;
    height: 150px !important;
    background-size: cover !important;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: .5rem;
}

.card-view .tags {
    justify-content: flex-start;
}

.list-view .tags {
    justify-content: flex-end;
}

.tag {
    display: inline-block;
    color: white;
    font-weight: 500;
    font-size: 10px;
    max-width: fit-content;
    padding: .4rem;
    text-align: left;
    align-items: center;
    background: #4F7942;
}

.product-list .list-view .col-12,
.product-list .list-view .col-sm-6,
.product-list .list-view .col-lg-4,
.product-list .list-view .col-xl-3 {
    width: 50%;
    max-width: 50%;
    flex: 0 0 50%;
}

.product-list .list-view .card {
    position: relative;
    flex-direction: row;
    align-items: center;
    padding: 14px;
    height: 100%;
}

.product-list .list-view .card-image {
    width: 250px;
    height: 180px;
    margin: 0;
    margin-right: 1.5rem;
    flex-shrink: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.product-list .list-view .card-body {
    flex: 1;
    padding: 0;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-list .list-view .tags {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

#ad a.view-btn:hover .view-btn.text {
    cursor: pointer;
    text-decoration: none;
}

/* Product Range Split Cards */
#product_range .product-list .row {
    display: flex;
    flex-wrap: wrap;
}

#product_range .product-list .col-lg-6,
#product_range .product-list .col-md-6 {
    display: flex;
}

#product_range .product-list .card-link {
    display: flex;
    width: 100%;
}

#product_range #residential_range .product-list .card-link {
    min-height: 260px;
}

#product_range .product-list .product-card-split {
    display: flex;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: 100%;
    width: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
}

    #product_range .product-list .product-card-split:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
    }

        #product_range .product-list .product-card-split:hover .split-image img {
            transform: scale(1.05);
        }

        #product_range .product-list .product-card-split:hover .learn-more {
            color: #911313;
        }

        #product_range .product-list .product-card-split:hover .arrow-icon {
            transform: translateX(4px);
        }

#product_range .product-list .split-image-container {
    width: 35%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

#product_range #residential_range .product-list .split-image-container {
    width: 45%;
}

#product_range #residential_range .product-list .split-image img {
    object-position: center;
}

#product_range .product-list .split-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    background: #f8f9fa;
}

    #product_range .product-list .split-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

#product_range .product-list .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
}

#product_range .product-list .split-content {
    width: 65%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#product_range .product-list .content-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

#product_range .product-list .title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

#product_range .product-list .description {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

#product_range .product-list .learn-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ad974f;
    font-weight: 500;
    font-size: 0.9375rem;
    margin-top: auto;
}

#product_range .product-list .arrow-icon {
    fill: currentColor;
    transition: transform 0.3s ease;
}

/* Product Grid & Tabs */
.products-container {
    max-width: 100%;
    margin-top: 30px;
    margin-bottom: 40px;
}

.products-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 25px;
    width: 100%;
}

.products-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .products-tab:hover {
        color: #007bff;
    }

    .products-tab.active {
        color: #007bff;
        font-weight: 600;
    }

    .products-tab:focus {
        outline: none;
    }

    .products-tab.active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #007bff;
    }

.products-toolbar {
    display: flex;
    margin-bottom: 20px;
    padding: 0 10px;
}

.products-panel {
    display: none;
}

    .products-panel.active {
        display: block;
    }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

    .products-grid .product-card {
        border: 1px solid #e9ecef;
        border-radius: 8px;
        overflow: hidden;
        background-color: white;
        transition: all 0.3s ease;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        height: 100%;
        display: flex;
        flex-direction: column;
        cursor: pointer;
        position: relative;
        text-decoration: none;
        color: inherit;
    }

        .products-grid .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0,0,0,0.1);
            border-color: #007bff;
        }

    .products-grid .product-image-container {
        height: 160px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background-color: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
    }

        .products-grid .product-image-container img {
            max-height: 100%;
            max-width: 100%;
            object-fit: contain;
        }

    .products-grid .product-title {
        margin: 0;
        padding: 15px;
        font-size: 16px;
        font-weight: 600;
        color: #343a40;
        text-align: center;
        border-bottom: 1px solid #e9ecef;
        line-height: 1.4;
    }

    .products-grid .product-key-specs {
        padding: 12px 15px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .products-grid .spec-item {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        flex-wrap: wrap;
        font-size: 14px;
        color: #495057;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .products-grid .spec-label {
        font-weight: 500;
        color: #6c757d;
        margin-right: 10px;
    }

    .products-grid .spec-item.cooling {
        color: #2b4bdbbd;
    }

    .products-grid .spec-item.heating {
        color: #cc1e1eb8;
    }

.product-card .spec-item.lossnay-spec {
    text-align: center;
    justify-content: center;
    font-size: 15px;
}

/* Filters & Search */
.product-wrapper .form-control {
    height: 40px;
    border: 1px solid #000000;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 8px 16px;
    font-size: 15.2px;
    color: #000;
}

.product-wrapper .btn-icon {
    height: 40px;
    width: 50px;
    font-size: 18px;
    color: #ffffff;
    background-color: #000000;
    border: 1px solid #000000;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-options select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    width: 220px;
}

/* View Toggles */
.view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 1.2rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

    .view-toggle button {
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .view-toggle button.active {
            background: #030836;
            color: #fff;
        }

/* Modals */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

.modal-open {
    overflow: auto;
}

#modalImage {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

    #modalImage.show {
        opacity: 1;
        transform: scale(1);
    }

.modal-content {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 5px 15px rgb(0 0 0 / 72%);
}

.modal-header {
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 1050;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.modal-body {
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.close {
    transition: transform 0.2s ease;
}

    .close:hover {
        transform: rotate(90deg);
    }

/* Linked Products Error */
#linkedProducts .product-error {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Controllers */
#controls {
    display: none;
    margin: 0 auto;
    padding: 15px 0 0 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.controllers-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    background: white;
    padding: 2px 0 10px 10px;
    border-bottom: 1px solid #eee;
    z-index: 10;
}

.controller-tab {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
}

    .controller-tab:hover {
        background-color: #e9e9e9;
        color: #222;
    }

    .controller-tab.active {
        background-color: #0066cc;
        color: white;
        border-color: #0052a3;
    }

.controllers-content {
    position: relative;
}

.controller-category {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 30px;
    animation: fadeIn 0.3s ease-in-out;
}

.controller-category-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.controller-category-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.controller-grid {
    display: grid;
    margin-bottom: 25px;
    grid-template-columns: repeat(auto-fill, minmax(calc(25% - 15px), 1fr));
    gap: 20px;
}

.controller-card-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

    .controller-card-wrapper:hover {
        text-decoration: none !important;
    }

.controller-card-compact {
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

    .controller-card-compact:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        border-color: #007bff;
    }

.controller-img-small {
    height: 170px;
    overflow: hidden;
    background-color: #ffff;
    border-bottom: 1px solid #66666621;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .controller-img-small img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .controller-img-small.no-img {
        background-color: #eef2f7;
    }

        .controller-img-small.no-img i {
            font-size: 40px;
            color: #3b3b3b47;
        }

.controller-content-compact {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

    .controller-content-compact h6 {
        font-size: 18px;
        margin: 0 0 10px 0;
        color: #333;
        font-weight: 600;
    }

    .controller-content-compact p {
        margin: 0 0 15px 0;
        font-size: 14px;
        color: #666;
        line-height: 1.4;
        flex-grow: 1;
    }

.controller-link-small {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #0066cc;
    font-weight: 500;
    margin-top: auto;
}

    .controller-link-small i {
        margin-left: 5px;
    }

.subcategory-section {
    margin-bottom: 30px;
    padding-top: 15px;
}

.subcategory-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.subcategory-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.subcategory-section + .subcategory-section {
    margin-top: 10px;
}

.subcategory-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* Features & Specifications */
.features-wrapper {
    clear: right;
}

.features-content {
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #33333330;
    margin-top: 1rem;
    background: #fff;
    border-radius: 0 0 0.5rem 0.5rem;
}

.features-container {
    transition: all 0.3s ease;
}

    .features-container.show {
        display: block;
    }

.features-header {
    padding: 8px 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #D9D9D9;
}

    .features-header:hover h5,
    .features-header:hover .toggle-btn {
        color: #dc3545;
    }

.header-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .header-content h5 {
        margin: 0;
        font-size: 0.9rem;
        font-weight: 500;
        color: #58595b;
    }

        .header-content h5:hover {
            color: #dc3545;
        }

.toggle-btn {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    cursor: pointer;
}

.features-table {
    padding-left: 16px;
    padding-right: 16px;
}

.group-one {
    margin-top: 9px;
    padding-left: 24px;
}

    .group-one .section-title {
        margin-top: 10px;
    }

.group-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 10px;
}

.group-item {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    padding: 5px 16px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    margin: 0 -16px;
    margin-top: 0px !important;
    margin-left: -16px;
    margin-right: -16px;
}

.section-content {
    padding: 16px;
}

.spec-row {
    display: flex;
    align-items: baseline;
    padding: 8px 0;
}

    .spec-row:last-child {
        border-bottom: none;
    }

.spec-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 17px;
    color: #333;
    margin-right: 10px;
    font-weight: 600;
}

.spec-value {
    flex: 1;
    font-size: 15px;
    color: #475569;
}

#shortDescription .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

    #shortDescription .btn:hover {
        background: #f8f9fa;
    }

#shortDescription .features-container {
    margin-top: 10px;
}

#shortDescription .accordion-item {
    margin-bottom: 10px;
}

#shortDescription .accordion-header {
    max-width: 40%;
    padding: 10px;
    cursor: pointer;
    border: none;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}

#shortDescription .accordion-content {
    padding: 10px;
    background-color: #fafafa;
    border-top: 1px solid #ddd;
    display: none;
}

    #shortDescription .accordion-content.active {
        display: block;
    }

#shortDescription .product-details {
    width: 50%;
    gap: 10px;
    font-size: 14px;
}

#shortDescription .product-detail-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #ddd;
}

    #shortDescription .product-detail-row:nth-child(odd) {
        background-color: #f9f9f9;
    }

    #shortDescription .product-detail-row:nth-child(even) {
        background-color: #ffffff;
    }

.feature-category {
    font-weight: bold;
    flex: 1;
}

.feature-detail {
    flex: 2;
    text-align: left;
}

/* Product Details */
.product_details h4 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
}

.product_details h5 {
    margin-top: .7rem;
    font-size: 1rem;
    line-height: 22px;
    font-weight: 500;
}

.product_details p {
    margin-top: .7rem;
    font-size: .94rem;
    color: #756F6F;
    line-height: 22px;
}

    .product_details p:after {
        content: attr(data-footnote);
        display: block;
        margin-top: 1em;
        color: #666;
        font-size: 0.875em;
    }

.product_image {
    float: right;
    margin-left: 1rem;
    margin-top: 1rem;
}

    .product_image img {
        width: 340px;
        height: auto;
        background-color: #faf9f700;
        object-fit: contain;
        padding: 1px;
    }

.product-wrapper h4,
.suggested-products h4,
.materials h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2d3e50;
    text-align: left;
}

/* Suggested Products */
.suggested-products {
    margin-top: 20px;
    margin-bottom: 30px;
}

    .suggested-products h4 {
        margin-bottom: 20px;
    }

.suggested-products-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

    .suggested-products-list.has-desc {
        grid-template-columns: repeat(2, 1fr);
    }

.suggested-products .product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
}

    .suggested-products .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

.suggested-products .product-card-content {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.suggested-products .product-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.suggested-products.case-study .product-image {
    object-fit: cover;
}

.suggested-products .product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.suggested-products .product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #333;
    line-height: 1.3;
}

.suggested-products .product-description {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
}

/* Summary Blocks */
.summary-block {
    margin-bottom: 40px;
}

    .summary-block .row {
        display: flex;
        align-items: center;
    }

    .summary-block .content {
        padding-right: 20px;
    }

    .summary-block h2 {
        color: #333;
        font-size: 1.5rem;
        margin-bottom: 15px;
        font-weight: 500;
    }

    .summary-block p {
        color: #666;
        line-height: 1.6;
    }

    .summary-block .image-container {
        text-align: right;
        padding-left: 15px;
    }

    .summary-block .key-image {
        max-width: 100%;
        height: auto;
        border-radius: 4px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .summary-block:hover {
        background-color: #f9f9f9;
        transition: background-color 0.3s ease;
    }

/* FAQ Section */
#commercial-faq {
    margin-top: 40px;
    color: #333;
    padding: 0 15px;
}

    #commercial-faq h4 {
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 20px;
        color: #2d3e50;
        text-align: left;
    }

    #commercial-faq .accordion-button-container {
        width: 100%;
        padding: 12px 15px;
        background-color: transparent;
        color: #555;
        font-size: 1rem;
        font-weight: 400;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 1px solid #55555561;
        border-radius: 0;
        background-color: #f8f9fa;
    }

        #commercial-faq .accordion-button-container:hover {
            background-color: #e9ecef;
        }

    #commercial-faq .accordion-question {
        flex: 1;
    }

    #commercial-faq .dropdown-icon {
        font-size: 14px;
        color: inherit;
    }

    #commercial-faq .accordion-item {
        margin-bottom: 8px;
    }

    #commercial-faq .accordion-body {
        padding: 10px 15px;
        background-color: #ffffff;
        font-size: 0.95rem;
        line-height: 1.5;
        color: #555;
        border-bottom: 1px solid #55555561;
        display: none;
    }

    #commercial-faq .accordion-item.active .accordion-body {
        display: block;
    }

    #commercial-faq .dropdown-icon i {
        font-size: 18px;
    }

/* Discontinued Banner */
.discontinued-banner {
    background: #e9f4ff;
    border: 1px solid #74b4ff;
    border-left: 4px solid #2680eb;
    padding: 10px 12px;
    margin: 16px 0;
    position: relative;
}

.discontinued-content {
    padding-right: 40px;
    position: relative;
}

.discontinued-icon {
    position: absolute;
    right: 4px;
    color: #2680eb;
    font-size: 1.3rem;
    line-height: 1;
}

.discontinued-text {
    color: #0d3a5c;
    font-size: 0.95rem;
    white-space: nowrap;
}

.replacement-link {
    color: #2680eb;
    text-decoration: none;
}

/* Utilities */
.toast-notification {
    position: fixed;
    top: 30px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    display: none;
    z-index: 1000;
    animation: slideIn 0.5s, fadeOut 0.5s 2.5s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

    .toast-notification.show {
        display: flex;
        align-items: center;
    }

    .toast-notification i {
        margin-right: 10px;
        color: #4CAF50;
    }

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.fa-spinner {
    color: #007bff;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MEDIA QUERIES - CONSOLIDATED
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .text-overlay {
        backdrop-filter: none;
    }
}

@media (min-width: 1220px) {
    #product_range .product-list .split-image img {
        object-position: left;
    }
}

@media (max-width: 1619px) {
    #menu-links {
        max-width: 1120px;
    }

    .product-list .card:not(.card-image) {
        padding: .5rem;
    }

    #listViewBtn {
        display: none !important;
    }

    .product-list .row.list-view {
        display: flex;
        flex-wrap: wrap;
    }

    .product-list .list-view .card {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .product-list .list-view .card-image {
        width: 100% !important;
        height: 200px !important;
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
    }

    .product-list .list-view .card-body {
        padding: 0.3rem !important;
    }

    .product-list .list-view .tags {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        margin-top: 0 !important;
    }

    .product-list .list-view .col-12,
    .product-list .list-view .col-sm-6,
    .product-list .list-view .col-lg-4,
    .product-list .list-view .col-xl-3 {
        width: 25% !important;
        max-width: 25% !important;
        flex: 0 0 25% !important;
    }
}

@media (max-width: 1400px) {
    .suggested-products-list {
        grid-template-columns: repeat(3, 1fr);
    }

        .suggested-products-list.has-desc {
            grid-template-columns: repeat(2, 1fr);
        }
}

@media (max-width: 1300px) {
    .back-btn {
        float: none !important;
        margin-top: 1rem;
    }
}

@media (max-width: 1220px) {
    #product_range #residential_range .product-list .split-image-container {
        width: 100%;
    }

    #product_range .product-list .product-card-split {
        flex-direction: column;
        min-height: 380px;
        height: auto;
    }

    #product_range .product-list .split-image img {
        object-position: top;
    }

    #product_range .product-list .split-image-container {
        height: 230px;
        width: 100%;
        min-height: 180px;
    }

    #product_range .product-list .split-image {
        position: relative;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }

    #product_range .product-list .split-content {
        width: 100%;
        padding: 20px;
        flex: 1;
    }

    #product_range .product-list .title {
        font-size: 1.125rem;
    }

    #product_range .product-list .description {
        font-size: 0.875rem;
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .detailed-modal .spec-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .suggested-products-list {
        grid-template-columns: repeat(2, 1fr);
    }

        .suggested-products-list.has-desc {
            grid-template-columns: repeat(2, 1fr);
        }

    .product-list .list-view .col-12,
    .product-list .list-view .col-sm-6,
    .product-list .list-view .col-lg-4,
    .product-list .list-view .col-xl-3,
    .product-list .card-view .col-12,
    .product-list .card-view .col-sm-6,
    .product-list .card-view .col-lg-4,
    .product-list .card-view .col-xl-3 {
        width: 33.333% !important;
        max-width: 33.333% !important;
        flex: 0 0 33.333% !important;
    }
}

@media (max-width: 768px) {
    #topsection {
        height: min(400px, 70vh);
        min-height: min(500px, 70vh);
        padding: .3rem;
        background-position: center;
    }

    .landing {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .front-text {
        font-size: 18px;
    }

    .text-overlay {
        padding: 1rem;
    }

    .tile-section {
        font-size: 1.6rem;
        letter-spacing: .5px;
        margin-bottom: .4rem;
        padding: 0px;
    }

    .description-container {
        padding: 15px;
    }

    .description-text {
        font-size: 17px;
        text-align: left;
    }

    .breadcrumb-wrapper{
        padding: 0.7rem 0 0.4rem 0;
    }

    .breadcrumb {
        line-height: 1.25rem;
    }

    #menu-links .col-md-9 {
        padding-left: 10px;
    }
      #menu-links .col-md-3 {
        padding-right: 10px;
    }

    .filters-link:not(.back-btn) {
        margin-top: 0rem;
    }

    #product_range .product-list .split-image-container {
        height: auto;
    }

    #product_range .product-list .split-image img {
        height: 290px;
        object-position: top;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .products-tabs {
        flex-wrap: wrap;
        overflow-x: auto;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .products-tab {
        flex: 0 0 auto;
        min-width: 130px;
        white-space: nowrap;
        font-size: 14px;
        padding: 12px 15px;
    }

    .products-grid .product-image-container {
        height: 140px;
    }

    .products-grid .product-title {
        font-size: 15px;
        padding: 12px 10px;
    }

    .products-grid .product-key-specs {
        padding: 10px 12px;
    }

    .products-grid .spec-item {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .product-wrapper .form-control {
        font-size: 16px;
    }

    .product-list .list-view .card {
        flex-direction: column;
    }

    .filters-btn {
        margin-top: 1rem;
    }

    .product-list .list-view .card-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .product-list .list-view .tags {
        position: static;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .product-list .list-view .card-body {
        min-height: auto;
    }

    #linkedProducts .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    #linkedProducts .modal-content-grid {
        grid-template-columns: 1fr;
    }

    #linkedProducts .modal-image-container {
        height: 150px;
    }

    #linkedProducts .products-tabs {
        flex-wrap: wrap;
        overflow-x: auto;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    #linkedProducts .products-tab {
        flex: 0 0 auto;
        min-width: 130px;
        white-space: nowrap;
    }

    .detailed-modal .modal-top-section {
        flex-direction: column;
    }

    .detailed-modal .modal-image-column,
    .detailed-modal .modal-desc-column {
        width: 100%;
    }

    .detailed-modal .modal-image-column {
        margin-bottom: 20px;
    }

    .detailed-modal .modal-image-container {
        height: 160px;
    }

    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .view-toggle {
        display: none !important;
    }

    .action-buttons {
        position: relative;
        top: 0;
        flex-direction: column;
        width: 100%;
    }

        .action-buttons .btn {
            width: 100%;
            margin-right: 0;
            justify-content: left;
        }

            .action-buttons .btn:last-child {
                margin-bottom: 0;
            }

    .suggested-products-list {
        grid-template-columns: 1fr;
    }

        .suggested-products-list.has-desc {
            grid-template-columns: 1fr;
        }

    .suggested-products .product-image {
        width: 100px;
        height: 100px;
    }

    .controllers-buttons {
        overflow-x: auto;
        padding-bottom: 15px;
        align-content: center;
        flex-wrap: wrap;
    }

    .controller-tab {
        white-space: nowrap;
    }

    .controller-grid {
        grid-template-columns: repeat(auto-fill, minmax(calc(50% - 10px), 1fr));
        gap: 15px;
    }

    .controller-category {
        padding: 20px 15px;
    }

    .subcategory-title {
        font-size: 18px;
    }

    .subcategory-desc {
        font-size: 14px;
    }

    .product_image {
        float: none;
        text-align: center;
        margin-left: 0rem;
        margin-top: 1rem;
        margin-bottom: .5rem;
    }

    .product_details h4 {
        font-size: 1.5rem;
    }

    .product_details h5 {
        margin-top: .7rem;
        font-size: 1rem;
        line-height: 20px;
    }

    .product_details p {
        margin-top: .5rem;
        font-size: .93rem;
        color: #756F6F;
        line-height: 21px;
    }

    #commercial-faq .accordion-button-container {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    #commercial-faq .accordion-body {
        font-size: 0.85rem;
    }

    .btn-outline-secondary {
        font-size: .92rem;
    }

    .features-header {
        background-color: #474e55;
        color: #ffff;
    }

        .features-header:hover h5,
        .features-header:hover .toggle-btn {
            color: #ffff;
        }

        .features-header h5 {
            color: #ffff;
        }

    .group-one {
        padding-left: 0px;
    }

    .group-grid {
        grid-template-columns: 2fr;
        gap: 16px;
    }

    .section-content {
        padding-left: 16px;
    }

    .spec-row {
        flex-direction: column;
        gap: 4px;
    }

    .spec-label {
        width: 100%;
    }

    .discontinued-content {
        padding-right: 0;
    }

    .discontinued-icon {
        top: 0px;
        right: 0px;
        font-size: 1.2rem;
    }

    .discontinued-text {
        white-space: normal;
        font-size: 0.9rem;
    }

    .product-list .list-view .col-12,
    .product-list .list-view .col-sm-6,
    .product-list .list-view .col-lg-4,
    .product-list .list-view .col-xl-3,
    .product-list .card-view .col-12,
    .product-list .card-view .col-sm-6,
    .product-list .card-view .col-lg-4,
    .product-list .card-view .col-xl-3 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }

    #productData.list-view .col-md-6 {
        width: 100%;
        padding: 0 10px;
    }

    #productData.list-view .card {
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
    }

    #productData.list-view .card-image-wrapper {
        width: 100%;
        margin-bottom: 10px;
    }

    #productData.list-view .card-footer {
        display: none;
    }

    .summary-block .row {
        flex-direction: column-reverse;
    }

    .summary-block .content {
        padding-right: 0;
        margin-top: 20px;
    }

    .summary-block .image-container {
        text-align: center;
        padding-left: 0;
    }
}

@media (max-width: 576px) {
    .text-overlay{
        padding: 0px;
    }

    .description-text {
        font-size: 16px;
    }

    .enquiry-btn, .usefilters-btn {
        font-size: 0.8rem;
        padding: .5em 0.95em;
    }

    #product_range .product-list .product-card-split {
        min-height: 320px;
    }

    #product_range .product-list .split-image-container {
        height: auto;
        min-height: 140px;
    }

    #product_range .product-list .split-content {
        padding: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .products-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .filter-options select {
        width: 100%;
    }

    .products-grid .product-image-container {
        height: 120px;
    }

    #linkedProducts .products-grid {
        grid-template-columns: 1fr;
    }

    .detailed-modal .spec-grid-container {
        grid-template-columns: 1fr;
    }

    .related-products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fullscreen-image-content {
        padding: 30px 10px;
    }

    .fullscreen-image-close {
        top: 10px;
        right: 10px;
    }

    .product-list .list-view .col-12,
    .product-list .list-view .col-sm-6,
    .product-list .list-view .col-lg-4,
    .product-list .list-view .col-xl-3,
    .product-list .card-view .col-12,
    .product-list .card-view .col-sm-6,
    .product-list .card-view .col-lg-4,
    .product-list .card-view .col-xl-3 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    #shortDescription .product-details,
    #shortDescription .product-detail-row strong {
        width: 100%;
    }

    #shortDescription .product-detail-row {
        align-items: flex-start;
        align-self: center;
    }
}

@media (max-width: 480px) {
    .controller-grid {
        grid-template-columns: 1fr;
    }

    .subcategory-title {
        font-size: 17px;
    }
}
