:root {
    --primary-color: #2e4ded;
    --text-color-1: #002466;
    --text-color-2: #363D4A;
    --icon-color-1: #f6bc3e;
    --hover-text-color-1: #aab7cd;
    --header-background-1: var(--text-color-1);
    --footer-background-1: #F8F7F3;
    --button-background: #2e4dfd14;
    --body-background: rgb(240 241 243);
    --background-1: #d1ecf1;
    --background-2: #e7eafc;
    --background-white: #fff;
    --background-success: #d4edda;
    --background-success-blur: #beeed8;
    --background-primary: #2e4ded;
    --swiper-navigation-size: 20px;
    --color-red: #ff324d;
}

@import url("https://fonts.googleapis.com/css?family=Dancing+Script:700");

body {
    background: var(--body-background);
    font-family: Roboto, sans-serif;
}

.text-right {
    text-align: right;
}

.left-0 {
    left: 0 !important;
}

.right-0 {
    right: 0 !important;
}

.bottom-0 {
    bottom: 0 !important;
}

.translate-none {
    transform: translate(0) !important;
}

.app-btn:after {
    position: absolute;
    content: "";
    height: 100%;
    width: 1px;
    left: 50%;
    top: 0;
    transition: all 0.4s;
    background: var(--bs-btn-hover-bg);
    z-index: -1;
    border-radius: 6px;
    visibility: hidden;
    opacity: 0;
}

.app-btn:hover::after {
    width: 100%;
    height: 100%;
    transition: all 0.4s;
    left: 0;
    top: 0;
    visibility: visible;
    opacity: 1;
}

.app-btn:hover {
    color: #ffffff;
}

.w-30 {
    width: 30%;
}

.max-w-100 {
    max-width: 100%;
}

.w-60 {
    width: 60%;
}

.w-max-content {
    width: max-content;
}

.star-color {
    color: var(--icon-color-1);
}

.text-fs-14 {
    font-size: 14px !important;
}

.text-truncate-1-line {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    word-break: break-word; /* Prevent long words from breaking layout */
}

.text-truncate-2-lines {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    word-break: break-word; /* Prevent long words from breaking layout */
}

.text-truncate-3-lines {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    word-break: break-word; /* Prevent long words from breaking layout */
}

.text-truncate-5-lines {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    word-break: break-word; /* Prevent long words from breaking layout */
}

.responsive-text {
    font-size: clamp(12px, 2vw, 24px) !important;
}

.btn-primary {
    background: var(--button-background);
    border: none;
    color: var(--text-color-1);
}

.btn-warning.position-relative,
.btn-success.position-relative,
.btn-primary.position-relative {
    background: #ffffff;
}

a.go-detail,
a.app-btn,
button.app-btn {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    padding: 8px;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    border: 1px solid var(--bs-btn-border-color);
    color: var(--bs-btn-border-color);
}

.btn-half {
    flex: 0 0 calc(50% - 0.75rem);
}

.btn-full {
    flex: 0 0 100%;
}

.background-white {
    background: var(--background-white);
}

.background-1 {
    background: var(--background-1);
}

.background-2 {
    background: var(--background-2);
}

.background-success {
    background: var(--background-success) !important;
}

.background-primary {
    background: var(--background-primary) !important;
}

.border-1px-primary {
    border: 1px solid var(--primary-color) !important;
}

.border-2px-primary {
    border: 2px solid var(--primary-color) !important;
}

.box-shadow-1 {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bg_light_blue {
    background-color: #EBF5FF !important;
}

.rotate-180 {
    transform: rotate(180deg);
}

.borRad-0 {
    border-radius: 0;
}

.borRad-6 {
    border-radius: 6px;
}

.borRad-8 {
    border-radius: 8px;
}

.borRad-10 {
    border-radius: 10px;
}

ul {
    list-style-type: none;
}

.text-color-1 {
    color: var(--text-color-1);
}

.text-color-2 {
    color: var(--text-color-2);
}

.text-color-red {
    color: var(--color-red);
}

.transition-all {
    transition: all 0.25s ease-in-out;
}

.hover-text-color-red:hover {
    color: var(--color-red);
}

img {
    max-width: 100%;;
}

.cursor-pointer {
    cursor: pointer;
}

.input-warn label {
    color: #ffc107 !important;
}

.input-warn input {
    border-color: #ffc107 !important;
}

.form-check-input:focus {
    box-shadow: none;
}

.form-control, .form-select {
    border-radius: 4px;
    height: 45px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

button.copy-icon-btn:focus-visible,
.copy-icon-btn {
    background: none;
    padding: 0;
    margin: 0;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
button.copy-icon-btn::before,
button.copy-icon-btn::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border: none;
}

[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]:before {
    width: 100%;
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5em;
    border-radius: 5px;
    white-space: pre-wrap; /* Preserve line breaks */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1; /* Ensure it appears above other elements */
}

[data-tooltip]:hover:before {
    visibility: visible;
    opacity: 1;
}

.dropdown-item:hover,
.dropdown-item:active {
    background-color: var(--bs-dropdown-link-hover-bg)
}

#heading > div {
    background: #ffffff;
}

.heading.fixed {
    position: fixed;
    z-index: 10;
    width: 100%;
    padding: 0;
    height: auto;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    box-shadow: 0 3.4623px 6.1418px rgba(0, 0, 0, 0.05), 0 7.92923px 12.9218px rgba(0, 0, 0, 0.05), 0 9px 15px rgba(0, 0, 0, 0.08);
}

.heading.fixed button.app-btn {
    max-width: 189px;
}

.heading.fixed.show {
    transition: all 0.2s ease-in-out;
    transform: translateY(0);
    background: #fff;
    margin-top: 0 !important;
}

.search-img {
    width: 30px;
    height: 30px;
    right: 20px;
    padding: 5px;
    background: var(--primary-color);
    position: absolute;
    border-radius: 8px;
    display: flex;
    align-items: center;
    z-index: 9;
}

.search-img img {
    filter: brightness(0) invert(1);
}

.category-wrapper.navbar-nav .dropdown ul li {
    padding-left: 15px;
}

.heading .category-wrapper.navbar-nav .dropdown-menu {
    position: static !important;
    transform: translate3d(0px, 0px, 0px) !important;
    /*background: var(--background-2);*/
    border: none;
    border-radius: 0;
}


.heading .category-wrapper {
    justify-content: end;
    align-items: center;
    margin-bottom: 2rem;
    position: absolute;
    width: 100%;
    right: 0;
    background: #fff;
    z-index: -1;
    padding: 15px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    font-size: 18px;
    font-weight: bold;
}

.heading .category-wrapper.visible {
    opacity: 1;
    visibility: unset;
    position: relative;
    margin-bottom: 0;
    z-index: 9;
}

.heading .category-wrapper.visible .dropdown-menu.show {
    top: 60px;
}
.heading .category-wrapper.visible .dropdown-menu a {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 18px;
}

.heading .category-wrapper.open {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.slide-user-info-nav li a,
.slide-nav li a,
.heading .category-wrapper li a {
    padding: 16px 8px;
    transition: all 0.1s ease-in-out;
}

/* .slide-user-info-nav li a:hover,
.slide-nav li a:hover,
.heading .category-wrapper li a:hover {
    background: var(--background-2);
} */

.heading .category-wrapper li a:after {
    transition: all 0.5s ease-in-out;
}

.heading .category-wrapper li a.show:after {
    rotate: 180deg;
}

.heading .user-info .info {
    z-index: 999;
}

.heading .user-info .info span {
    font-size: 13px;
}

.heading .user-info .user-more {
    width: 400px;
    background: #fff;
    z-index: 99;
    top: 40px;
    right: -16px;
    border-radius: 8px;
    padding: 20px;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: .2s ease-in-out;
}

.heading .user-info .user-more.open {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
}

.heading .user-info .user-more .balance {
    height: 41px;
    border-bottom: 1px solid var(--body-background);
}

.heading .user-info .user-more .buttons {
    padding: 20px 0;
    border-top: 1px solid var(--body-background);
    display: flex;
    gap: 20px;
}

.heading .user-info .user-more .account-redirect a {
    transition: .4s all;
}

.heading .user-info .user-more .account-redirect a:hover {
    background: var(--background-2);
    padding-left: 10px;
}

.slide-user-info-nav,
.slide-nav {
    background: #fff;
    height: 100vh;
    position: fixed;
    z-index: 99;
    top: 0;
    max-width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

.slide-user-info-nav.open,
.slide-nav.open {
    max-width: 100%;
    opacity: 1;
    visibility: visible;
}

.slide-user-info-nav .dropdown-menu,
.slide-nav .dropdown-menu {
    transform: unset !important;
}

.slide-user-info-nav .dropdown-toggle::after,
.slide-nav .dropdown-toggle::after {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.5s ease-in-out;
}


.slide-user-info-nav .dropdown-toggle.show::after,
.slide-nav .dropdown-toggle.show::after {
    rotate: 180deg;
    transform: translateY(50%);
}

.slide-user-info-nav a,
.slide-nav a {
    opacity: 0;
}

.slide-user-info-nav.open a,
.slide-nav.open a {
    opacity: 1;
}

main .content h1 {
    font-weight: 600;
    color: var(--text-color-1);
}

main .breadcrumb {
    background: #f7f8fb;
    border-radius: 8px;
}

main .breadcrumb ul {
    font-size: 13px;
    font-weight: 500;
    padding: 10px 0;
    color: var(--text-color-2);
    z-index: 9;
    margin: 0;
    display: flex;
    align-items: center;
}

main .breadcrumb ul li:not(:last-child):after {
    background-image: url(images/icons/breadcrumb.svg);
    content: '';
    width: 1rem;
    height: 1rem;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-left: .5rem;
    margin-right: .5rem;
    display: inline-block;
}

main .breadcrumb ul li {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 0;
}

main .breadcrumb ul li a {
    color: unset;
    text-decoration: none;
    transition: all 0.4s;
}

main .breadcrumb ul li a:hover {
    color: var(--primary-color);
}

main .content .products,
.main .category .list {
    display: flex;
    gap: 25px 15px;
    flex-wrap: wrap;
}

main .content .products > .item,
.main .category .list > .item {
    width: calc(25% - 12px);
}

main .content .products .item .pl_flash {
    right: -10px;
    top: 30px;
    text-transform: uppercase;
    font-size: 16px;
    z-index: 1;
}

main .content .products .item,
.main .category .list .item {
    padding: 12px;
    border: 1px solid #0d6efd;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
    background: #ffffff;
    align-self: baseline;
}

main .content .products .item:hover,
.main .category .list .item:hover {
    cursor: pointer;
    box-shadow: 0 3.4623px 6.1418px rgba(0, 0, 0, 0.05), 0 7.92923px 12.9218px rgba(0, 0, 0, 0.05), 0 9px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-10px);
}

main .content .products .item > img,
.main .category .list .item > img {
    width: 100%;
    margin-bottom: 1rem;
    height: 100%;
    max-height: 160px;
}

.main .category .title {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-image: url("images/backgrounds/bg-1.png");
    background-repeat: no-repeat;
    background-size: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

main .content .products .item .title h2,
.main .category .title h2 {
    color: #ffffff;
    font-weight: 700;
}

main .content .products .name,
.main .category .name {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-color-1);
    margin-bottom: 0.5em;
}

main .products .item .describe,
.main .category .describe {
    font-size: 14px;
    color: var(--text-color-2);
    margin-bottom: 0.5em;
}

main .products .item .prices .discount-percent,
.main .category .prices .discount-percent {
    background-color: var(--primary-color);
    border-radius: 16px;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #FFFFFF;
    padding: 0 8px;
    display: flex;
    align-items: center;
}

main .products .item .buttons {
    padding: 12px;
    width: 100%;
    left: 0;
    background: #ffffff;
    /* position: absolute; */
    bottom: 10px;
}

main .products.random-list .item .buttons {
    padding: 0;
}

footer .custom-container {
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.bg_gray {
    background: var(--footer-background-1);
}

footer .bottom_footer {
    padding: 30px 0;
    position: relative;
}

.footer-block {
    padding: 30px;
}

footer p {
    font-size: 14px;
}

footer ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

footer ul li a {
    text-decoration: none;
    color: white;
    transition: all 0.4s;
}

footer ul li a:hover {
    margin-left: 1rem;
}

nav.bottom-nav {
    height: 83px;
    position: fixed;
    width: 100%;
    background: #ffffff;
    bottom: 0;
    z-index: 9;
    /* Existing bottom shadow */
    box-shadow: 0 -3.4623px 6.1418px rgba(0, 0, 0, 0.05), 0 -7.92923px 12.9218px rgba(0, 0, 0, 0.05), 0 -9px 15px rgba(0, 0, 0, 0.08); /* Top shadow */
}

nav.bottom-nav a {
    display: flex;
    height: 100%;
    align-items: center;
    flex-direction: column;
    min-width: 85px;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

nav.bottom-nav .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, .15);
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    padding-inline: 16px;
    transform: translateX(-50%) !important;
    height: 138px;
    bottom: 100% !important;
    left: 44% !important;
}

nav.bottom-nav .dropdown-menu.show {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
}

nav.bottom-nav .dropdown-menu a {
    align-items: start;
    display: block;
    padding: 4px 12px;
}

nav.bottom-nav .dropdown-toggle::after {
    display: none;
}

.modal .close {
    top: 5px;
    right: 10px;
}

.modal-backdrop {
    opacity: .5;
}

.modal .close {
    color: #000;
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    opacity: .5;
    text-shadow: 0 1px 0 #fff;
}

.modal-header .close {
    margin: -1rem -1rem -1rem auto;
    padding: 1rem;
    border: none;
    background: transparent;
}

[type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled) {
    cursor: pointer;
}

.login-code-pc textarea, .login-code-sp textarea {
    resize: none;
}

#login-modal .transition-container {
    transition: all 0.5s ease-in-out;
}

/* Wrapper Styling */
#login-modal .login-section,
#login-modal .register-section {
    background: rgba(255, 255, 255, 0.7);
    z-index: 9;
    position: relative;
    height: 100%;
    row-gap: 20px;
}

#login-modal .register-section .wrapper {
    transform: translateX(-100%);
}

#login-modal form label input {
    height: 38px;
    padding-left: 30px;
}

/* Icon Styling */
#login-modal form label:focus-within i {
    color: var(--primary-color);
}

#login-modal form label svg,
#login-modal form label i {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.4s ease;
}

/* Section Layout */
.login-section,
.register-section {
    overflow: hidden;
    position: relative;
    height: 548px;
    width: 450px;
    transition: all 0.5s ease-in-out;
}

/* Background Images */
#login-modal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
    z-index: 1;
    position: absolute;
}

/* Hover Effect for Zoom */
.login-section:hover img,
.register-section:hover img {
    transform: scale(1.1);
}

/* Overlay Effect */
#login-modal .overlay-bg {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
    z-index: 2;
}

/* Register Button Wrapper */
#login-modal .button-wrapper {
    top: 5%;
    position: absolute;
    z-index: 3;
}

#login-modal .login-section .button-wrapper {
    justify-content: end;
}

#login-modal .register-section .button-wrapper {
    justify-content: start;
}

#login-modal .button-wrapper button {
    opacity: 0.9;
    width: 40%;
    background: var(--body-background);
    transition: background 0.3s ease, opacity 0.3s ease;
}

#login-modal .login-section.button-wrapper {
    transform: translateX(100%);
}

#login-button {
    font-size: 18px;
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}
#login-button:hover {
    opacity: .9;
}

#login-modal #submit-login-button,
#login-modal #submit-register-button {
    background: var(--primary-color);
    color: #ffffff;
}

#login-modal #submit-login-button:hover,
#login-modal #submit-register-button:hover {
    cursor: pointer;
    opacity: 0.9;
}

#login-modal .button-wrapper button:hover {
    opacity: 1;
    background: var(--primary-color);
}


/* Hidden Animation */
#login-modal .login-hidden {
    animation: login-hidden-animation 0.5s ease-in-out forwards;
}

#login-modal .login-show {
    animation: login-show-animation 0.5s ease-in-out forwards;
}

#login-modal .register-hidden {
    animation: register-hidden-animation 0.5s ease-in-out forwards;
}

#login-modal .register-show {
    animation: register-show-animation 0.5s ease-in-out forwards;
}

.login-social-media a {
    width: 70px;
    font-size: 25px;
    background: #fff;
}

#card-payment-modal .bank-account,
#card-payment-modal .qr-code,
#card-payment-modal .instruction,
#card-payment-modal form.generate-money {
    background: white;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
}

#card-payment-modal .qr-code img {
    width: 100%;
}

#card-payment-modal form.generate-money label {
    position: absolute;
    z-index: 9;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: var(--hover-text-color-1);
    transition: all 0.4s;
    background: #ffffff;
}

#card-payment-modal form.generate-money .input-group input {
    border-radius: 4px;
}

#card-payment-modal form.generate-money .input-group.input-active label,
#card-payment-modal form.generate-money .input-group:has(input:focus) label {
    color: var(--primary-color);
    font-size: 12px;
    top: 0;
}

#card-payment-modal .bank-account {
    width: fit-content;
}

#card-payment-modal .bank-account table {
    border-collapse: collapse;
    width: 100%;
}

#card-payment-modal .bank-account td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    position: relative;
    word-break: break-word;
    white-space: normal;
    height: 71px;
}

#card-payment-modal .bank-account td span {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

#card-payment-modal .bank-account td:first-child {
    border-right: 1px solid #e0e0e0;
}

#card-payment-modal .bank-account tr:first-child td {
    border-bottom: 1px solid #e0e0e0;
    font-size: 20px;
}

#card-payment-modal .bank-account tr .copy-success {
    position: absolute;
    bottom: -5px;
    right: -6px;
    width: 100px;
}

#card-payment-modal .instruction {
    color: #555e6d;
    font-size: 16px;
    line-height: 1.6;
}

#card-payment-modal .instruction strong {
    color: red;
}

#card-payment-modal .instruction b {
    color: red;
}

.overlay {
    top: 0;
    position: fixed;
    width: 100%;
    height: 100vh;
    background: rgba(128, 128, 128, 0.4); /* grey with 20% opacity */
    z-index: 98;
    display: none;
}

.copy-icon {
    display: inline-block;
    margin-left: 8px;
    cursor: pointer;
    vertical-align: middle;
}

.overlay.is-visible {
    display: block;
}

#sellerModal img {
    max-width: 100%;
    object-fit: cover;
}

.modal .modal-content {
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

.modal .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    flex: 1 1 auto;
}

@keyframes bounceUpDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes pulse-star {
    0% {
        transform: scale(.8);
    }

    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(.8);
    }
}

@keyframes rotate-star {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes login-hidden-animation {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes login-show-animation {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes register-hidden-animation {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes register-show-animation {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
