/* Set all list styles to none */

#m_content div.products_home {
	display: block;
	overflow: auto;
	width: auto;
	height: auto;
}

.me-theme-r #m_content div.products_home {
    overflow: initial;
}

#m_content div.products_home ul, 
#m_content div.products_home ul li,
#m_content div.products_icon ul, 
#m_content div.products_icon ul li {
    margin: 0;
    padding: 0;
    list-style: none;
    display: block;
    float: left;
}


/* BOXES (the content exposed by the tab) */

/* Style all boxes  */
#m_content div.products_home ul.box,
#m_content div.products_icon ul.box {
	background-color: white;
	min-height: 170px;
	padding: 5px;
}

/* PRODUCT LINKS */
#m_content div.products_home ul.box a,
#m_content div.products_icon ul.box a  {
    display: block;
    float: left;
    width: 120px;
    min-height: 32px;
    padding: 120px 0px 0px 0px;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    text-decoration: none;
    margin: 10px;
    background-repeat:no-repeat;
    color: #666;
}

#m_content div.products_home ul.box a:hover,
#m_content div.products_icon ul.box a:hover { color: red; }

#m_content ul.box a.A1 { background-image: url('/images/global/products_home_appliances.jpg');   background-position: 0px 0px;    }
#m_content ul.box a.A2 { background-image: url('/images/global/products_home_appliances.jpg');   background-position: -120px 0px; }  
#m_content ul.box a.A3 { background-image: url('/images/global/products_home_appliances.jpg');   background-position: -240px 0px; }
#m_content ul.box a.A4 { background-image: url('/images/global/products_home_appliances.jpg');   background-position: -360px 0px; }
#m_content ul.box a.A5 { background-image: url('/images/global/products_home_appliances.jpg');   background-position: -480px 0px; }
#m_content ul.box a.A6 { background-image: url('/images/global/products_home_appliances.jpg');   background-position: -600px 0px; }
#m_content ul.box a.A7 { background-image: url('/images/global/products_home_appliances.jpg');   background-position: -720px 0px; }
#m_content ul.box a.A8 { background-image: url('/images/global/products_home_appliances.jpg');   background-position: -840px 0px; }
#m_content ul.box a.A9 {
    background-image: url('/images/global/products_home_appliances.jpg');
    background-position: -960px 0px;
}
#m_content ul.box a.A10 {
    background-image: url('/images/global/products_home_appliances.jpg');
    background-position: -1080px 0px;
}

#m_content ul.box a.B1 { background-image: url('/images/global/products_building_solutions.jpg');   background-position: 0px 0px; }
#m_content ul.box a.B2 { background-image: url('/images/global/products_building_solutions.jpg');   background-position: -120px 0px;  }
#m_content ul.box a.B3 { background-image: url('/images/global/products_building_solutions.jpg');   background-position: -240px 0px;  }
#m_content ul.box a.B4 { background-image: url('/images/global/products_building_solutions.jpg');   background-position: -360px 0px;  }
#m_content ul.box a.B5 { background-image: url('/images/global/products_building_solutions.jpg');   background-position: -480px 0px;  }
#m_content ul.box a.B6 {
    background-image: url('/images/global/products_building_solutions.jpg');
    background-position: -600px 0px;
}
#m_content ul.box a.B7 {
    background-image: url('/images/global/products_building_hvrf.jpg');
}

#m_content ul.box a.C1 { background-image: url('/images/global/products_specialist_products.jpg');   background-position: 0px 0px;}
#m_content ul.box a.C2 { background-image: url('/images/global/products_specialist_products.jpg');   background-position: -120px 0px; }
#m_content ul.box a.C3 { background-image: url('/images/global/products_specialist_products.jpg');   background-position: -240px 0px; }
#m_content ul.box a.C4 { background-image: url('/images/global/products_specialist_products.jpg');   background-position: -360px 0px; }


div.products_home .totalhome div.intro {
	height: 514px;
	width: 960px;
	background-image: url('/images/home/totalhome.jpg');
	background-position: left left;
	background-repeat: no-repeat;
}
div.products_home .totalhome h1 {
    padding-top: 30px;
    text-align: center;
    font-size: 2.5rem;
}
div.products_home .totalhome h3 {
    padding-top: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 2.5rem;
}
div.products_home .totalhome h2 {
	line-height: 1.8em;
	font-weight: normal;
	font-size: 16px;
    color: #000;
}



div.products_home .header_wrapper {
    border: 1px solid #ddd;
    min-height: 20px;
    padding: 20px 25px 20px 25px;
    width: 908px;
    overflow: hidden;
    position:relative;
    background: #eee;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f1f1f1', endColorstr='#eeeeee'); 
    background: -webkit-gradient(linear, left top, left bottom, from(#f1f1f1), to(#eeeeee));
    background: -webkit-linear-gradient(top,  #f1f1f1,  #eeeeee);
    background: -moz-linear-gradient(top,  #f1f1f1,  #eeeeee);
    background: -ms-linear-gradient(top,  #f1f1f1,  #eeeeee);
    background: -o-linear-gradient(top,  #f1f1f1,  #eeeeee);
    background: linear-gradient(top,  #f1f1f1,  #eeeeee);
    box-shadow: 0 0 4px #eee;
}
div.products_home .header_wrapper h1 {
    margin-bottom: 0px;
}
div.products_home .header_wrapper p {
    font-size:16px;
    line-height:1.5em;
    margin-bottom: 0px;
}
div.products_home .header_wrapper p:first-child,
div.products_home .header_wrapper p.first {
    margin:0px;   
}
    
div.products_home .description_wrapper {
	border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    min-height: 50px;
    overflow: hidden;
    box-shadow: 0 0 4px #eee;
    margin-bottom: 20px;
}
div.products_home .description_wrapper .section {
    position: relative;
    min-height: 50px;
    margin: 0px;
    padding: 25px;
    width: 908px;
    background-image: url('/images/section_bg_full.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    overflow:auto;
}
div.products_home .description_wrapper .section:first-child,
div.products_home .totalhome .description_wrapper .section.first {
    background: none;    
}
    div.products_home .description_wrapper div.section > h2:first-child {
        margin: 0px;
    }

/*commercial section on Residential site */
.commercial-solutions-section {
    padding: 40px 20px;
    background-color: #fff;
}

    .commercial-solutions-section h2 {
        font-size: 2.2rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 25px;
        text-align: left;
    }

    .commercial-solutions-section > p {
        font-size: 1.2rem;
        color: #666;
        line-height: 1.6;
    }

    .commercial-solutions-section #product_range h4 {
        font-size: 1.8rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 30px;
        display: block !important;
    }

    .commercial-solutions-section #product_range .container-fluid {
        padding-top: 0;
        padding-bottom: 20px;
    }

    .commercial-solutions-section #product_range .product-list .row {
        display: flex;
        flex-wrap: wrap;
    }

    .commercial-solutions-section #product_range .product-list .col-lg-6,
    .commercial-solutions-section #product_range .product-list .col-md-6 {
        display: flex;
    }

    .commercial-solutions-section #product_range .product-list .card-link {
        display: flex;
        width: 100%;
        text-decoration: none;
        color: inherit;
    }

    .commercial-solutions-section #product_range .product-list .product-card-split {
        display: flex;
        flex-direction: column;
        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%;
        min-height: 380px;
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .commercial-solutions-section #product_range .product-list .split-image-container {
        height: 230px;
        width: 100%;
        min-height: 180px;
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }

    .commercial-solutions-section #product_range .product-list .split-image {
        position: relative;
        width: 100%;
        height: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
        background: #f8f9fa;
    }

        .commercial-solutions-section #product_range .product-list .split-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top;
            transition: transform 0.3s ease;
        }

    .commercial-solutions-section #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%);
    }

    .commercial-solutions-section #product_range .product-list .split-content {
        width: 100%;
        padding: 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .commercial-solutions-section #product_range .product-list .content-inner {
        display: flex;
        flex-direction: column;
        gap: 12px;
        height: 100%;
    }

    .commercial-solutions-section #product_range .product-list .title {
        font-size: 1.4rem;
        font-weight: 600;
        color: #1a1a1a;
        margin: 0;
        line-height: 1.3;
    }

    .commercial-solutions-section #product_range .product-list .description {
        font-size: 1.2rem;
        color: #4b5563;
        line-height: 1.5;
        margin: 0;
        flex-grow: 1;
    }

    .commercial-solutions-section #product_range .product-list .learn-more {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #ad974f;
        font-weight: 500;
        font-size: 1.2rem;
        margin-top: auto;
    }

    .commercial-solutions-section #product_range .product-list .arrow-icon {
        fill: currentColor;
        transition: transform 0.3s ease;
    }

    /* Hover Effects */
    .commercial-solutions-section #product_range .product-list .product-card-split:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
    }

        .commercial-solutions-section #product_range .product-list .product-card-split:hover .split-image img {
            transform: scale(1.05);
        }

        .commercial-solutions-section #product_range .product-list .product-card-split:hover .learn-more {
            color: #911313;
        }

        .commercial-solutions-section #product_range .product-list .product-card-split:hover .arrow-icon {
            transform: translateX(4px);
        }

    /* Secondary Cards Section */
    .commercial-solutions-section .keylinks-secondary {
       
        margin-top: 50px;
    }

        .commercial-solutions-section .keylinks-secondary .row {
            display: flex;
            flex-wrap: wrap;
        }

        .commercial-solutions-section .keylinks-secondary .col-md-2 {
            padding: 0 10px;
            margin-bottom: 20px;
            flex: 0 0 25%;
            max-width: 25%;
        }

        .commercial-solutions-section .keylinks-secondary .secondary-card-link {
            text-decoration: none;
            color: inherit;
            display: block;
            height: 100%;
        }

        .commercial-solutions-section .keylinks-secondary .secondary-card {
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 15px;
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            align-items: center;
            min-height: 100px;
            max-height: 100px;
        }

        .commercial-solutions-section .keylinks-secondary .secondary-image {
            width: 90px;
            height: 90px;
            flex-shrink: 0;
            margin-right: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            .commercial-solutions-section .keylinks-secondary .secondary-image img {
                max-width: 80px;
                max-height: 80px;
                object-fit: contain;
            }

        .commercial-solutions-section .keylinks-secondary .secondary-card h5 {
            font-size: 1.2rem;
            font-weight: 600;
            color: #333;
            margin: 0;
            line-height: 1.3;
            flex: 1;
            text-align: left;
        }

        .commercial-solutions-section .keylinks-secondary .secondary-card:hover {
            border-color: #ed1c24;
        }

        /* Remove the old view button and hover effects */
        .commercial-solutions-section .keylinks-secondary .view-btn {
            display: none;
        }

/* Responsive Design */

/* Mobile Layout */
@media (max-width: 768px) {
    .commercial-solutions-section {
        padding: 30px 15px;
    }

        .commercial-solutions-section h2 {
            font-size: 1.8rem;
        }

        .commercial-solutions-section > p {
            font-size: 1.1rem;
        }

        .commercial-solutions-section #product_range h4 {
            font-size: 1.5rem;
        }

        .commercial-solutions-section #product_range .product-list .product-card-split {
            min-height: 320px;
        }

        .commercial-solutions-section #product_range .product-list .split-image-container {
            height: auto;
            min-height: 140px;
        }

        .commercial-solutions-section #product_range .product-list .split-content {
            padding: 15px;
        }

        .commercial-solutions-section #product_range .product-list .title {
            font-size: 1.3rem;
        }

        .commercial-solutions-section #product_range .product-list .description {
            font-size: 1.2rem;
        }

        /* Secondary cards mobile */
        .commercial-solutions-section .keylinks-secondary .col-md-2 {
            flex: 0 0 50%;
            max-width: 50%;
        }

        .commercial-solutions-section .keylinks-secondary .secondary-card {
            padding: 10px 10px;
        }

        .commercial-solutions-section .keylinks-secondary .secondary-image {
            width: 100px;
            height: 100px;
            padding: 8px;
        }

            .commercial-solutions-section .keylinks-secondary .secondary-image img {
                max-width: 100px;
                max-height: 100px;
            }

        .commercial-solutions-section .keylinks-secondary .secondary-card h5 {
            font-size: 1.3rem;
        }
}

@media (max-width: 576px) {
    .commercial-solutions-section .keylinks-secondary .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* MOBILE SITE */

.me-theme-r #m_content div.products_home ul li,
.mob #m_content div.products_home ul li {
    width: auto;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.me-theme-r #m_content div.products_home .box,
.mob #m_content div.products_home .box {
    overflow: visible;
}
    .me-theme-r #m_content div.products_home .box a,
    .mob #m_content div.products_home .box a {
        float: none;
        margin: 15px auto;
        min-height: 35px;
    }

.mob div.products_home .header_wrapper {
    width: auto;
    padding: 10px 5px 20px 5px;
    background: none;
    border: none;
}
.me-theme-r div.products_home .description_wrapper .section,
.mob div.products_home .description_wrapper .section {
    width: auto;
    padding: 10px 5px 20px 5px;
    overflow: hidden;
}
.mob div.products_home .totalhome div.intro {
    width: auto;
    height: auto;
    background: none;
    padding: 10px 5px 20px 5px;
}

.mob div.products_home .totalhome h1,
.mob div.products_home .totalhome .intro h3 {
    padding: 0;
    margin:0;
    text-align: left;
}


.me-theme-r #m_content div.products_home ul,
.me-theme-r #m_content div.products_icon ul,
.mob #m_content div.products_home ul,
.mob #m_content div.products_icon ul {
    float: none;
    padding: 0;
    margin-top: 1%;
}
    .me-theme-r #m_content div.products_home ul li,
    .me-theme-r #m_content div.products_icon ul li,
    .mob #m_content div.products_home ul li,
    .mob #m_content div.products_icon ul li {
        float: none;
        padding: 0;
    }

    .me-theme-r #m_content div.products_home ul.box li,
    .me-theme-r #m_content div.products_icon ul.box li,
    .mob #m_content div.products_home ul.box li,
    .mob #m_content div.products_icon ul.box li {
        margin: 1%;
        padding: 1%;
        border: 1px solid #ddd;
        border-radius: 5px;
        display: block;
        width: 100%;
        float: left;
    }

    .me-theme-r #m_content div.products_home ul.box a,
    .mob #m_content div.products_icon ul.box a {
        float: none;
        margin: 10px auto;
    }


.me-theme-r div.products_home .description_wrapper,
.me-theme-r div.products_home .header_wrapper,
.me-theme-r div.products_icon #prodteaser_wrapper,
.mob div.products_home .description_wrapper,
.mob div.products_home .header_wrapper,
.mob div.products_icon #prodteaser_wrapper {
    border: none;
    box-shadow: none;
}
    .me-theme-r div.products_home .description_wrapper .section,
    .mob div.products_home .description_wrapper .section {
        background: none;
    }
    .me-theme-r div.products_icon #prodteaser_wrapper .header_bar,
    .mob div.products_icon #prodteaser_wrapper .header_bar {
        border: 1px solid #cfcfcf;
    }



/*--  Mob special  --*/
@media screen and (max-width: 470px) {  /* std phones portrait */

    .me-theme-r #m_content div.products_home ul.box li,
    .me-theme-r #m_content div.products_icon ul.box li,
    .mob #m_content div.products_home ul.box li,
    .mob #m_content div.products_icon ul.box li {
        width: 45% !important;
    }
        .me-theme-r #m_content div.products_home ul.box li:nth-child(odd),
        .me-theme-r #m_content div.products_icon ul.box li:nth-child(odd),
        .me-theme-r a.browse_all:nth-child(odd),
        .mob #m_content div.products_home ul.box li:nth-child(odd),
        .mob #m_content div.products_icon ul.box li:nth-child(odd),
        .mob a.browse_all:nth-child(odd) {
            clear: both;
        }
    
}
@media screen and (min-width: 471px) and (max-width: 568px) {   /* std phones to iPhone 5 Landscape */

    .me-theme-r #m_content div.products_home ul.box li,
    .me-theme-r #m_content div.products_icon ul.box li,
    .mob #m_content div.products_home ul.box li,
    .mob #m_content div.products_icon ul.box li {
        width: 29.5% !important;
    }
        .me-theme-r #m_content div.products_home ul.box li:nth-child(3n),
        .me-theme-r #m_content div.products_icon ul.box li:nth-child(3n),
        .mob #m_content div.products_home ul.box li:nth-child(3n),
        .mob #m_content div.products_icon ul.box li:nth-child(3n) {
            margin: 1% 0 1% 1% !important;
        }
        .me-theme-r #m_content div.products_home ul.box li:nth-child(3n+1),
        .me-theme-r #m_content div.products_icon ul.box li:nth-child(3n+1),
        .mob #m_content div.products_home ul.box li:nth-child(3n+1),
        .mob #m_content div.products_icon ul.box li:nth-child(3n+1) {
            margin: 1% 1% 1% 0 !important;
            clear: both;
        }
}
@media screen and (min-width: 569px) {    /* larger devices to Desktop */

    .me-theme-r #m_content div.products_home ul.box li,
    .me-theme-r #m_content div.products_icon ul.box li,
    .mob #m_content div.products_home ul.box li,
    .mob #m_content div.products_icon ul.box li {
        width: 21.1% !important;
    }
        .me-theme-r #m_content div.products_home ul.box li:nth-child(4n),
        .me-theme-r #m_content div.products_icon ul.box li:nth-child(4n),
        .mob #m_content div.products_home ul.box li:nth-child(4n),
        .mob #m_content div.products_icon ul.box li:nth-child(4n) {
            margin: 1% 0 1% 1% !important;
        }
        .me-theme-r #m_content div.products_home ul.box li:nth-child(4n+1),
        .me-theme-r #m_content div.products_icon ul.box li:nth-child(4n+1),
        .mob #m_content div.products_home ul.box li:nth-child(4n+1),
        .mob #m_content div.products_icon ul.box li:nth-child(4n+1) {
            margin: 1% 1% 1% 0 !important;
            clear: both;
        }
}