/* Copy Animation */
.base-color {
  color: hsl(var(--main)) !important;
}

.copyInput {
  display: inline-block;
  line-height: 50px;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  -webkit-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
}

.copied::after {
  position: absolute;
  top: 8px;
  right: 12%;
  width: 100px;
  display: block;
  content: "COPIED";
  font-size: 1em;
  padding: 5px 5px;
  color: #fff;
  background-color: hsl(var(--base)) !important;
  border-radius: 3px;
  opacity: 0;
  will-change: opacity, transform;
  animation: showcopied 1.5s ease;
}

@keyframes showcopied {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  50% {
    opacity: 0.7;
    transform: translateX(40%);
  }

  70% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
  }
}




.cookies-card {
  width: 520px;
  padding: 30px;
  color: #1e2337;
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 999999;
  transition: all 0.5s;
  background: hsl(var(--white)) !important;
  border-radius: 5px;
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1), 0px 8px 20px rgba(0, 0, 0, 0.05);
}

.cookies-card.hide {
  bottom: -500px !important;
}

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

.cookies-card__icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #6e6f70;
  color: #fff;
  font-size: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.cookies-card__content {
  margin-bottom: 0;
}

.cookies-btn {
  color: #363636;
  text-decoration: none;
  padding: 10px 35px;
  margin: 3px 5px;
  display: inline-block;
  border-radius: 999px;
}

.cookies-btn:hover {
  color: #363636;
}


@media (max-width: 767px) {
  .cookies-card {
    width: 100%;
    left: 0;
    bottom: 0;
    font-size: 14px;
    padding: 15px;
  }
}


.hover-input-popup {
  position: relative;
}

.input-popup {
  display: none;
}

.hover-input-popup .input-popup {
  display: block;
  position: absolute;
  bottom: 125%;
  left: 50%;
  width: 280px;
  background-color: #1a1a1a;
  color: #fff;
  padding: 20px;
  border-radius: 5px !important;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.input-popup::after {
  position: absolute;
  content: '';
  bottom: -19px;
  left: 50%;
  margin-left: -5px;
  border-width: 10px 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent #1a1a1a transparent;
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

.input-popup p {
  padding-left: 20px;
  position: relative;
  color: #dddddd !important;
}

.input-popup p::before {
  position: absolute;
  content: '';
  font-family: 'Line Awesome Free';
  font-weight: 900;
  left: 0;
  top: 4px;
  line-height: 1;
  font-size: 18px;
}

.input-popup p.error {
  text-decoration: line-through;
}

.input-popup p.error::before {
  content: "\f057";
  color: #ea5455;
}

.input-popup p.success::before {
  content: "\f058";
  color: #28c76f;
}



.show-filter {
  display: none;
}

@media(max-width:767px) {
  .responsive-filter-card {
    display: none;
    transition: none;
  }

  .show-filter {
    display: block;
  }
}


.payment-card-title {
  padding: 13px 25px;
  text-align: center;
  background-color: #1e2746 !important;
  border-radius: 5px;
  border: 0;
  margin-bottom: 0px;
  color: #fff;
}

.payment-system-list {
  --thumb-width: 100px;
  --thumb-height: 40px;
  --radio-size: 12px;
  --border-color: #cccccf59;
  --hover-border-color: hsl(var(--base));
  background-color: #fff;
  border-radius: 5px;
  height: 100%;

}

.payment-system-list.is-scrollable {
  max-height: min(365px, 70vh);
  overflow-x: auto;
  padding-block: 4px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
  width: 5px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
  width: 5px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar-thumb {
  background-color: hsl(var(--base));
  border-radius: 10px;
}

.payment-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 18px;
  border: 1px solid #fff;
  border-top-color: var(--border-color);
  transition: all 0.3s;
  border-left: 3px solid transparent;
  cursor: pointer;
}

@media screen and (max-width: 575px) {
  .payment-item {
    padding: 10px 9px ;
  }
  .payment-item__name {
    font-size: 13px;
}
}

.payment-item:first-child {
  border-top-color: #fff;
  border-radius: 5px 5px 0 0;
}

.payment-item:has(.payment-item__radio:checked) {
  border-left: 3px solid var(--hover-border-color);
  border-radius: 0px;
}

.payment-item__check {
  border: 3px solid transparent;
}

.payment-item:has(.payment-item__radio:checked) .payment-item__check {
  border: 3px solid hsl(var(--base));
}

.payment-item__info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: calc(100% - var(--thumb-width))
}

.payment-item__check {
  width: var(--radio-size);
  height: var(--radio-size);
  border: 1px solid hsl(var(--base));
  display: inline-block;
  border-radius: 100%;

}

.payment-item__name {
  padding-left: 10px;
  width: calc(100% - var(--radio-size));
  transition: all 0.3s;
}

.payment-item__thumb {
  width: var(--thumb-width);
  height: var(--thumb-height);
  text-align: right;
  padding-left: 10px;

  &:has(.text) {
    width: fit-content;
  }
}

.payment-item__thumb img {
  max-width: var(--thumb-width);
  max-height: var(--thumb-height);
  object-fit: cover;
}


.deposit-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.deposit-info__title {
  max-width: 50%;
  margin-bottom: 0px;
  text-align: left;
}

.deposit-info__input {
  max-width: 50%;
  text-align: right;
  width: 100%;
}

.deposit-info__input-select {
  border: 1px solid var(--border-color);
  width: 100%;
  border-radius: 5px;
  padding-block: 6px;
}

.deposit-info__input-group {
  border: 1px solid var(--border-color);
  border-radius: 5px;

  .deposit-info__input-group-text {
    align-self: center;
    padding: 0px 10px;
  }

}

/* Đảm bảo chỉ có input bên trong group này bị loại bỏ border */
.deposit-info__input-group input {
    /* Loại bỏ border của thẻ input */
    border: none !important; 
    
    /* Ghi đè các box-shadow mặc định của trình duyệt hoặc theme */
    box-shadow: none !important;
}

/* Thêm vào CSS hiện tại của bạn */
.deposit-info__input-group {
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.deposit-info__input-group .form--control {
  padding: 5px;
  border: 0;
  height: 35px;
  text-align: right;
}

.deposit-info__input-group .form--control:focus {
  box-shadow: unset;
}

.info-text .text,
.deposit-info__input .text {
  font-size: 14px;

}

.deposit-info__title .text.has-icon {
  display: flex;
  align-items: center;
  gap: 5px
}

.total-amount {
  border-top: 1px solid #dcdcdc;
}

.total-amount .deposit-info__title {
  font-weight: 600;
}

.payment-item__btn {
  border: 0;
  border-block: 1px solid var(--border-color);
  border-bottom: 0;
  background: #fff;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  font-weight: 500;
}
span.payment-item__btn__icon {
  color: hsl(var(--base));
}

.payment-item__btn-text {
  color: hsl(var(--base));
  text-decoration: underline;
}

.payment-item:hover+.payment-item__btn {
  border-top-color: #fff;
}

button .spinner-border {
  --bs-spinner-width: 1.5rem;
  --bs-spinner-height: 1.5rem;
}

.adjust-height .payment-system-list.is-scrollable {
  max-height: 365px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}

/* ===== CATEGORY BAR ===== */
/* ===== CATEGORY BAR (Cần Z-index thấp hơn Dropdown) ===== */
.category-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    /* Loại bỏ !important không cần thiết */
    z-index: 101; /* Đặt thấp hơn dropdown (1299) */ 
    overflow: visible !important;
}

/* Fix container bootstrap bị che dropdown */
.category-bar .container {
    position: relative;
    z-index: 101; /* Đặt thấp hơn dropdown (1299) */
    overflow: visible !important;
}

/* Vùng scroll ngang */
.category-scroll {
    overflow-x: auto;
    overflow-y: visible !important;
    scrollbar-width: none; /* Firefox */
    position: relative;
    z-index: 10;
}
.category-scroll::-webkit-scrollbar {
    display: none; /* Chrome */
}

/* Category list — 1 hàng ngang */
.category-list {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 12px 40px;
    white-space: nowrap;
}

/* Category link */
.category-link {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    color: #404145;
    transition: color 0.25s ease;
    padding: 8px 0;
    display: inline-block;
    white-space: nowrap;
}

.category-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background-color: #1dbf73;
    transition: width 0.25s ease;
}

.category-link:hover {
    color: #1dbf73;
}
.category-link:hover::after {
    width: 100%;
}



/* ===== DROPDOWN (fade-in) ===== */
.subcategory-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-top: 2px solid #1dbf73;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 20px 25px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1200 !important; /* cực cao để luôn nổi lên trên */
    min-width: 480px;
    max-width: 90vw;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.category-item:hover > .subcategory-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Layout dropdown */
.subcategory-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.subcategory-column {
    flex: 1 1 200px;
    min-width: 180px;
}

.subcategory-link {
    color: #555;
    font-size: 15px;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    transition: color 0.2s ease;
}
.subcategory-link:hover {
    color: #1dbf73;
}

/* Scrollbar dropdown */
.subcategory-dropdown::-webkit-scrollbar {
    width: 8px;
}
.subcategory-dropdown::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.15);
    border-radius: 4px;
}
.subcategory-dropdown::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0,0,0,0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-btn {
        display: none;
    }
    .category-scroll {
        padding: 10px;
    }
    .category-link {
        font-size: 15px;
    }
    .subcategory-dropdown {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        padding: 10px 0;
        max-height: none;
        z-index: auto;
    }
    .subcategory-container {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- HEADER --- */
.header {
    position: relative;
    z-index: 100; /* chỉ cần giữ header ở trên nền, không cần quá cao */
}

/* --- CATEGORY BAR --- */
.category-bar {
    position: relative;
    background: #fff;
    z-index: 99; /* thấp hơn header một chút */
    border-bottom: 1px solid #eee;
}

/* Đảm bảo nó luôn nằm ngay dưới header-bottom */
.header + .category-bar {
    margin-top: 0; /* không bị hở */
}

/* --- DROPDOWN --- */
.subcategory-dropdown {
    position: absolute;
    top: 100%; /* thẳng hàng dưới category */
    left: 0;
    background: #fff;
    border-top: 2px solid #1dbf73;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    padding: 20px 25px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1299; /* quan trọng – nằm trên tất cả header, slider */
    min-width: 500px;
    max-width: 90vw;
    max-height: 400px;
    overflow-y: auto;
}

/* Khi hover thì mở mượt */
.category-item:hover > .subcategory-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- SCROLL ARROWS CHO CATEGORY --- */
.category-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    white-space: nowrap;
    padding: 12px 40px;
    scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar {
    display: none;
}

/* --- SCROLL BUTTONS --- */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Đưa nút sát mép category */
.scroll-btn.left  { left: 0; }
.scroll-btn.right { right: 0; }

/* --- CATEGORY SCROLL --- */
.category-scroll {
  display: flex;
  overflow-x: auto;
  overflow-y: visible;
  white-space: nowrap;
  padding: 12px 10px; /* ✅ Giảm khoảng cách hai bên từ 40px xuống 10px */
  scrollbar-width: none;
  position: relative;
  z-index: 5;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.scroll-btn:hover {
    background-color: #1dbf73;
}
.scroll-btn:hover i {
    color: #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .scroll-btn { display: none; }
    .subcategory-dropdown {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        border: none;
    }
}
.header-bottom {
    overflow: visible !important;
    z-index: 50 !important;
}
/* --- HEADER --- */
.header {
    position: relative;
    z-index: 200;
}

/* --- HEADER-BOTTOM: không được che phần dưới --- */
.header-bottom {
    overflow: visible !important;
    position: relative;
    z-index: 200;
}

/* --- CATEGORY BAR: nằm hẳn dưới header --- */
.category-bar {
    position: relative;
    z-index: 150;
    margin-top: 0 !important;
    background: #fff;
    border-bottom: 1px solid #eee;
}

/* Nếu vẫn bị đè, ép category nằm sau header */
.header + .category-bar {
    margin-top: 0;
    position: relative;
    top: 0;
}

/* --- FORCING CATEGORY DƯỚI HEADER BẰNG OFFSET --- */
/* Nếu header của bạn có chiều cao cố định (VD 80px) */
body > .category-bar {
    position: relative;
    top: 0;
    display: block;
}
.category-bar {
    margin-top: 2px !important; /* thử 2–4px cho đẹp */
}

.category-bar {
    position: sticky;
    top: 60px; /* = chiều cao header của bạn */
    z-index: 150;
}

/* ====== FIX dropdown bị che bởi header ====== */

/* Cho phép category thoát khỏi container */
.header,
.header-bottom,
.container,
.category-bar {
  overflow: visible !important;
}

/* Đảm bảo category bar luôn dưới header */
.category-bar {
  position: relative;
  z-index: 100;
  margin-top: 4px; /* Đẩy xuống dưới đường viền header */
  background: #fff;
}

.subcategory-dropdown {
    position: absolute !important; /* thay fixed bằng absolute */
    top: 100%;   /* ngay dưới category item */
    left: 0;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1299; /* vẫn trên category-bar nhưng không che header */
    min-width: 480px;
    max-width: 90vw;
    max-height: 400px;
    overflow-y: auto;
    /* THÊM ĐƯỜNG VIỀN XANH LÁ CÂY */

    /* Tùy chọn: Thêm bóng đổ nếu bạn muốn nó nổi hơn */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.category-item:hover > .subcategory-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.header-top__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #cccccc;
}
