
.containerHome {
    text-align: center;
    width: 100%;
    position: relative;
    padding-bottom: 79px;
    padding-top: 70px;
}




/* Search Bar Styles */
.search-bar {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Position relative to contain the loop icon */
    margin-bottom: 33px;
    max-width: 479px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    padding: 10px 10px 10px 44px;
    font-size: 0.875rem;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    padding-right: 40px;
    height: 48px;
    color: #7C8084;
    background-position: 7px 12px;
    background-color: #FFF;
    position: relative;
}

    /* Adding shadow effect on hover */
    .search-input:hover {
        border-color: #a8b0b6; /* Optional: Change border color on hover */
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    }

    /* Adding shadow effect when focused */
    .search-input:focus {
        border-color: #4d90fe; /* Change border color on focus */
        box-shadow: 0 0 8px rgba(72, 133, 237, 0.6); /* Blue shadow on focus */
    }

/* Search Buttons */
.search-buttons {
    margin: 0 14px 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-btn {
    padding: 10px 20px;
    font-size: 0.8rem;
    background-color: #F4F4F4;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s ease;
    color: #3c4043;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 18%;
    gap: 10px;
    font-family: 'SF Pro Regular';
    font-weight: bold;
}

    .search-btn:hover {
        box-shadow: 0 0px 2px rgb(0 0 0 / 11%), 0 1px 10px rgb(0 0 0 / 6%);
        background-color: #f8f9fa;
        color: #202124;
    }

.content_body_home .search-buttons .search-btn.lg1 {
    text-transform: uppercase;
    border-radius: 21.96px !important;
    background-color: #ffffff !important;
    border: 1px solid #D5DFE4 !important;
}

.search-btn.lg {
    font-size: 1.9rem;
    position: relative;
    width: 48.7% !important;
    height: 96px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    min-width: 360px;
}

@media (max-width: 768px) {
    .search-btn.lg {
        min-width: 100% !important;
    }

    .btn-buyDeviceWithInstallment {
        min-width: 100% !important;
    }
}


.search-bar svg {
    position: absolute;
    left: 14px;
    z-index: 333;
    top: 15px;
}

.h_80 {
    height: 84px;
}

.search-btn.lg.h_80 {
    padding: 10px;
    text-align: left;
}

.search-buttons .search-btn .img {
    position: relative;
    width: 41px;
    height: 40px;
    background-image: url(../imgs/bag.png);
    background-repeat: no-repeat;
}

.search-buttons .search-btn:nth-child(1) .img {
    background-image: url(../imgs/buy.svg);
}

.search-buttons .search-btn:nth-child(2) .img {
    background-image: url(../imgs/bag.svg);
}

.preorder .img {
    background-image: url(../imgs/preorder.svg) !important;
    background-size:contain;

}

.img_ico {
    background-repeat: no-repeat;
    width: 22px;
    height: 22px;
    background-size: cover;
    position: absolute;
    top: 8px;
    left: 162px;
}

.search-input::placeholder {
    color: #A9A9A9;
}

.search-bar .iconchart {
    right: 15px;
    top: 12px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    background-image: url(../imgs/icon.svg);
    position: absolute
}

img.ico {
    display: block;
    margin: 0px auto 5px;
    height: 32px;
}

.w_182_63 .search-btn {
    min-width: 184px; /*182px*/
    height: 63px;
}

.w_182_63 img {
    max-height: 24px;
}
/* Footer Styles */
/*footer {
    width: 100%;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    left: 0;
}*/


/*.logo {
    padding-top: 80px;
}
*/
.logo img {
    width: 185px;
}



.per_line {
    margin-bottom: 35px;
}

    .per_line.search-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

.title_line {
    text-align: left;
    font-size: 1rem;
    margin-left: 8px;
    font-family: 'SF Pro Bold';
}

    .title_line.mb_10 {
        margin: 0 19px 10px;
        color: #000;
    }

.btn_seeall {
    cursor: pointer;
    font-size: 0.8rem;
    margin-right: 8px;
}

.bottom_per_line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0px 0px;
}

.d_187_99 {
    height: 99px;
    flex-direction: column;
    font-weight: normal;
}

.search-btn.lg.h_80 {
    font-size: 0.8rem;
    width: 48%; /* Set each button to take up 50% of the available width */
    margin: 5px 1%; /* Optional: Adds space between the buttons */
}

.nline svg {
    float: left;
}

.search-btn .nline {
    position: relative;
    display: block;
    width: 100%;
    font-family: 'SF Pro Regular';
    font-weight: normal;
    text-align: left;
}

    .search-btn .nline:nth-child(1) {
        height: 38px;
    }

    .search-btn .nline:nth-child(2), .search-btn .nline:nth-child(3) {
        height: 22px;
        font-weight: normal;
    }

    .search-btn .nline:nth-child(2) {
        font-family: 'SF Pro Bold';
    }

    .search-btn .nline:nth-child(1) div {
        font-size: 0.7rem;
        float: right;
        color: #4C5157;
    }

    .search-btn .nline:nth-child(2) div:nth-child(1) {
        font-size: 0.9rem;
        text-align: left;
        float: left;
        color: #4C5157;
    }

    .search-btn .nline:nth-child(2) div:nth-child(2) {
        font-size: 0.9rem;
        float: right;
        color: #4C5157;
    }

    .search-btn .nline:nth-child(3) div:nth-child(1) {
        font-size: 0.7rem;
        text-align: left;
        float: left;
        color: #4C5157;
    }

    .search-btn .nline:nth-child(3) div:nth-child(2) {
        font-size: 0.7rem;
        float: right;
        color: #4C5157;
    }

.xdevice {
    display: block;
}
/* Style for the autocomplete suggestions box */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border-top: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
    max-width: 94vw;
}

/* Style for autocomplete suggestions */
.autocomplete-suggestion {
    padding: 10px;
    cursor: pointer;
    background-color: white;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

    /* Style for images next to the suggestion text */
    .autocomplete-suggestion img {
        width: 30px;
        height: 30px;
        margin-right: 10px; /* Space between image and text */
        border-radius: 4px; /* Optional: Rounded corners for images */
    }

    /* Style for the text */
    .autocomplete-suggestion span {
        flex-grow: 1; /* Allow the text to fill available space */
        text-align: left;
    }

    /* Hover effect for suggestions */
    .autocomplete-suggestion:hover {
        background-color: #f0f0f0;
    }




/* Add to Favorite Button */
.addfavorite {
    background-color: #f8f9fa;
    border: 1px solid #f8f9fa;
    color: #202124;
    font-size: 0.875rem;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
    margin: 10px;
    transition: background-color 0.3s ease;
}

    .addfavorite:hover {
        background-color: #f1f3f4;
    }

/* Popup Overlay */
/* Overlay (dark background) */
.add-shortcut-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
    z-index: 1000; /* Ensure it sits on top of other content */
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

/* Popup Content */
.add-shortcut-popup-content {
    background-color: #fff;
    width: 400px;
    padding: 20px;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); /* Soft shadow */
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Close Button (×) */
.add-shortcut-popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #5f6368;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .add-shortcut-popup .close-btn:hover {
        color: #202124;
    }

/* Title */
.add-shortcut-popup h3 {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #202124;
    font-weight: normal;
}

/* Form Elements */
.add-shortcut-popup label {
    font-size: 0.8rem;
    margin-bottom: 8px;
    font-weight: 500;
    display: block;
}

.add-shortcut-popup select {
    width: 100%;
    border: none;
    background-color: rgb(241, 243, 244);
    border-bottom: 1px solid #474747;
    padding: 6px;
    margin-bottom: 20px;
}

.add-shortcut-popup input[type="text"]:focus, .add-shortcut-popup input[type="url"]:focus {
    border-color: #4285f4;
    box-shadow: 0 0 5px rgba(66, 133, 244, 0.3);
}

/* Button Container */
.add-shortcut-popup .popup-buttons {
    display: flex;
    justify-content: end;
    gap: 10px;
}

/* Button Styles */
.add-shortcut-popup .popup-btn {
    padding: 7px 16px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid #4285f4;
    background-color: #357ae8;
    color: #FFF;
    border-radius: 24px;
}

.add-shortcut-popup .cancel-btn {
    border: 1px solid #4285f4;
    background-color: #f1f3f4;
    color: #4285f4;
}

    .add-shortcut-popup .popup-btn:hover,
    .add-shortcut-popup .cancel-btn:hover {
        transform: scale(1.03);
    }

.hideimg {
    display: none !important;
}

.top_17 {
    top: -17px;
    position: relative;
}

.d_187_99 i {
    font-size: 1.8em;
    display: block;
    color: blue;
    margin-bottom: 12px;
}

.content_body_home {
    position: relative;
    max-width: 1019px;
    margin: 0 auto;
    display: inline-block;
}



/* Responsive Design */
@media (max-width: 768px) {


    .search-bar {
        width: 94%;
    }

    .search-btn {
        width: calc(49% - 10px);
        font-size: 0.75rem;
    }

        .search-btn.lg {
            width: calc(49% - 10px) !important;
        }

    .search-buttons {
        max-width: 94vw;
    }

    .search-btn.lg.h_80 {
        width: 98% !important;
    }
}



@media (max-width: 670px) {


    .search-btn .nline:nth-child(2) div {
        font-size: 0.8rem !important;
    }

    .xdevice {
        height: auto !important;
        padding: 10px 11px !important;
    }

    .search-btn .nline:nth-child(2) div, .search-btn .nline:nth-child(3) div {
        float: inherit !important;
        text-align: left;
    }

    .search-btn .nline:nth-child(2), .search-btn .nline:nth-child(3) {
        height: auto;
    }

    .search-btn.lg {
        font-size: 1.3rem;
    }

    .search-btn {
        padding: 10px 7px;
        box-sizing: border-box;
        flex-basis: 41%;
    }
}


@media (max-width: 598px) {
    .xdevice.search-btn.lg {
        width: 100% !important;
        margin-bottom: 15px;
        box-sizing: border-box;
        flex-basis: 100%;
    }

    .sugg.per_line.search-buttons {
        /*display: block !important;*/
    }
}
