.btn-center {
  text-align: center;
  margin-top: 3rem;
}
.btn-pri {
  border-radius: 0.5rem;
  height: 4.6rem;
  padding: 0 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: normal;
}

/* Layout bộ lọc */
.nav-category-techni {
  padding-top: 4rem;
  position: relative;
  transition: all 0.3s ease-in-out;
  top: 0;
}
.nav-category-techni.active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: var(--size-hd, 0);
  z-index: 9;
  padding: 1rem;
  background: #fafafa;
  transition: all 0.3s ease-in-out;
}
.category-slider a {
  display: flex;
  align-items: center;
  column-gap: 1rem;
  padding: 0.9rem 2.4rem;
  background-color: #fff;
  line-height: normal;
  border-radius: 0.5rem;
}
.category-slider a:hover,
.category-slider a.active {
  background-color: var(--orange-color);
}
.category-slider a span {
  font-weight: 500;
  line-height: normal;
  color: var(--black-color);
  --f-sz: clamp(1.6rem, calc(1.2rem + 0.5vw), 1.8rem);
  font-size: var(--f-sz);
}
.category-slider a:hover span,
.category-slider a.active span {
  color: #fff;
}
.category-slider a img {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
}
.category-slider a:hover img,
.category-slider a.active img {
  filter: brightness(0) invert(1);
}
.archive-filter-layout,
.archive-product-layout,
.archive-video-layout {
  padding: 3.3rem 0;
}
.archive-header h1 {
  margin-bottom: 0;
}
.archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.9rem;
}
.mobile-filter-trigger {
  display: none;
}

.archive-product-layout .archive-header,
.archive-video-layout .archive-header {
  margin-bottom: 3.9rem;
}
.archive-product-layout .archive-header h1,
.archive-video-layout .archive-header h1,
.archive-filter-layout .archive-header h1 {
  margin-bottom: 0;
}
.archive-product-layout .grid-cols-2,
.archive-filter-layout .grid-cols-2,
.archive-video-layout .grid-cols-2 {
  --width: calc(2.5 / 12 * 100%);
  display: grid;
  grid-template-columns: var(--width) 1fr;
  column-gap: 3.5rem;
}
.archive-product-layout .grid-cols-2,
.archive-video-layout .grid-cols-2 {
  --width: calc(3 / 12 * 100%);
  grid-template-columns: 1fr var(--width);
}
.archive-filter-layout .grid-cols-2 .col-left .col-inner {
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
}
.archive-filter-layout .grid-cols-2 .col-left .col-inner .icon-box {
  display: flex;
  align-items: center;
  column-gap: 1.1rem;
  background-color: var(--orange-color-400);
  padding: 1.1rem 2.3rem;
}
.archive-filter-layout .grid-cols-2 .col-left .col-inner .icon-box svg {
  width: 2.9rem;
  height: 2.8rem;
}
.archive-filter-layout .grid-cols-2 .col-left .col-inner .icon-box span {
  font-size: 2rem;
  color: var(--orange-color);
  font-weight: 700;
  line-height: normal;
}
.modal-filter-header,
.modal-filter-footer {
  display: none;
}
.archive-video-layout .list-technique,
.archive-product-layout .list-technique,
.archive-filter-layout .list-technique {
  background-color: #fff;
  border-radius: 0.8rem;
  padding: 3rem;
}
.archive-video-layout .list-technique {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem;
}
.archive-product-layout .list-technique .box-technique:not(:first-child),
.archive-filter-layout .list-technique .box-technique:not(:first-child) {
  margin-top: 3.4rem;
  padding-top: 3.4rem;
  border-top: 1px solid #d0d5dd;
}
.box-filter {
  padding: 1.8rem 2.3rem 0.7rem;
}
.box-filter .title {
  color: var(--black-color);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.box-filter.filter-product {
  padding-top: 0;
}
.box-filter.filter-address .box-item {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1.6rem;
}
.box-filter .box-item span {
  font-size: 1.4rem;
  color: var(--black-color-400);
  line-height: normal;
}

.box-filter .box-item .item {
  position: relative;
  padding-left: 2.5rem;
  line-height: normal;
  margin-bottom: 1.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.box-filter .box-item .item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 3px;
  border: 1px solid #d0d5dd;
  background-color: #fff;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 1rem;
}
.box-filter .box-item .item.active span {
  color: var(--orange-color);
  font-weight: 600;
}
.box-filter .box-item .item.active::before {
  background-color: var(--orange-color);
  border-color: var(--orange-color);
  content: "\f00c";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Layout 2 - Specific Styles */
.archive-video-layout .archive-header,
.archive-product-layout .archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.archive-product-layout .archive-filters,
.archive-video-layout .archive-filters {
  display: flex;
  gap: 1.6rem;
}

.filter-dropdown {
  position: relative;
  width: 20rem;
  padding: 0;
}

.filter-dropdown .dropdown-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.9rem;
  background: #fff;
  border-radius: 0.5rem;
  border: 1px solid #a1a1aa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-dropdown .dropdown-selected span {
  font-size: 1.6rem;
  color: var(--black-color-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-dropdown .dropdown-selected i {
  font-size: 1.2rem;
  color: #667085;
  transition: transform 0.3s ease;
}

.filter-dropdown.active .dropdown-selected {
  border-color: var(--orange-color);
}

.filter-dropdown.active .dropdown-selected i {
  transform: rotate(180deg);
}

.filter-dropdown .dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 0.8rem;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 100;
  max-height: 25rem;
  overflow-y: auto;
}

.filter-dropdown.active .dropdown-list {
  display: block;
}

.filter-dropdown .filter-item {
  padding: 1rem 1.6rem;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.filter-dropdown .filter-item:hover {
  background: #f9fafb;
}

.filter-dropdown .filter-item.active {
  background: var(--orange-color-400);
  color: var(--orange-color);
  font-weight: 600;
}

/* Sidebar Banners */
.archive-sidebar .sidebar-banner img {
  margin-bottom: 3rem;
}

/* Loading State */
.list-technique-wrapper {
  position: relative;
  min-height: 200px;
}
.list-technique-wrapper.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10;
}
.list-technique-wrapper.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid var(--orange-color-400);
  border-top: 4px solid var(--orange-color);
  border-radius: 50%;
  animation: ajax-spin 1s linear infinite;
  z-index: 11;
}

@keyframes ajax-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

#load-more-technique.loading {
  position: relative;
  color: transparent !important;
}
#load-more-technique.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: ajax-spin 1s linear infinite;
}
.box-technique {
  display: flex;
  align-items: center;
  column-gap: 3.7rem;
}

.box-technique .box-image {
  margin: 0;
}
.box-technique .box-image .image-cover {
  border-radius: 0.8rem;
  width: 29rem;
}
.box-technique .box-content .box-title {
  margin-bottom: 1.9rem;
  line-height: normal;
}
.box-technique .box-content .box-title a {
  font-size: 2rem;
  color: var(--black-color);
  margin: 0;
  line-height: normal;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 600;
}
.box-technique .box-content .box-title a:hover {
  color: var(--orange-color);
}
.box-technique .box-content .box-excerpt {
  font-size: 1.6rem;
  color: var(--black-color-400);
  line-height: normal;
  margin: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.box-technique .box-content .box-bottom {
  display: flex;
  align-items: center;
  column-gap: 4.2rem;
  margin-top: 2.8rem;
}
.box-technique .box-content .box-bottom .icon-box {
  display: flex;
  align-items: center;
  column-gap: 0.8rem;
}
.box-technique .box-content .box-bottom .icon-box svg {
  width: 2rem;
  height: 2rem;
}
.box-technique .box-content .box-bottom .icon-box span {
  color: #a1a1aa;
  font-size: 1.4rem;
  line-height: normal;
}
.box-technique.vertical-card {
  flex-direction: column;
}
.box-technique.vertical-card .box-image {
  width: 100%;
}
.box-technique.vertical-card .box-image .image-cover {
  width: 100%;
}
.box-technique.vertical-card .box-content {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  column-gap: 2.5rem;
}
.box-technique.vertical-card .box-content .img {
  flex-shrink: 0;
}
.box-technique.vertical-card .box-content .img .image-cover {
  height: 5rem;
  width: 5rem;
}
.box-technique.vertical-card .box-content .img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.box-technique.vertical-card .box-content .box-title {
  margin-bottom: 0;
}
@media (max-width: 1200px) {
  .box-technique .box-content .box-title a {
    font-size: 1.8rem;
  }
  .box-technique.vertical-card .box-content {
    column-gap: 1.6rem;
  }
  .box-technique.vertical-card .box-content .img .image-cover {
    height: 4rem;
    width: 4rem;
  }
  .archive-video-layout .list-technique {
    gap: 2.5rem;
  }
}
@media (max-width: 767.98px) {
  .archive-product-layout .grid-cols-2,
  .archive-filter-layout .grid-cols-2,
  .archive-video-layout .grid-cols-2 {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    row-gap: 3rem;
  }
  .archive-video-layout .list-technique,
  .archive-product-layout .list-technique,
  .archive-filter-layout .list-technique {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
  }
  .box-technique {
    column-gap: 0;
    flex-direction: column;
    row-gap: 1.6rem;
  }
  .box-technique .box-image .image-cover {
    width: 100%;
  }
  .box-technique .box-image {
    margin: 0;
    height: 100%;
    width: 100%;
  }
  .box-technique .box-content .box-title {
    margin-bottom: 1.6rem;
  }
  .box-technique .box-content .box-title a {
    font-size: 1.7rem;
  }
  .box-technique .box-content .box-excerpt {
    font-size: 1.5rem;
  }
  .box-technique .box-content .box-bottom {
    margin-top: 2rem;
  }

  .archive-video-layout .list-technique {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2rem;
    column-gap: 0;
  }
  .filter-dropdown {
    width: 100%;
  }
  .archive-product-layout .archive-filters,
  .archive-video-layout .archive-filters {
    width: 100%;
  }
  .nav-category-techni .swiper-button {
    display: none;
  }
  .box-technique.vertical-card {
    row-gap: 0;
  }
  .archive-video-layout .list-technique {
    row-gap: 2.5rem;
  }
  .archive-sidebar .sidebar-banner img {
    margin-bottom: 1.6rem;
  }

  /* Modal Filter Layout 1 */
  .mobile-filter-trigger {
    display: block;
  }
  .btn-filter-open {
    display: flex;
    align-items: center;
    column-gap: 0.8rem;
    padding: 0.8rem 1.6rem;
    background: #f2f4f7;
    border-radius: 0.6rem;
    color: var(--black-color-400);
    font-size: 1.6rem;
    font-weight: 500;
    cursor: pointer;
  }
  .archive-filter-layout .col-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
  }
  .archive-filter-layout .col-left.active {
    visibility: visible;
    opacity: 1;
  }
  .archive-filter-layout .col-left .modal-filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
  }
  .archive-filter-layout .col-left .col-inner {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    max-height: 90%;
    background: #fff;
    border-radius: 2rem 2rem 0 0;
    z-index: 2;
    transition: bottom 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  }
  .archive-filter-layout .col-left.active .col-inner {
    bottom: 0;
  }
  .modal-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.2rem 2rem;
    position: relative;
    flex-shrink: 0;
    background-color: var(--orange-color-400);
  }
  .btn-filter-close i {
    font-weight: 300;
    color: var(--black-color);
  }
  .modal-filter-header .modal-title {
    font-size: 2rem;
    font-weight: 500;
    color: var(--black-color);
    letter-spacing: 0.05em;
  }
  .btn-filter-close {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.8rem;
    color: #333;
    cursor: pointer;
    line-height: 0;
  }
  .modal-filter-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem 0 3rem;
  }
  .modal-filter-footer {
    display: block;
    padding: 2rem;
    border-top: 1px solid #f2f4f7;
    flex-shrink: 0;
    background: #fff;
  }
  .btn-apply-filter {
    width: 100%;
    background-color: var(--orange-color);
    color: #fff;
    border: none;
    height: 4.5rem;
    border-radius: 10rem;
    font-weight: 500;
    font-size: 1.8rem;
  }

  .archive-filter-layout .col-left .col-inner .icon-box,
  .archive-filter-layout .modal-filter-body {
    display: none;
  }
  .box-filter .box-item {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.6rem;
  }
  .box-filter .box-item span {
    font-size: 1.6rem;
  }
  .box-filter .title {
    font-size: 1.8rem;
  }
}
