@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@100;200;300;400;500;600;700;800;900&display=swap");

body {
  margin: 0;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  color: #1f2937;
  background-color: #f8fafc;
}

.site-header,
.site-footer {
  background-color: #0f172a;
  color: #ffffff;
  padding: 1rem;
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.layout-two-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 992px) {
  .layout-two-columns {
    grid-template-columns: 2fr 1fr;
  }
}

.content-area,
.sidebar-area {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

/* Header logo — kích thước theo thiết kế, tránh mở rộng theme Tailwind */
.site-header__logo {
  display: block;
  height: 65px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Trang chủ — cặp nút hero (padding theo thiết kế) */
.front-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 38px;
  text-decoration: none;
}

/* —— View « view_products »: form lộ ra + BEF (checkbox / nút) khớp layout template —— */
.products-catalog-exposed-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.products-catalog-exposed-form fieldset legend {
  float: none;
  width: 100%;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
  padding: 0;
}

.products-catalog-exposed-form .bef-checkboxes,
.products-catalog-exposed-form .products-catalog-bef-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.products-catalog-exposed-form .bef-checkboxes .form-type-checkbox,
.products-catalog-exposed-form .products-catalog-bef-checkboxes .form-type-checkbox {
  margin: 0;
}

.products-catalog-exposed-form .bef-checkboxes .form-type-checkbox input[type="checkbox"],
.products-catalog-exposed-form .products-catalog-bef-checkboxes .form-type-checkbox input[type="checkbox"] {
  appearance: none;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  border-radius: 0.25rem;
  border: 1px solid #cbd5e1;
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.products-catalog-exposed-form .bef-checkboxes .form-type-checkbox input[type="checkbox"]:hover,
.products-catalog-exposed-form .products-catalog-bef-checkboxes .form-type-checkbox input[type="checkbox"]:hover {
  border-color: #03ace3;
}

.products-catalog-exposed-form .bef-checkboxes .form-type-checkbox input[type="checkbox"]:checked,
.products-catalog-exposed-form .products-catalog-bef-checkboxes .form-type-checkbox input[type="checkbox"]:checked {
  background-color: #03ace3;
  border-color: #03ace3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.products-catalog-exposed-form .form-actions input[type="submit"] {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background-color: #03ace3;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.products-catalog-exposed-form .form-actions input[type="submit"]:hover {
  background-color: #0289b5;
}

.products-catalog-exposed-form .form-actions input[type="submit"]:focus-visible {
  outline: 2px solid #03ace3;
  outline-offset: 2px;
}

/* BEF autosubmit_hide: Drupal gắn .js-hide — rule phía trên dùng display:flex nên cần ghi đè. */
.js .products-catalog-exposed-form .form-actions input[type="submit"].js-hide {
  display: none !important;
}

.products-catalog-exposed-form .form-actions input[type="reset"],
.products-catalog-exposed-form .form-actions a.button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.products-catalog-exposed-form .form-actions input[type="reset"]:hover,
.products-catalog-exposed-form .form-actions a.button:hover {
  background-color: #e2e8f0;
}

/* Sắp xếp (exposed sort) nếu nằm cùng block lọc */
.products-catalog-exposed-form .form-type-select select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #0f172a;
  background-color: #fff;
}
.products-catalog-exposed-form .form-item.form-type-checkbox {
  display: flex;
  gap: 10px;
}

/* Chi tiết sản phẩm — Swiper (php-template/product-detail.html), không đặt trong tailwind.input để tránh nhầm với output JIT */
.product-thumb-slider .swiper-slide-thumb-active {
  border-color: #03ace3;
}

.product-main-next,
.product-main-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.8);
}

.product-main-next {
  right: 12px;
}

.product-main-prev {
  left: 12px;
}

/* Local tasks (View/Edit/Delete/Revisions) on frontend: keep below sticky header. */
.block-local-tasks-block,
.tabs,
ul.tabs,
ul.tabs.primary,
ul.tabs.secondary {
  position: relative !important;
  z-index: 1 !important;
}

.block-local-tasks-block {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

ul.tabs.primary,
ul.tabs.secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.tabs.primary li,
ul.tabs.secondary li {
  margin: 0;
}

ul.tabs.primary a,
ul.tabs.secondary a {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: #334155;
  text-decoration: none;
  background: #ffffff;
}

ul.tabs.primary a:hover,
ul.tabs.secondary a:hover {
  background: #f8fafc;
}

/* Drupal local tasks block without default .tabs classes. */
#block-cassiopeia-theme-primary-local-tasks {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#block-cassiopeia-theme-primary-local-tasks > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#block-cassiopeia-theme-primary-local-tasks > ul > li {
  margin: 0;
}

#block-cassiopeia-theme-primary-local-tasks > ul > li > a {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: #334155;
  text-decoration: none;
  background: #ffffff;
}

#block-cassiopeia-theme-primary-local-tasks > ul > li > a.is-active,
#block-cassiopeia-theme-primary-local-tasks > ul > li > a[aria-current="page"] {
  color: #0f172a;
  border-color: #cbd5e1;
  background: #f8fafc;
}

/* Pager */
.pager__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.pager__item {
  margin: 0;
}

.pager__item > a {
  display: inline-flex;
  min-width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0 0.75rem;
  background: #ffffff;
  color: #334155;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pager__item > a:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.pager__item.is-active > a,
.pager__item > a[aria-current="page"] {
  border-color: #03ace3;
  background: #03ace3;
  color: #ffffff;
}

.pager__item--next > a,
.pager__item--last > a,
.pager__item--first > a,
.pager__item--previous > a {
  min-width: 2.5rem;
  font-size: 1rem;
}
#block-cassiopeia-theme-mainnavigation>ul{
  display: flex;
  gap: 25px;
}
#block-cassiopeia-theme-mainnavigation>ul a{
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25rem;
}
#block-cassiopeia-theme-mainnavigation>ul a:hover{
  color: #03ace3;
}



@keyframes primaryNavIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* —— View « tin_tuc »: ảnh thẻ + excerpt + phân trang (php-template/news.html) —— */
.view-tin-tuc .news-catalog-grid a.group img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.view-tin-tuc .news-catalog-grid a.group:hover img {
  transform: scale(1.06);
}

.view-tin-tuc .news-card-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.view-tin-tuc .news-card-excerpt p {
  margin: 0;
}

.view-tin-tuc .news-catalog-grid h3.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.view-tin-tuc .pager {
  margin-top: 5rem;
}

.view-tin-tuc .pager__item > a {
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  padding: 0;
}

.view-tin-tuc .pager__item.is-active > a,
.view-tin-tuc .pager__item > a[aria-current="page"] {
  border-radius: 0.75rem;
}

/* Form liên hệ trang /lien-he (ContactRequestForm variant contact_page) */
.tuenhi-contact-form--page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tuenhi-contact-form--page .form-item {
  margin: 0;
}

.tuenhi-contact-form--page .form-item label {
  display: block;
  margin-bottom: 0.5rem;
  margin-left: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
}

.tuenhi-contact-form--page .form-actions {
  margin: 0;
  padding-top: 0;
}

.tuenhi-contact-form--page .form-actions input[type="submit"] {
  position: relative;
  width: 100%;
  height: 4rem;
  border: 0;
  border-radius: 0.75rem;
  background: #03ace3;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 900;
  text-indent: 1.75rem;
  box-shadow: 0 20px 25px -5px rgba(3, 172, 227, 0.2), 0 8px 10px -6px rgba(3, 172, 227, 0.2);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.tuenhi-contact-form--page .form-actions input[type="submit"]:hover {
  background: #0289b5;
  transform: scale(1.02);
}

.tuenhi-contact-form--page .form-actions input[type="submit"]:active {
  transform: scale(0.98);
}

.tuenhi-contact-submit-wrap {
  position: relative;
  display: block;
}

.tuenhi-contact-submit-icon {
  position: absolute;
  top: 50%;
  left: calc(50% - 86px);
  z-index: 2;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
  color: #fff;
  pointer-events: none;
}

.tuenhi-message-hidden {
  display: none !important;
}

.tuenhi-message-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tuenhi-message-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
}

.tuenhi-message-modal__dialog {
  position: relative;
  width: min(32rem, 100%);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35);
  padding: 1.25rem 1.25rem 1rem;
  animation: tuenhiMessageIn 0.18s ease-out;
}

.tuenhi-message-modal__title {
  margin: 0 2rem 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: #03ace3;
}

.tuenhi-message-modal__body {
  margin: 0;
  color: #1f2937;
  line-height: 1.6;
  font-weight: 500;
}

.tuenhi-message-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.tuenhi-message-modal.is-closing .tuenhi-message-modal__dialog {
  animation: tuenhiMessageOut 0.18s ease-in forwards;
}

@keyframes tuenhiMessageIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tuenhiMessageOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

.tuenhi-header-search {
  position: relative;
}

.tuenhi-header-search__toggle {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  /*border: 1px solid #e2e8f0;*/
  /*border-radius: 9999px;*/
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}

.tuenhi-header-search__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(90vw, 26rem);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
  z-index: 60;
  overflow: hidden;
}

.tuenhi-header-search__input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: #0f172a;
}

.tuenhi-header-search__input:focus {
  outline: none;
}

.tuenhi-header-search__results {
  max-height: 22rem;
  overflow-y: auto;
}

.tuenhi-header-search__item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
}

.tuenhi-header-search__item:hover,
.tuenhi-header-search__item.is-active {
  background: #f8fafc;
}

.tuenhi-header-search__thumb {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.tuenhi-header-search__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tuenhi-header-search__thumb--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.tuenhi-header-search__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tuenhi-header-search__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tuenhi-header-search__sku {
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: #475569;
}

.tuenhi-header-search__empty {
  padding: 0.85rem 1rem;
  color: #64748b;
  font-size: 0.88rem;
}
footer .site-header__logo{
  height: auto;
}
@media (max-width: 767px) {
  .primary-nav {
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    transform-origin: top center;
    top:0px;
  }

  .primary-nav:not(.hidden) {
    animation: primaryNavIn 0.18s ease-out;
  }

  #block-cassiopeia-theme-mainnavigation {
    width: 100%;
  }

  #block-cassiopeia-theme-mainnavigation > ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  #block-cassiopeia-theme-mainnavigation > ul > li + li {
    border-top: 1px solid #f1f5f9;
  }

  #block-cassiopeia-theme-mainnavigation > ul > li > a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    line-height: 1.4;
  }
  .tuenhi-header-search__panel{
    right: -120px;
  }
  .xs\:py-30 {
    padding:30px 0px;
  }
  .home-hero h1{
    font-size: 38px;
  }
  .home-hero .front-hero__cta{
    padding: 7px 30px;
  }
  .xs\:gap-10 {
    gap:10px;
  }
  .gap-16{
    gap:16px;
  }
  .py-24{
    padding:24px 0px;
  }
  .xs\:text-center{
    text-align: center;
  }
  .mb-6{
    margin-bottom: 12px;
  }
  .p-8{
    padding:16px;
  }
  .p-12{
    padding:24px;
  }
  .gap-8{
    gap: 8px;
  }
  .gap-12{
    gap:12px;
  }
  .my-10{
    margin: 20px 0px;
  }
  .pt-8{
    padding-top: 8px;
  }
  .mt-8{
    margin-top: 8px;
  }
  .xs\:flex-wrap{
    flex-wrap: wrap;
  }
  .mb-16{
    margin-bottom: 16px;
  }
  .pt-24{
    padding-top:24px;
  }
  .pt-20 {
    padding-top: 20px;
  }
  .mt-32 {
    margin-top: 32px;
  }
  .pb-20 {
    padding-bottom: 20px;
  }
}
