@import "./variable.css";

.btn,
.form-control,
.card,
.modal-content,
.alert,
.badge,
.pagination .page-link,
.list-group-item,
.dropdown-menu,
.toast,
.popover,
.tooltip-inner {
    border-radius: 8px !important;
}

.pointer {
    cursor: pointer;
}

.breadcrumb-item a,
.breadcrumb-item .breadcrumb-item-label,
.breadcrumb-item.active {
    color: var(--white);
    font-size: 12px !important;
    font-weight: 400;
}

.breadcrumb-wrapper {
    background-color: var(--primary-200);
}

.carousel-control img {
    width: 48px;
    height: 48px;
}

a:hover {
    color: var(--secondary);
    text-decoration: none;
}

.scroll-top {
    position: fixed;
    bottom: -100px;
    right: 20px;
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1.02, 0.43, 0.99);
}

.scroll-top.show {
    bottom: 20px;
    opacity: 1;
    visibility: visible;
}

.scroll-top.scrolling {
    bottom: 100vh;
    transition: all 0.8s cubic-bezier(0.23, 1.02, 0.43, 0.99);
}

.scroll-top img {
    width: 60px;
    height: auto;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--secondary);
}

.header_nav a {
    text-decoration: none;
}

.logo_img {
    width: 160px;
    padding: 12px 0;
}

.arrow-expand::after {
    content: "▼";
    font-size: 8px;
    position: absolute;
    top: 38%;
    right: -16px;
    transition: transform 0.3s ease;
}

.group_menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.group_auth {
    gap: 24px;
}

.slide-up-init {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.7s cubic-bezier(0.23, 1.02, 0.43, 0.99);
}

.slide-up-animated {
    opacity: 1;
    transform: translateY(0);
}

.header_nav {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header_nav.header-hidden {
    transform: translateY(-100%);
}

.section-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/1;
}

.btn-primary {
    background-color: var(--primary);
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline-primary {
    background-color: var(--primary);
    border: 1px dashed var(--secondary);
    color: var(--secondary);
}

.btn-outline-primary:hover {
    background-color: var(--secondary);
    border: 1px solid var(--secondary);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--secondary);
    border: 1px solid var(--secondary);
    color: var(--primary);
}

.item_auth_sub_wrapper_inner {
    display: flex;
    flex-direction: column;
}

.item_auth_btn {
    padding: 12px 0;
}

.btn-none {
    text-align: left;
}

.name_customer {
    padding: 12px 0;
}

.item_auth:hover .item_auth_sub_wrapper {
    display: block;
}

.menu_link {
    position: relative;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    padding: 18px 0;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.menu_link:hover {
    color: var(--secondary);
}

.menu_link:hover .menu_sub_wrapper,
.menu_sub_wrapper:hover {
    display: block;
}

.menu_sub_wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-200);
    transition: all 0.3s ease;
    z-index: 99;
}

.menu_sub_wrapper_inner {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.menu_sub_link {
    padding: 12px;
}

.menu_sub_link:hover {
    background-color: var(--primary-300);
}

.footer {
    background-color: var(--primary);
    padding: 48px 0 0 0;
}

.footer_logo img {
    width: 240px;
}

.footer_logo_wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer_copyright {
    background-color: var(--gray-900);
    padding: 12px 0;
    color: var(--primary-100);
    text-align: center;
}

.footer_copyright p {
    font-size: 8px;
    margin: 0;
}

.breadcrumb {
    background-color: transparent;
    align-items: center;
    margin: 0;
}

.breadcrumb-logo {
    width: 20px;
    height: 20px;
}

.menu_mobile {
    display: none;
}

.search_quad {
    position: relative;
}

.search_quad input {
    width: 100%;
    padding: 12px 12px 12px 48px;
    border-radius: 24px;
    border: 1px solid var(--secondary);
    background-color: var(--primary-200);
    color: var(--secondary);
    border: none;
}

.search_quad img {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    z-index: 2;
}

.zalo-chat-widget {
    bottom: 140px !important;
    right: 20px !important;
}

.call-item {
    cursor: pointer;
    position: fixed;
    bottom: 210px;
    right: 24px;
    z-index: 1000;
}

.call-item-icon img, .fb-item img {
    width: 48px;
    height: 48px;
}

.fb-item {
    position: fixed;
    bottom: 275px;
    right: 24px;
    z-index: 1000;
}

/* Image View Detail Styles */
.img-view-detail {
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    display: inline-block;
    z-index: 1;
}

.img-view-detail:hover {
    transform: scale(1.02);
    z-index: 10;
}

#image-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-view-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.image-view-container {
    position: relative;
    z-index: 1;
    width: 80vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-view-content {
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#image-view-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.image-view-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.image-view-close:hover {
    background-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 768px) {
    .image-view-container {
        width: 95vw;
    }
    
    .image-view-content {
        padding: 15px;
        margin: 20px;
    }
    
    .image-view-close {
        top: -10px;
        right: -10px;
        width: 35px;
        height: 35px;
    }
    .search_quad input {
        display: none;
    }

    .search_quad img {
        top: 26px;
        left: -20px;
    }

    h2 {
        font-size: 24px;
    }

    .menu_link:hover .menu_sub_wrapper,
    .menu_sub_wrapper:hover {
        position: relative;
        display: block;
        margin-top: 16px;
    }

    .group_menu_item:hover::after {
        top: 16px;
    }

    .menu_mobile {
        display: block;
        position: absolute;
        top: 12px;
        left: 12px;
    }

    .logo_img {
        width: 120px;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .header_nav {
        height: 56px;
    }

    .group_menu {
        display: none;
        background-color: var(--primary-200);
        position: absolute;
        top: 56px;
        left: 0;
        width: 100%;
        height: calc(100vh - 56px);
        padding: 12px;
        z-index: 99;
    }

    .group_menu .menu_link {
        padding: 12px;
        display: block;
    }

    body.overflow-hidden {
        overflow: hidden;
        touch-action: none;
    }
}

/* Remove the breadcrumb-fixed styles since we won't need them anymore */
.breadcrumb-fixed {
    display: none;
}
