/* JS 2909 Suggest button fix */

.suggestAll a {
    overflow: hidden;
    text-align: unset;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* End JS 2909 Suggest button fix */

/* Make sure the body and html don't introduce scroll or padding issues */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

#suggestions{
    position: absolute;
    width: 100%;
    margin: auto;
    top: 22px;
    left: 0px;
}
 
.suggestover {
    position: absolute;  
    left: 50%; 
    transform: translateX(-50%); 
    width: 100%;
    max-width: 1150px;
    height: 500px;
    background-color: #ffffff;
    color: #314C89;
    display: flex;
    flex-direction: row;
    border: 1px solid #ccc;
    overflow: hidden;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.3s ease;
    color: black;
    line-height: 2em;
    /* JS 1109 */
    margin-top:40px;
}
 

/* JS 1109 */
@media (max-width: 850px) {
    .suggestover {
        margin-top: 16px;
    }

}

.suggestover h3{
    font-size: 18px; 
    display: inline-block;
    margin: 0 0 10px 0;
    color: #314C89;
}

/* JS 1109 */

.suggestover h3{
    font-weight: 500;
}

/* Close Button */
.viewAll {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 15px;
    font-weight: bold;
    padding: 2px 8px;
    text-decoration: none; 
    color: #314C89;
}

/* Left section */
.suggestLeft {
    width: 27%;
    padding: 15px;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 500px;
}

.suggestLeft ul{
	padding-bottom: 10px;
}
	

/* Right section */
.suggestRight {
    width: 73%;
    padding: 15px;
    box-sizing: border-box;
    
    max-height: 500px;
    border-left: 1px solid #E4E4E4;
}

/* Product Grid */
.productGrid {
    overflow-y: auto;
    max-height: 500px;
    display: flex;
    flex-wrap: wrap;
    gap: 1%;
    justify-content: space-between;
}

.productItem {
    width: 24%;
    box-sizing: border-box;
    
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    height: 210px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* .productItem:hover {} */

/* Image */
.productImageWrapper {
    width: 100%;
    max-height: 180px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.productImageWrapper:hover {
    box-shadow: 0 1px 7px rgba(0,0,0,0.10);
}

.productImageWrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.zoom-img {
  overflow: hidden;
}

.zoom-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: all .5s ease;
}

.zoom-img img:hover {
  transform: scale(1.1);
}

.productText{
    margin-top: 10px;
    overflow: hidden;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #314C89;
}

.productSku{
    color: #314C89;
    text-transform: uppercase;
} 

/* OVERRIDES */
.cg-header__search{
    border-radius: 23px !important;
    margin: 0 auto !important;
    transition: all 0.3s ease !important;
}
/* JS 1109 */
@media only screen and (max-width: 850px) {
    .cg-header__search {
        overflow: unset!important;    
    }
}

.keywordHolder {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.keywordItem{
    width: auto;
    margin: 5px 5px 0 0;
    line-height: 5px;
}

.categoryHolder {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}
a.suggestTextQuery {
    color: #314C89;
    text-decoration: none;
}
.promoBanner {
    width: 90%;
    margin: 10px auto;
    text-align: center;
    cursor: pointer;
    display:none;
}

.button.button-small {
    padding: 0px 14px !important;
    margin: 0 2px !important;
}

.modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none
}

@media (max-width: 850px) {
    /* JS 1109 */
    /* .suggestover{
        top: 48px;
    } */
    .productGrid {
        height: 500px;
    }
    .promoBanner{
        display: none;
    }
    .categoryHolder {
        margin-bottom: 0px;
    }
}

@media (max-width: 768px) {
    .suggestover {
        flex-direction: column;
        width: 90%;
        height: 650px;
    }

    .suggestLeft{
        width: 100%;
        max-height: 100%;
        overflow-y: unset;
    }

    .suggestRight {
        width: 100%;
        max-height: 100%;
        border-left: none;
    }

    .productItem {
        width: 32%;
        display: none;
    }
    .productItem:nth-child(-n+3){
        display: block;
    }
    .suggestCloseBtn {
        top: 5px;
        right: 10px;
    }
    .modalOverlay {
        display: block;
        z-index: 10000;
    }
    .suggestover { 
        z-index: 10001;
    }
}
@media (max-width: 500px) {
    .productItem {
        width: 49%;
    }
    .productItem:nth-child(-n+3){
        display: none;
    }
    .productItem:nth-child(-n+2){
        display: block;
    }
}