/* Group Image Public */
.group-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 0 !important;
    border-radius: 4px;
}

.menu-item i.icon-active {
    color: var(--bs-text-danger);
}

.navbar-brand img.main-logo-nav {
    max-width: 190px;
}

#search-category .link-category::before {
    content: "";
    display: inline-block;
    margin-right: 15px;
    background-color: var(--bs-text-dark);
    height: 10px;
    width: 1px;
}

.main-logo-footer {
    max-width: 170px;
}

.position-stay-top {
    z-index: 1;
}

.title-custom {
    position: relative;
    display: inline-block;
    color: #000;
    font-weight: bold;
}

.title-custom::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--bs-text-danger);
    transition: width 0.3s ease-in-out;
}

.title-custom:hover::after {
    width: 100%;
}

a.link-sort {
    color: var(--bs-text-dark);
}

a.link-sort:hover {
    color: var(--bs-text-danger);
    font-weight: 600;
}

.owl-dots {
    text-align: center;
}

.owl-item img {
    cursor: grab;
}

.owl-dots .owl-dot {
    background: #666 !important;
    width: 12px;
    height: 12px;
    margin: 30px 5px;
    border-radius: 50%;
    display: inline-block;
    transition: background 0.3s;
}

.owl-dots .owl-dot.active {
    background: var(--bs-text-light) !important;
}

.owl-nav {
    text-align: center;
}

.owl-prev,
.owl-next {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5) !important;
    color: #0000005f !important;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
}

.owl-prev span,
.owl-next span {
    font-size: 25px;
}

.owl-prev {
    left: 5rem;
}

.owl-next {
    right: 5rem;
}

.owl-prev:hover,
.owl-next:hover {
    background-color: rgb(255, 255, 255) !important;
    border: #666 solid 5px;
    color: #000 !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.badge-search {
    border: solid 1px var(--bs-text-danger);
    padding: 8px;
}

.badge-search.active {
    background-color: var(--bs-danger);
    color: var(--bs-white);
}

.badge-search:hover {
    background-color: var(--bs-text-danger);
    color: #fff;
    transition: 0.3s ease;
}

.otp-field {
    flex-direction: row;
    column-gap: 10px;
    /* display: flex; */
    align-items: center;
    justify-content: center;
}

.otp-field input {
    height: 50px;
    width: 50px;
    border-radius: 15px;
    outline: none;
    font-size: 1.125rem;
    text-align: center;
    border: 1px solid #ddd;
    /* margin-right: 5px; */
}

.otp-field input:focus {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.otp-field input::-webkit-inner-spin-button,
.otp-field input::-webkit-outer-spin-button {
    display: none;
}

/* New CSS for card-body centering */
.card-body-otp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

img.img-fluid.w-lg-100.img-bnr-tp {
    height: auto;
}

.navbar-expand .navbar-nav .nav-link.active,
.navbar-expand .navbar-nav .nav-link.active i {
    color: var(--bs-text-danger);
    font-weight: 800;
}

/* .navbar-expand .navbar-nav .nav-link:hover {
    color: var(--bs-text-danger);
    font-weight: 400;
} */

.cookies--container {
    position: fixed;
    bottom: 0;
    animation: popupFadeIn .4s ease-out forwards;
    transform: translateY(100%) scale(0.95);
    opacity: 0;
    z-index: 11;
}

.cookies--container .card {
    max-width: 26rem;
    border: 2px solid var(--bs-gray-400);
    border-radius: 1.5rem;
    box-shadow: 5px 5px 5px rgba(78, 78, 78, 0.4);
}

.cookies--container .card .card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    text-align: center;
    /* overflow: hidden; */
}

.cookies--container .cookies--icon {
    background-image: url('/assets/media/svg/cookies.svg');
    background-repeat: no-repeat;
    background-size: contain;
    /* background-size: 20%;
    position: absolute;
    top: 5%;
    left: 5%; */
    width: 6rem;
    height: 6rem;
    /* opacity: .2; */
    /* z-index: 0; */
    margin: -4rem auto 0;
}

.cookies-repeatOrder--container {
    position: fixed;
    bottom: .5rem;
    left: .5rem;
    animation: popupFadeIn .4s ease-out forwards;
    transform: translateY(100%) scale(0.95);
    opacity: 0;
    z-index: 11;
}

.cookies-repeatOrder--container .card {
    /* max-width: 26rem; */
    border: 2px solid var(--bs-gray-400);
    border-radius: 1.5rem;
    box-shadow: 5px 5px 5px rgba(78, 78, 78, 0.4);
}

.cookies-repeatOrder--container .card .card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    text-align: center;
    /* overflow: hidden; */
}

.cookies-repeatOrder--container .cookies--icon-product {
    /* background-image: url('/assets/media/svg/cookies.svg'); */
    background-repeat: no-repeat;
    background-size: contain;
    /* background-size: 20%;
    position: absolute;
    top: 5%;
    left: 5%; */
    width: 6rem;
    height: 6rem;
    /* opacity: .2; */
    /* z-index: 0; */
    margin: -5rem auto 0;
}

.cookies--description {
    /* font-size: .82em; */
    /* font-weight: 600; */
    position: relative;
    z-index: 1;
}

.cookies--description .cookies--title {
    margin-top: 1rem;
}

.cookies--button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: .5rem;
    position: relative;
    z-index: 1;
}

.cookies--button .btn-outline-danger {
    text-decoration: underline;
}

.cookies--button .btn-outline-danger:hover {
    text-decoration: none;
}

.btn.saveCookie {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
    border-radius: .8rem !important;
    transition: all 0.3s ease;
}

.btn.saveCookie:hover {
    transform: translateY(-3px);
    box-shadow: none !important;
}

.cookies--hide {
    animation: popupFadeOut .4s ease-out forwards;
}

/* Mobile View */
@media (max-width: 450px) {
    .cookies--container,
    .cookies-repeatOrder--container {
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .cookies--container .card,
    .cookies-repeatOrder--container .card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 1rem;
    }
}

@media (max-width: 480px) {
    .owl-prev {
        left: 1rem !important;
    }

    .owl-next {
        right: 1rem !important;
    }

    .title-custom {
        position: relative;
        display: inline-block;
        color: #000;
        font-weight: bold;
    }

    .title-custom::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 0;
        height: 3px;
        background-color: var(--bs-text-danger);
        transition: width 0.3s ease-in-out;
    }

    .title-custom:hover::after {
        width: 100%;
    }

    .badge-search {
        border: solid 1px var(--bs-text-danger);
        padding: 4px;
    }

    img.img-fluid.w-lg-100.img-bnr-tp {
        height: 10rem;
    }

    /* .cookies--container {
        bottom: 0;
        left: 0;
        width: 100%;
    }

    .cookies--container .card {
        width: 100%;
        box-sizing: border-box;
    }

    .cookies-repeatOrder--container {
        bottom: 0;
        left: 0;
        width: 100%;
    }

    .cookies-repeatOrder--container .card {
        width: 100%;
        box-sizing: border-box;
    }

    .cookies--container,
    .cookies-repeatOrder--container {
        animation: popupFadeIn .4s ease-out forwards;
        transform: translateY(100%) scale(0.95);
    }

    .cookies--button {
        flex-direction: column;
        gap: 1rem;
    } */
}

@media (max-width: 767.98px) {
    .carousel-inner img {
        height: 200px;
    }

    .navbar-desktop {
        position: relative;
    }

    .navbar-brand img.main-logo-nav {
        max-width: 100px;
    }

    .main-logo-footer {
        max-width: 150px;
    }

    .owl-prev {
        left: 1rem !important;
    }

    .owl-next {
        right: 1rem !important;
    }

    .title-custom {
        position: relative;
        display: inline-block;
        color: #000;
        font-weight: bold;
    }

    .title-custom::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 0;
        height: 3px;
        background-color: var(--bs-text-danger);
        transition: width 0.3s ease-in-out;
    }

    .title-custom:hover::after {
        width: 100%;
    }

    .badge-search {
        border: solid 1px var(--bs-text-danger);
        padding: 4px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .carousel-inner img {
        height: 300px;
    }

    .navbar-desktop {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .navbar-brand img.main-logo-nav {
        max-width: 100px;
    }

    .main-logo-footer {
        max-width: 120px;
    }

    .title-custom {
        position: relative;
        display: inline-block;
        color: #000;
        font-weight: bold;
    }

    .title-custom::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 0;
        height: 3px;
        background-color: var(--bs-text-danger);
        transition: width 0.3s ease-in-out;
    }

    .title-custom:hover::after {
        width: 100%;
    }

    .badge-search {
        border: solid 1px var(--bs-text-danger);
        padding: 4px;
    }
}

@media (min-width: 992px) {
    .carousel-inner img {
        height: 400px;
    }

    .navbar-desktop {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .navbar-brand img.main-logo-nav {
        max-width: 150px;
    }

    .main-logo-footer {
        max-width: 150px;
    }

    .title-custom {
        position: relative;
        display: inline-block;
        color: #000;
        font-weight: bold;
    }

    .title-custom::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 0;
        height: 3px;
        background-color: var(--bs-text-danger);
        transition: width 0.3s ease-in-out;
    }

    .title-custom:hover::after {
        width: 100%;
    }
}

/* Animations & Transitions */
@keyframes popupFadeIn {
    0% {
        transform: translateY(100%) scale(0.95);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes popupFadeOut {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(100%) scale(0.95);
        opacity: 0;
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-100%) scale(0.95);
        opacity: 0;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOut {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-100%) scale(0.95);
        opacity: 0;
    }
}