html * {
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;
  border-width: 0;
}

header {
  position: sticky !important;
  z-index: 1000 !important;
  left: 0 !important;
  top: 0 !important;
  border-bottom: 0.5px solid #475569;
  background-color: #0f1a2a;
}

.page-content {
  max-width: 90%;
  margin: 0 auto;
}

header .header-container {
  max-width: 90%;
  margin: 0 auto;
}

#menu-menu-1 {
  display: flex;
  gap: 30px;
}

#menu-menu-1 li {
  padding: 24px 0;
}

header ul {
  list-style: none;
}

header ul li a {
  color: #cbd4e1;
  font-weight: 500 !important;
  min-width: max-content !important;
  text-decoration: none;
  font-size: 15px;
}

header ul li a:hover {
  color: #ffffff;
}

body {
  background-color: #0f1a2a;
  color: #cbd4e1;
  font-size: 14px;
  font-family: sans-serif;
}

.filter-form {
  display: flex;
  gap: 12px;
  margin: 24px auto;
  justify-content: center;
  max-width: 90%;
}

@media screen and (max-width: 992px) {
  .filter-form {
    flex-direction: column;
  }

  .filter-form .select2-container {
    width: 100% !important;
  }
}

#plate-search {
  min-width: 100px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 0 12px;
}
.modal-content {
  background-color: #0f1a2a;
  padding: 20px 24px;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  position: relative;
  color: #fff;
}

.modal-content h2 {
  margin-bottom: 16px;
}

.modal-content form p {
  margin-bottom: 16px;
}

.modal-content form .wpcf7-form-control-wrap {
  margin-top: 6px;
  display: block;
}

.modal-content form input,
textarea {
  width: 100%;
}

.modal-content form input[type="submit"] {
  background-image: linear-gradient(90.67deg, #01ab6f 0.13%, #00b49e 95.62%);
  cursor: pointer;
}

.modal-content form textarea {
  background-color: inherit;
  border: 1px solid #475569;
  color: #fff;
  font-family: inherit;
  padding: 6px 12px;
  border-radius: 12px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
}

#pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

#pagination button {
  padding: 5px 10px;
  cursor: pointer;
}

#pagination button.active {
  background-color: #0073aa;
  color: #fff;
  font-weight: bold;
}

#pagination button:hover {
  background-color: #f0f0f0;
}

input {
  border-radius: 12px;
  border: 1px solid #475569;
  background: #0f1a2a;
  isolation: isolate;
  padding: 12px 16px;
  align-items: center;
  display: flex;
  color: #ffffff;
}

.select2-selection.select2-selection--single {
  border-radius: 12px !important;
  border: 1px solid #475569 !important;
  background: #0f1a2a !important;
  isolation: isolate !important;
  padding: 12px 16px !important;
  align-items: center !important;
  display: flex !important;
  color: #ffffff !important;
  height: 41px !important;
}

input:focus {
  border: 1px solid #00cda8 !important;
}

.select2-search__field {
  padding: 12px 16px !important;
}

.select2-selection__rendered {
  width: 100%;
  color: #ffffff !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 41px !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: #fff transparent transparent transparent !important;
}

.select2-dropdown.select2-dropdown--below {
  background-color: #0f1a2a !important;
  color: #ffffff;
  border: 1px solid #475569 !important;
  border-radius: 12px !important;
  top: -12px;
}

.select2-search--dropdown {
  padding: 12px 6px !important;
}

.select2-results__option {
  padding: 12px !important;
}

button {
  border-radius: 40px;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  color: #ffffff;
  background-image: linear-gradient(90.67deg, #01ab6f 0.13%, #00b49e 95.62%);
  border: none;
  outline: none;
  cursor: pointer;
}

.contact-btn {
  padding: 6px 24px;
}

.plates-list {
  max-width: 90%;
  margin: 0 auto;
}

.plates-table {
  width: 100%;
  overflow: auto !important;
  border: 1px solid #27364b !important;
  border-radius: 16px !important;
  padding: 0 8px 12px 8px !important;
  background: #0f1a2a !important;
}

table {
  border-spacing: 0 10px !important;
}

button.item-pagination {
  min-width: 32px;
  height: 32px;
  margin-inline-end: 8px;
  font-family: Inter;
  text-align: center;
  list-style: none;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  outline: 0;
  cursor: pointer;
  background-image: none;
  border-radius: 50%;
  border-style: none;
  font-weight: 700;
  display: block;
  padding: 0 6px;
  color: #34a17b;
  transition: none;
  font-size: 18px;
  display: flex;
  justify-content: center;
}

.item-pagination.active {
  background-image: linear-gradient(90.67deg, #01ab6f 0.13%, #00b49e 95.62%);
}

footer {
  width: 100%;
  padding: 24px 0px;
}

footer .footer-content {
  text-align: center;
}

.add-to-cart-btn {
  padding: 12px;
}

.phone-number-mobile-column {
  color: #38ad7a;
  font-weight: 600;
  font-size: 15px;
}

/* Responsive cho bảng */
@media (max-width: 768px) {
  .phone-button, .phone-number-mobile-column {
    display: none !important;
  }

  .plates-list table {
    display: block;
    width: 100%;
    padding: 12px 8px !important;
  }

  .plates-list table tbody {
    display: block;
  }

  /* Ẩn phần tiêu đề bảng */
  .plates-list table thead {
    display: none;
  }

  /* Hiển thị từng hàng dưới dạng khối */
  .plates-list table tbody tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #27364b;
    border-radius: 16px !important;
    padding: 10px;
    background-color: #0f1a2a !important;
    color: #ffffff;
  }

  .buy-now-button {
    display: block !important;
    margin-bottom: 10px;
  }

  .buy-now-button .phone-number-mobile {
    color: #38ad7a;
    font-weight: 600;
    font-size: 15px;
  }

  /* Hiển thị từng ô với tiêu đề */
  .plates-list table tbody tr td {
    display: flex;
    justify-content: space-between;
    border-bottom: none;
    margin-bottom: 10px;
  }

  .plates-list table tbody tr td:last-child {
    border-bottom: none;
  }

  .action-col {
    width: 100% !important;
  }

  /* Tiêu đề của từng ô */
  /* .plates-list table tbody tr td::before {
    content: attr(data-label);
    font-weight: bold;
    flex: 0 0 40%;
  } */
  .stt-col {
    display: none !important;
  }

  .plate-number-text {
    font-size: 24px !important;
    margin-bottom: 16px !important;
  }

  .city,
  .price-cell {
    font-size: 14px !important;
    margin-bottom: 10px !important;
    margin-top: 6px;
  }

  .contact-btn {
    width: 100% !important;
  }

  #plate-search {
    min-width: 100%;
  }

  .add-to-cart-btn {
    width: inherit;
    padding: 8px 15px;
  }
}

#cart-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: fit-content;
  position: relative;
}

#cart-icon svg {
  width: 20px;
  height: 20px;
  color: white; /* Màu icon */
  transition: color 0.3s ease;
}

#cart-icon:hover svg {
  color: #f0f0f0; /* Màu khi hover */
}

#cart-count {
  font-size: 14px;
  color: white;
}

#cart-count {
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  position: absolute;
  top: -10px;
  right: -10px;
}

.cart-item-chip {
  display: inline-block;
  margin: 5px;
  padding: 5px 10px;
  background-image: linear-gradient(90.67deg, #01ab6f 0.13%, #00b49e 95.62%);
  border-radius: 12px;
  color: #fff;
}

.cart-item-chip button {
  margin-left: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header-container nav {
  display: flex;
  justify-content: space-between;
}

input.hidden-text,
input.hidden-text-2 {
  display: none !important;
}

button.cancel-button {
  background-color: #eb5757;
  background-image: unset;
}

.modal-content-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

#close-cart-modal,
#close-auction-modal {
  cursor: pointer;
  font-size: 20px;
}

.form-description {
  margin: 24px 0;
}

.form-description p {
  line-height: 24px;
}

.right-header {
  display: flex;
  align-items: center;
  gap: 25px;
}

.phone-number {
  animation: flicker 0.7s infinite;
  cursor: pointer;
}

@keyframes flicker {
  0% {
    color: #f8cd0a;
  }

  50% {
    color: #fff;
  }

  100% {
    color: #f8cd0a;
  }
}

.contact-address {
  margin-bottom: 8px;
}

.footer-phone-number-wrapper {
  margin: 10px 0;
}

.footer-phone-number-wrapper .footer-phone-number {
  color: #fff;
}

/* Lọc form */
.news-filters {
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
}
.news-filters form input[type="text"],
.news-filters form select {
  padding: 8px;
  margin-right: 10px;
  font-size: 16px;
}

#posts-container {
  max-width: 90%;
  margin: 0 auto;
  margin-top: 50px;
}

/* Grid bài post */
#posts-container .posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.post-item {
  border-radius: 8px;
  background-color: #162233;
  transition: box-shadow 0.3s ease;
  margin-bottom: 12px;
}

.post-item a {
  text-decoration: none;
  padding: 15px;
  display: block;
  border-radius: inherit;
  height: 100%;
  width: 100%;
}

.post-item:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.post-title {
  font-size: 18px;
  margin: 10px 0 16px 0;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 26px;
}

.post-excerpt {
  font-size: 14px;
  color: rgb(203, 212, 225);
  line-height: 22px;
}

.news-filters form .select2-container {
  width: 30% !important;
}

/* Responsive grid */
@media screen and (max-width: 1024px) {
  #posts-container .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 786px) {
  #filter-form {
    flex-direction: column;
  }

  .news-filters form input[type="text"],
  .news-filters form .select2-container {
    width: 100% !important;
    max-width: 100% !important;
  }

  .news-filters form input[type="text"] {
    margin-bottom: 16px;
  }
}
@media (max-width: 600px) {
  #posts-container .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Phân trang */
.pagination {
  text-align: center;
  margin-top: 20px;
}
.pagination .page-numbers {
  margin: 0 5px;
  padding: 8px 12px;
  color: #34a17b;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  cursor: pointer;
  width: 32px;
  height: 32px;
}

.pagination .page-numbers:hover {
  background-color: #fff;
}

.pagination .page-numbers.current {
  background-image: linear-gradient(90.67deg, #01ab6f 0.13%, #00b49e 95.62%);
  color: #fff;
}

.common-container {
  max-width: 90%;
  margin: 0 auto;
}

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

.tin-tuc-page {
  padding: 24px 0;
}

#filter-form {
  display: flex;
  justify-content: center;
}

.news-filters form input[type="text"] {
  width: 100%;
  max-width: 50%;
}

.post-content {
  color: #fff;
}

.post-content p {
  line-height: 2;
}

footer {
  background-color: #000;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 24px;
}

#menu-item-75 {
  cursor: pointer;
}

.plate-number-text {
  border: 1px solid #40536e;
  padding: 10px 5px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  display: inline;
}

/* Mặc định: ẩn icon mobile và menu mobile (để dùng cho mobile) */
#mobile-nav-icon,
#mobile-nav {
  display: none;
}

/* Hiển thị menu thông thường cho màn hình lớn (có thể đã có style riêng của theme) */
/* Ví dụ, nếu menu chính được hiển thị trong header */

/* Khi màn hình nhỏ hơn hoặc bằng 520px */
@media (max-width: 520px) {
  .header-container .menu-menu-1-container {
    display: none;
  }
  /* Hiển thị icon hamburger */
  #mobile-nav-icon {
    display: flex;
    padding: 10px 0;
    cursor: pointer;
    font-size: 28px;
    color: #fff; /* Màu icon, có thể chỉnh sửa */
    justify-content: space-between;
    align-items: center;
    margin-left: -4px;
  }

  #mobile-nav-icon .right-header {
    font-size: 16px;
  }

  /* Ẩn menu chính mặc định, chỉ hiển thị menu mobile khi cần */
  #mobile-nav {
    display: none;
    max-width: 90%;
    margin: 0 auto;
    padding: 10px 0;  }

  /* Khi menu được bật (thêm class active) */
  #mobile-nav.active {
    display: block;
  }

  #mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

.phone-button {
  padding: 12px;
  border-radius: 50%;
  height: 44px;
}

