html,
body {
    font-family: "Lexend Deca";
}

@media (min-width: 1400px) {
    .container {
        max-width: 1224px;
    }
}

.wrapper {
    padding: 64px 0;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9;
    background: white;
    transition: all 0.3s ease;
}

.main .container {
    margin-bottom: 100px;
}

.displaynone {
    display:none!important;
}

.page-header {
    margin-bottom: 15px;
}

.page-header .header-title {
    position: relative;
    flex: 2;
    z-index: 1;
    font-size: 25px;
    font-weight: 700;
    line-height: 31px;
    color: #2F80ED;
    margin-bottom: 18px;
}


.page-header .form-search .input-group {
    position: relative;
}

.page-header .form-search .input-group .input-group-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    padding: 0 18px;
    border: none;
    background-color: transparent;
    z-index: 1;
}

.page-header .form-search input {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: rgba(33, 33, 33, 0.5);
    background-color: rgba(232, 232, 232, 0.3);
    outline: none;
    box-shadow: none;
    padding-left: 56px;
    height: 60px;
    border-radius: 12px !important;
    border: 1px solid #E6E6E6;
}

.page-header .form-search input:focus {
    border-color: #2F80ED;
}

.lang-container {
    position: absolute;
    right:0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-body-color);
    width: fit-content;
}

.lang-text {
    text-transform: uppercase;
}

.navbar-nav li.lang{
    margin: 10px;
}
.navbar-nav li>a.lang-inner{
    padding: 0px;
}
.navbar-nav .dropdown-menu{
    text-align: center;
    transform: translate(0%, -2%) !important;
    top: unset !important;
    left: unset !important;
    position : fixed;
}

.mobile_menu .navbar-nav .dropdown-menu.show{
    display: flex;
    min-width: inherit;
    display: inline-block;
}

.navbar-nav li {
    display: inline-block;
    position: relative;
    z-index: 1;
    margin: 0 21px 0 10px;
}

.navbar-nav li>a {
    color: var(--text-color);
    font-weight: 400;
    display: block;
    font-size: 16px;
    text-decoration: none;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    text-transform: capitalize;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.main .admin-recommend-body {
    margin-left: -8px;
    margin-right: -8px;
    display: flex;
    flex-wrap: wrap;
}

.main .admin-recommend-body > .admin-recommend-item {
    width: 100%;
}

.main .admin-recommend-body .catalog:not(.ads) {
    cursor: pointer;
}

.main .admin-recommend-body .catalog img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.main .admin-recommend-body .catalog {
    margin: 8px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.main .admin-recommend-body .catalog .description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 12px;
    background: linear-gradient(to bottom, transparent 0%, rgb(33, 33, 33, 0.2) 30%);
}

.main .admin-recommend-body .catalog .description .name {
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    line-height: 25px;
    margin-bottom: 6px;
}

.main .admin-recommend-body .catalog .recommended {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #FF6F6E;
    border-radius: 6px;
    padding: 12px;
    color: #fff;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
}

.main .grid-catalog .catalog {
    margin: 8px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.main .grid-catalog .catalog .sponsored {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #FC9501;
    border-radius: 6px;
    padding: 12px;
    color: #fff;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
}

.main .grid-catalog .catalog .description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 12px;
    background: linear-gradient(to bottom, transparent 0%, rgb(33, 33, 33, 0.2) 30%);
}

.main .grid-catalog .catalog .description .name {
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    line-height: 25px;
    margin-bottom: 6px;
}

.hashtags {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.hashtags .tag {
    display: inline-block;
    margin-right: 5px;
    color: #fff;
}

.main .list-catalog {
    min-height:300px;
}

.main .grid-catalog {
    margin-left: -8px;
    margin-right: -8px;
}

.main .grid-catalog>.item {
    width: 100%;
}

.main .grid-catalog .catalog:not(.ads) {
    cursor: pointer;
}

.main .grid-catalog .catalog img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.main .grid-catalog .ads {
    display: block;
}

.main .grid-catalog .ads img {
    width: 100%;
    height: 181px;
    object-fit: cover;
    border-radius: 8px;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#modal-catalog .modal-content {
    border-radius: 32px;
}

#modal-catalog .modal-body {
    padding: 36px 24px;
}

#modal-catalog .modal-body .catalog-image {
    border-radius: 12px;
    overflow: hidden;
}

#modal-catalog .modal-body .catalog-image img {
    height: 500px;
    object-fit: cover;
}

#modal-catalog .modal-body .catalog-info {
    padding: 50px 0;
}

#modal-catalog .modal-body .catalog-info .name {
    font-weight: 700;
    font-size: 25px;
    line-height: 31px;
    color: #212121;
    margin-bottom: 8px;
}

#modal-catalog .modal-body .catalog-info .total-product {
    font-weight: 500;
    font-size: 20px;
    line-height: 25px;
    color: #FC9501;
    margin-bottom: 8px;
}

#modal-catalog .modal-body .catalog-info #modal-submit-button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-size: 20px;
    line-height: 25px;
    padding: 16px;
    width: 380px;
    max-width: 100%;
    background-color: #FC9501;
    color: #fff;
    border-radius: 45px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}
#modal-more-button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-size: 20px;
    line-height: 25px;
    padding: 16px;
    width: 380px;
    max-width: 100%;
    color: #FC9501;
    border-radius: 45px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

#modal-submit-button {
    bottom: 10px;
    z-index: 1000; /* 모달 이외의 콘텐츠 위에 보이도록 z-index 조정 */
}

/* 모바일 환경 */
@media (max-width: 768px) {
    #modal-submit-button {
        position: fixed;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }
}

.catalog-image {
    position: relative; /* 내부 요소들을 상대 위치로 설정하기 위해 부모 요소에 대해 상대 위치를 지정합니다. */
}

.text-overlay {
    position: absolute; /* 이미지 내부에서 절대 위치로 텍스트를 배치합니다. */
    text-align: center;
    font-weight: 500;
    top: 0; /* 이미지의 상단에 텍스트를 배치합니다. */
    left: 0; /* 이미지의 왼쪽에 텍스트를 배치합니다. */
    width: 100%; /* 부모 요소에 대한 너비를 가집니다. */
    padding: 20px; /* 텍스트 주변에 여백을 지정합니다. */
    box-sizing: border-box; /* padding 값을 요소의 너비에 포함시킵니다. */
    background-color: rgba(255, 255, 255, 0.7); /* 텍스트의 배경색을 흰색 반투명으로 설정합니다. */
}

#close-button {
    position: absolute;
    top: 36px;
    right: 36px;
}

#modal-catalog .item-product {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0px;
    margin: 8px 0px;
    align-items: center;
    width: 100%;
    min-height: 48px;
}

#modal-catalog .image-container {
    flex: 1;
}

#modal-catalog .content-product {
    flex: 3;
    margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#modal-catalog .name-product {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: var(--black);
    margin-bottom: 4px;
}

#modal-catalog .catalog-product-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

#modal-catalog .description-product {
    color: #808083;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#modal-catalog .price-product {
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    color: var(--red);
}


#horizontal-line {
    display: none;
}

#loader {
    display: none;
    /* hidden by default */
    padding: 10px;
    border-top: 1px solid #DDD;
    text-align: center;
    color: #777;
}

@-webkit-keyframes fadeInUp {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0)
    }

    to {
        opacity: 1;
        -webkit-transform: translateZ(0);
        transform: translateZ(0)
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0)
    }

    to {
        opacity: 1;
        -webkit-transform: translateZ(0);
        transform: translateZ(0)
    }
}

@-webkit-keyframes fadeOutDown {
    0% {
        opacity: 1
    }

    to {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0)
    }
}

@keyframes fadeOutDown {
    0% {
        opacity: 1
    }

    to {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0)
    }
}


.fadeUp.show {
    animation: fadeInUp 0.5s;
    -webkit-animation: fadeInUp 0.5s;
}

.fadeUp {
    animation: fadeOutDown 0.5s;
    -webkit-animation: fadeOutDown 0.5s;
}


.preloader {
    background-color: #f7f7f7;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    -webkit-transition: 0.6s;
    -o-transition: 0.6s;
    transition: 0.6s;
    margin: 0 auto;
}

.preloader .preloader-circle {
    width: 100px;
    height: 100px;
    position: relative;
    border: 3px solid transparent;
    border-top-color: #FC9501;
    z-index: 10;
    border-radius: 50%;
    -webkit-box-shadow: 0 1px 5px 0 rgba(35, 181, 185, 0.15);
    box-shadow: 0 1px 5px 0 rgba(35, 181, 185, 0.15);
    background-color: #ffffff;
    -webkit-animation: zoom 2000ms infinite ease;
    animation: zoom 2000ms infinite ease;
    -webkit-transition: 0.6s;
    -o-transition: 0.6s;
    transition: 0.6s;
}

.preloader .preloader-img {
    position: absolute;
    top: 50%;
    z-index: 200;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
    display: inline-block;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    padding-top: 6px;
    -webkit-transition: 0.6s;
    -o-transition: 0.6s;
    transition: 0.6s;
}

.preloader .preloader-img img {
    max-width: 55px;
}

.preloader .preloader-img embed {
    width: 60%;
}

.preloader .pere-text strong {
    font-weight: 800;
    color: #dca73a;
    text-transform: uppercase;
}

.shop_container {
    flex-direction: column;
    border-bottom: 1px solid #ccc;
    margin-bottom: 8px;
}

.shop_info {
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    border-top:1px solid #ccc;
}
.shop_logo {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius:50%;
    border:1px solid #ccc;
    height:100px;
    width:100px;
}
.shop_logo > img {
    width:100%;
    height:100%;
    border-radius: 50%;
}

.no-avatar {
    background: #ccc;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.shop_content {
    display:flex;
    flex-direction: column;
    justify-content: center;
    font-size: 12px;
    width: 60%;
    margin-left: 20px;
    color: var(--bs-body-color);
}

.shop_content > p {
    padding: 3px;
    margin: 0;
    word-break: break-all;
}
.shop_content .shop_name {
    font-weight: bold;
}

.shop_content .shop_address {
    color: #aaa;
    width: 100%;
}
.shop_btn > a {
    text-decoration: none;
    border-radius: 5px;
    font-size:11px;
    padding: 8px;
    border: 1px solid rgba(252, 149, 1, 1);
    color: rgba(252, 149, 1, 1);
}
.shop_btn > a:hover {
    background: rgba(252, 149, 1, 1);
    color : #ffffff;
    transition: all 0.3s ease-in;
}

.no-catalog {
    height: 35vh;
    display: flex;
    justify-content: center;
    align-items: end;
    font-size: 18px;
}

.admin-recommend-container .admin-recommend-head {
    position: relative;
    margin-bottom: 5px;
}

.admin-recommend-container .admin-recommend-title {
    font-weight: bold;
    font-size: 24px;
}
.admin-recommend-container .admin-recommend-subtitle {
    color: var(--bs-gray-500);

}

.distance-container {
    margin-top: 50px;
}

.distance-container .distance-head {
    position: relative;
}

.distance-container .distance-title {
    font-weight: bold;
    font-size: 24px;
}
.distance-container .distance-result-count {
    position: absolute;
    right: 0;
    top: 10%;
    color: var(--bs-gray-500);
}

.distance-container .distance-subtitle {
    color: var(--bs-gray-500);
}

.distance-container .distance-filter-btn {
    background-color: #F2F2F2;
    border: none;
    border-radius: 8px;
    padding: 5px;
    color: #000;
    font-size: 15px;
}
.distance-container .distance-filter-btn:hover {
    color: #FD7513;
}

.distance-container .distance-filter-btn.active {
    background-color: #FD7513;
    color: white;
}

.distance-body {
    margin: 10px 0 5px;
    position: relative;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

/* 슬라이더 바의 색 변경 */
input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(to right, rgba(252, 149, 1, 1) 0%, rgba(252, 149, 1, 1) var(--value, 0%), #F2F2F2 var(--value, 0%), #F2F2F2 100%);
    height: 8px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border: 2px solid #FD7513;
    margin-top: -8px;
    background: #fff;
    border-radius: 50%;
}

#sliderContainer {
    display:none;
    border-radius: 10px;
    position: absolute;
    width:100%;
    border: 1px solid #efefef;
    z-index: 1;
    background: #fff;
    align-items: center;
    justify-content: space-around;
    height: 95px;
}
#sliderContainer.active {
    display: flex;
}

#sliderContainer .bar-conatiner {
    display: flex;
    flex-direction: column;
    width: 70%;
    margin-top: 20px;
    position: relative;
}
.distance-custom {
    position: absolute;
    right: 0;
    color: #000;
}
.distance-custom-text {
    font-weight: bold;
    font-size: 14px;
}

#sliderContainer .bar-container-range{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 4px;
}


.kmRange {
    -webkit-appearance: none;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    height: 10px;
}
#kmRange:hover {
    opacity: 1;
}


#sliderContainer #applyButton {
    width:23%;
    background: #FD7513;
    font-weight: bold;
    color: #fff;
    padding: 12px 0;
    border: none;
    border-radius: 10px;
    font-size: 14px;
}
#kmValue {
    top:-56px;
    position: absolute;
    background-color: #4A475A;
    color: #fff;
    padding: 5px 10px;
    border-radius: 10px;
    display: none;
    white-space: nowrap;
    box-shadow: 0px 2px 4px 0px #00000014;

}
#kmValue::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #4A475A;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
}


.custom-distance-filter-btn {
    position: relative;
    display: inline-block;
}

.custom-distance-filter-btn .delete-button {
    position: absolute;
    top: -35%;
    right: -15%;
    cursor: pointer;
    z-index: 2;
}

#showSlider {
    padding: 5px 10px;
}

#amoeba-internal img {
    width: 20px;
    height: 20px;
}

#loginModal h2 {
    margin: 20px 0 30px;
    color: #413773;
    font-weight: 700;
}

#loginModal .close {
    position: absolute;
    top: 0;
    right: 12px;
    cursor: pointer;
    width: 22px;
    height: 22px;
    text-align: center;
}

#loginModal .modal-content{
    margin: 0 auto;
    width: 50%;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

#amoeba-internal-mobile {
    font-size: 16px;
    font-weight: normal;
}

#amoeba-internal-mobile img {
    width: 22px!important;
}
#mobileLoginModal {
    height: 100%;
}

#mobileLoginModal .modal-content {
    top: 50%;
    transform: translateY(-50%);
    position: relative!important;
    display: flex;
    flex-direction: column;
    width: 100%;
    color: var(--bs-modal-color);
    pointer-events: auto;
    background-color: var(--bs-modal-bg);
    background-clip: padding-box;
    border: var(--bs-modal-border-width) solid var(--bs-modal-border-color);
    border-radius: var(--bs-modal-border-radius);
    outline: 0;
}

#mobileLoginModal .close {
    position: absolute;
    top: 0;
    right: 12px;
    cursor: pointer;
    width: 22px;
    height: 22px;
    text-align: center;
}

@-webkit-keyframes zoom {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: 0.6s;
        -o-transition: 0.6s;
        transition: 0.6s;
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
        -webkit-transition: 0.6s;
        -o-transition: 0.6s;
        transition: 0.6s;
    }
}

@keyframes zoom {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: 0.6s;
        -o-transition: 0.6s;
        transition: 0.6s;
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
        -webkit-transition: 0.6s;
        -o-transition: 0.6s;
        transition: 0.6s;
    }
}

@media screen and (max-width: 767.99px) {
    .wrapper {
        padding: 30px 0;
    }
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .main .admin-recommend-body .catalog .description .name {
        font-size: 14px;
        line-height: 18px;
    }

    .main .admin-recommend-body .catalog .description .hashtags .tag {
        font-size: 12px;
        line-height: 15px;
    }

    .main .admin-recommend-body .catalog .recommended {
        font-size: 8px;
        padding: 8px;
        line-height: 10px;
    }


    .main .grid-catalog .catalog .sponsored {
        font-size: 8px;
        padding: 8px;
        line-height: 10px;
    }

    .main .grid-catalog .catalog .description .name {
        font-size: 14px;
        line-height: 18px;
    }

    .main .grid-catalog .catalog .description .hashtags .tag {
        font-size: 12px;
        line-height: 15px;
    }

    #modal-catalog .modal-dialog-centered {
        margin: 0;
        width: 100%;
        max-width: 100%;
        min-height: 100%;
        align-items: flex-end;
    }

    #modal-catalog .modal-body .catalog-info {
        padding: 0;
    }

    #close-button {
        display: none;
    }

    #modal-catalog #horizontal-line {
        position: absolute;
        top: 16px;
        left: 50%;
        transform: translateX(-50%);
        height: 4px;
        width: 100px;
        background: black;
        display: inline-block;
    }
}

@media screen and (min-width: 300px) {
    .main .grid-catalog>.item {
        width: 50%;
    }

    .main .admin-recommend-body > .admin-recommend-item {
        width: 50%;
    }
}

@media screen and (min-width: 768px) {
    .page-header .header-title {
        font-size: 49px;
        line-height: 56px;
        margin-bottom: 0;
    }
    .main .admin-recommend-body > .admin-recommend-item {
        width: calc(100% / 3);
    }

    .main .list-catalog {
        min-height:500px;
    }

    .main .grid-catalog>.item {
        width: calc(100% / 3);
    }

    .page-header {
        margin-bottom: 48px;
    }

    .page-header .header-wrap {
        display: flex;
        align-items: center;
    }

    .page-header .form-search {
        flex: 1;
    }

    #modal-catalog .modal-body {
        padding: 32px;
    }

    #modal-catalog .modal-body .catalog-image {
        margin-bottom: 0;
    }

    #modal-catalog .modal-body .catalog-image img {
        height: 560px;
        object-fit: cover;
    }

    .main .admin-recommend-body .catalog img {
        height: 475px;
    }


    .main .grid-catalog .catalog img {
        height: 475px;
    }

    .main .grid-catalog .ads img {
        width: 100%;
        height: 287px;
        object-fit: cover;
    }

    .navbar-nav .dropdown-menu{
        text-align: center;
        transform: translate(-35%, -5%) !important;
        top: unset !important;
        left: unset !important;
        position : fixed;
    }

    .distance-container .distance-filter-btn {
        padding: 6px 13px;
        font-size: 16px;
    }

    #sliderContainer .bar-conatiner {
        width: 75%;
    }
    #sliderContainer #applyButton {
        width: 20%;
    }
    #showSlider {
        padding: 6px 14px;
    }
}

@media screen and (min-width: 992px) {
    .main .grid-catalog>.item {
        width: 25%;
    }

    .main .admin-recommend-container .admin-recommend-item {
        width: 25%;
    }
}

@media screen and (min-width: 480px) {
    .shop_container {
        margin-bottom: 18px;
    }
    .shop_info {
        justify-content: center;
    }
    .shop_logo {
        height: 150px;
        width: 150px;

    }

    .shop_logo > img {
    }

    .shop_content {
        flex-wrap: wrap;
        flex-direction: row;
        font-size: 18px;
        justify-content: start;
        width: 55%;
        margin-left: 55px;
    }

    .shop_content > p {
        padding: 15px;
        margin: 0;
        word-break: break-all;
        width:50%;
    }

    .shop_btn > a {
        font-size: 16px;
    }
}
