/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

html {
  background-color: #fff;
}
:root {
  --primary-color: #886d49;
  --secondary-color: #b4a598;
  --dark-text: #2c3e50;
  --sub-text: #34495e;
  --light-background: #ecf0f1;
  --milky-background: #f8f9fa;
}
body {
  font-family: "SVN Gilroy", sans-serif;
  font-weight: 500;
  font-size: 15px;
}

.nav > li > a,
.mobile-sidebar-levels-2 .nav > li > ul > li > a {
  font-family: "SVN Gilroy", sans-serif;
  font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading-font,
.off-canvas-center .nav-sidebar.nav-vertical > li > a {
  font-family: "SVN Gilroy", sans-serif;
}
blockquote,
dl,
figure,
form,
ol,
p,
pre,
ul {
  margin-bottom: 10px;
}

.no-padding-bottom {
  padding-bottom: 0px !important;
}
.btn-section .button {
  font-weight: 600;
  text-transform: capitalize !important;
  font-size: 14px;
}
/*--------------------------------------------------------------
# HEADER
--------------------------------------------------------------*/
.header {
  background: #886d49;
}
.nav-spacing-xlarge > li {
  margin: 0 30px;
}

@media (max-width: 849px) {
  .header-main li.html.custom {
    display: block;
  }
}

@media (max-width: 549px) {
  #logo img {
    max-height: 50px !important;
  }
}

/*--------------------------------------------------------------
# SEARCH BAR
--------------------------------------------------------------*/
#header input[type="search"] {
  border-radius: unset;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
  border: 1px solid var(--secondary-color);
  height: 38px;
}
#header input[type="search"]:focus {
  box-shadow: none;
}
.searchform .button.icon {
  border-radius: unset;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  background-color: var(--secondary-color) !important;
  border: none;
  margin: 0px;
  min-width: 50px;
  height: 38px;
}
.autocomplete-suggestion {
  background-color: white;
}

.html_topbar_right {
  width: 100%;
  padding-right: 40px !important;
}
@media (max-width: 850px) {
  .html_topbar_right {
    padding-right: 0px !important;
  }
}
/* --- Style cho Form tìm kiếm Nâng cao --- */
.idm-advanced-search {
  position: relative;
  width: 100%;
}
.idm-search-wrapper {
  display: flex;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.07);
  height: 38px;
}
.idm-location-filter {
  border-right: 1px solid #e5e7eb;
}
.idm-location-filter select,
.idm-keyword-input input {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  height: 38px;
  font-size: 16px;
  padding: 0 15px;
}
.idm-keyword-input {
  flex-grow: 1;
}
.idm-keyword-input input {
  padding-left: 20px;
  width: 100%;
}
.idm-location-filter select {
  min-width: 150px;
  cursor: pointer;
}
.idm-submit-button button {
  border: none;
  background: transparent;
  height: 42px;
  width: 50px;
  cursor: pointer;
  font-size: 1.2em;
  color: white;
  margin-right: 0px;
}
.idm-live-search-results {
  display: none;
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  border-radius: 3px;
  z-index: 999;
  max-height: 400px;
  overflow-y: auto;
}
.idm-suggestion-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}
.idm-suggestion-item:last-child {
  border-bottom: none;
}
.idm-suggestion-item:hover {
  background-color: #f4f5f7;
}
.idm-suggestion-image {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}
.idm-suggestion-title {
  font-weight: 500;
  color: #374151;
}
.idm-suggestion-price {
  font-size: 0.9em;
  color: #166534;
}

/* Thêm vào file CSS của bạn */
.idm-submit-button button .loading-spin {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.idm-no-results {
  padding: 20px;
  text-align: center;
  color: #777;
  font-style: italic;
}
/*--------------------------------------------------------------
# BANNER SECTION
--------------------------------------------------------------*/
.banner-section .slideTitle {
  line-height: 1.2;
  color: var(--milky-white);
  text-transform: uppercase;
  font-size: 30px;
}
.slider-nav-light .flickity-prev-next-button svg {
  background-color: rgba(245, 238, 230, 0.3);
  border: none;
}
.slider-nav-light .flickity-prev-next-button .arrow {
  fill: rgba(245, 238, 230, 0.5);
}
.slider .flickity-prev-next-button:hover svg {
  background-color: rgba(245, 238, 230, 0.3) !important;
  border: none !important;
}
.slider .flickity-prev-next-button:hover .arrow {
  fill: rgba(245, 238, 230, 0.5) !important;
}
.slider-nav-light .flickity-page-dots {
  bottom: 30px;
}
.slider-nav-light .flickity-page-dots .dot {
  margin: 0;
  margin-left: 10px;
  margin-right: 10px;
  width: 60px;
  position: relative;
  display: inline-block;
  height: 4px;
  border-radius: 4px;
  border-color: var(--dark-text);
  opacity: 1;
}
.slider-nav-light .flickity-page-dots .dot.is-selected {
  border-color: white;
}

/*--------------------------------------------------------------
# PROVINCE SECTION
--------------------------------------------------------------*/
.province-section {
  padding: 40px 0;
}
/* --- Giao diện trang chọn địa điểm massage --- */

.spa-location-selector .page-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 0 1rem;
}

.spa-location-selector .page-title {
  font-size: 30px;
  font-weight: 300;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}

.spa-location-selector .page-subtitle {
  font-size: 1.1rem;
  color: var(--sub-text);
  max-width: 600px;
  margin: 0 auto;
}

.location-grid {
  display: flex; /* Chuyển sang Flexbox */
  flex-wrap: wrap; /* Cho phép các item tự động xuống hàng */
  gap: 30px; /* Giữ khoảng cách giữa các item */
  justify-content: center; /* (Tùy chọn) Căn giữa các item trên hàng cuối cùng */
}

.location-card {
  /* flex: flex-grow | flex-shrink | flex-basis */
  flex: 1 1 280px;

  /* Các thuộc tính cũ giữ nguyên */
  position: relative;
  display: block;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-decoration: none;
}

.location-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.location-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Đảm bảo ảnh luôn vừa vặn, không bị méo */
  transition: transform 0.6s ease;
}

.location-card:hover .location-card-image {
  transform: scale(1.1);
}

.location-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 50%
  ); /* Lớp phủ mờ ở dưới để chữ nổi bật */
  transition: background-color 0.4s ease;
}

.location-card:hover .location-card-overlay {
  background-color: rgba(0, 0, 0, 0.2);
}

.location-card-title {
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 25px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: color 0.4s ease;
}
.location-notice {
  text-align: center;
}
.back-to-province {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
  margin-bottom: 1rem;
  cursor: pointer;
}

.back-to-province:hover {
  color: var(--dark-text);
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  transform: translateX(-2px);
}

.back-to-province::before {
  content: "←";
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.back-to-province:hover::before {
  transform: translateX(-2px);
}

/*--------------------------------------------------------------
# PRODUCT ARCHIVE
--------------------------------------------------------------*/
.shop-header-title {
  font-weight: 700;
  font-size: 20px;
  position: relative;
  border-bottom: 1px solid #e8e8e8;
  line-height: 30px;
  padding-top: 7px;
  text-align: left;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.shop-category-info {
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
.tool_box {
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.left_tool_box {
  display: none;
  align-items: center;
  gap: 20px;
}
.left_tool_box label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 0px;
}
.left_tool_box input[type="radio"] {
  margin: 0;
}
.tool_box-mobile form {
  width: 100%;
}
@media (min-width: 700px) {
  .left_tool_box {
    display: flex;
  }
  .tool_box-mobile {
    display: none;
  }
}

.product-small .product-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: 10px;
}
.product-small .product-location-info {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.product-small span.amount {
  color: var(--primary-color);
}
/*--------------------------------------------------------------
# PRODUCT SIDEBAR
--------------------------------------------------------------*/
.ss-sidebar-header {
  padding: 0.5rem 0.75rem;
  background-color: rgba(245, 245, 248, 1);
  border-left: 2px solid var(--sub-text);
}

.ss-sidebar-title {
  font-weight: 600;
}

.ss-category-group,
.ss-product-item-group {
  margin-top: 10px;
}

.ss-category-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.ss-dropdown-icon {
  transition: transform 0.2s ease;
}

.ss-category-header.open .ss-dropdown-icon {
  transform: rotate(180deg);
}

/* Hiệu ứng xổ mượt bằng max-height */
.ss-subcategory-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 15px;
  border-left: 1px solid rgba(92, 92, 95, 0.1);
}

.ss-subcategory-list.active {
  max-height: 1000px; /* hoặc có thể dùng JS set cụ thể */
  border-left: 1px solid rgba(92, 92, 95, 0.4);
}

.ss-subcategory-item a {
  display: block;
  padding: 4px 0;
  color: #444;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ss-subcategory-item a:hover {
  color: var(--sub-text);
}

.ss-subcategory-list.child {
  padding-left: 15px;
}

.ss-dropdown-icon svg {
  transition: transform 0.3s ease;
  transform: rotate(-90deg); /* Mặc định: mũi tên sang phải */
}

.ss-category-header.open .ss-dropdown-icon svg {
  transform: rotate(180deg); /* Khi mở: mũi tên hướng xuống */
}

/* Featured product styles (giữ nguyên nếu dùng chung layout) */
.ss-product-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.ss-product-image {
  width: 60px;
  height: 60px;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
}

.ss-product-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.ss-product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ss-product-name a {
  font-weight: 500;
  color: #333;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.ss-product-name a:hover {
  color: var(--primary-color);
}

.ss-product-detail {
  font-size: 0.875rem;
  color: #666;
}
.nav-pagination > li > a,
.nav-pagination > li > span {
  border-radius: unset;
  border: 1px solid #dee2e6;
}
.price.busy-status {
  color: #e53935; /* Màu đỏ */
  font-weight: 600;
  font-size: 20px;
}

/*--------------------------------------------------------------
# PRODUCT GALLERY
--------------------------------------------------------------*/
/* Tùy chỉnh cho Swiper Gallery */
.custom-swiper-gallery {
  position: relative;
  overflow: hidden;
}

/* --- CSS cho Slider chính --- */

.gallery-top {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
  /* (Tùy chọn) Thêm một màu nền nhẹ để trông đẹp hơn khi ảnh không lấp đầy */
  background-color: #f7f7f9;
}

.gallery-top .swiper-slide {
  text-align: center;

  /* ---- BẮT ĐẦU THAY ĐỔI QUAN TRỌNG ---- */
  display: flex; /* Kích hoạt Flexbox */
  justify-content: center; /* Căn giữa ảnh theo chiều ngang */
  align-items: center; /* Căn giữa ảnh theo chiều dọc */
  height: 535px;
  /* ---- KẾT THÚC THAY ĐỔI QUAN TRỌNG ---- */
}

.gallery-top .swiper-slide img {
  display: block;

  /* ---- BẮT ĐẦU THAY ĐỔI QUAN TRỌNG ---- */
  max-width: 100%; /* Đảm bảo ảnh không bị tràn ra ngoài theo chiều ngang */
  max-height: 100%; /* Đảm bảo ảnh không bị tràn ra ngoài theo chiều dọc */
  width: auto; /* Để ảnh tự co giãn tỷ lệ chiều ngang */
  height: auto; /* Để ảnh tự co giãn tỷ lệ chiều dọc */

  /* Dùng 'object-fit' nếu bạn muốn kiểm soát chặt chẽ hơn (tùy chọn) */
  /* object-fit: contain; */
  /* ---- KẾT THÚC THAY ĐỔI QUAN TRỌNG ---- */
}

/* --- CSS cho Slider thumbnail (cũng nên áp dụng tương tự) --- */
.gallery-thumbs {
  /* DÒNG QUAN TRỌNG NHẤT: Đặt một chiều cao cố định */
  height: 100px; /* Bạn có thể thay đổi số 100px này */

  box-sizing: border-box;
  padding: 10px 0;
}
.gallery-thumbs .swiper-slide {
  width: 25%;
  height: 100%;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s ease;

  /* Thêm các thuộc tính flex để căn giữa ảnh thumb */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Ẩn các phần thừa của ảnh */
  background: #f7f7f9;
}

.gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #334862;
  border-radius: 3px;
}

.gallery-thumbs .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;

  /* Dùng 'cover' cho thumbnail để ảnh luôn lấp đầy ô */
  object-fit: cover;
  border-radius: 2px;
}

@media (max-width: 580px) {
  .gallery-top .swiper-slide {
    height: 480px;
  }
}

/*--------------------------------------------------------------
# PRODUCT SUMMARY
--------------------------------------------------------------*/

.woocommerce-variation-add-to-cart {
  display: flex;
  flex-direction: column;
}

.inclusive-price-notice {
  background-color: #e8f5e9; /* Nền xanh lá cây rất nhạt */
  color: #2e7d32; /* Chữ màu xanh lá cây đậm */
  border: 1px solid #c8e6c9;
  border-left: 4px solid #4caf50; /* Viền trái màu xanh đậm hơn */
  padding: 12px 18px;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: 500;
  margin: 15px 0;
  display: flex;
  align-items: center;
}

.inclusive-price-notice .icon-shield {
  margin-right: 10px;
  font-size: 1.2em;
}
.product-main {
  background-color: #f5f5f8;
  padding-top: 10px;
}
.new-product-title-container {
  border-bottom: 1px solid #e5e5e5;
  margin-top: 10px;
  margin-bottom: 20px;
}
.new-product-title-container .product-title {
  font-size: 20px;
  font-weight: 600;
}
.product-single-wrapper {
  padding: 10px;
  background-color: white;
  border-radius: 10px;
}
.ktv-custom-info {
  margin-bottom: 15px;
}
.ktv-custom-info p {
  text-transform: uppercase;
}
.product-single-wrapper .price-wrapper .price {
  margin-bottom: 0px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0px;
}

.product-main span.amount {
  color: var(--primary-color);
  font-size: 20px;
  display: flex;
  align-items: center;
}
.variations_form tr:is(:first-child) {
  padding-top: 0px;
}
.variations_form tr {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  padding-top: 20px;
}
.variations_form tr .label {
  font-size: 18px;
}
.variations .reset_variations {
  bottom: 94%;
}
.woocommerce-variation-price {
  display: none;
}
.ux-swatch {
  box-shadow: 0 0 0 1px #cccccc inset;
  color: rgba(33, 33, 33, 1);
  background: rgba(255, 255, 255, 1);
  border-radius: 5px;
  padding: 10px 10px;
  font-size: 14px;
}
.ux-swatch.selected {
  color: rgba(255, 255, 255, 1);
  background: rgba(216, 191, 164, 1);
  box-shadow: 0 0 0 1px rgba(216, 191, 164, 1) inset;
}
.product-main .single_add_to_cart_button.button {
  background-color: var(--primary-color) !important;
  border-radius: 5px;
}
.quantity .button.minus {
  border-bottom-left-radius: 5px !important;
  border-top-left-radius: 5px !important;
}
.quantity .button.plus {
  border-bottom-right-radius: 5px !important;
  border-top-right-radius: 5px !important;
}
/*--------------------------------------------------------------
# PRODUCT INFO
--------------------------------------------------------------*/

/* Style cho khối nút hành động của KTV */
.ktv-action-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #f0f0f0;
}

.ktv-action-buttons .button {
  margin: 0 !important; /* Ghi đè margin mặc định của theme Flatsome */
  text-align: center;
}
.booking-btn {
  border-radius: 5px;
  text-transform: capitalize;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
}
.booking-btn span {
  display: flex;
  align-items: center;
}
.booking-btn svg {
  width: 20px;
  height: 20px;
  color: white;
  fill: white;
}
.product-para {
  padding: 00px 0px 50px 0px;
  background-color: #f5f5f8;
}
.product-para-inner {
  padding: 40px;
  background-color: white;
  border-radius: 10px;
}
.product-para-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}
.papra-content-wrapper {
  position: relative;
}
.papra-content {
  max-height: 800px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.papra-fade {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.papra-toggle-btn {
  display: block;
  margin: 20px auto;
  text-transform: capitalize;
  padding: 2px 36px;
  border: 1px solid var(--dark-text);
  border-radius: 0.5rem;
  color: var(--secondary-color);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  letter-spacing: 0.03em;
  line-height: 2.4em;
}
.papra-toggle-btn:hover {
  background: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}
.papra-content.open {
  max-height: none;
}
.papra-fade.hidden {
  opacity: 0;
}

@media (max-width: 768px) {
  .product-info {
    padding-top: 10px;
  }
  .product-para-inner {
    padding: 20px;
  }
  .ktv-action-buttons {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# PRODUCT RELATED
--------------------------------------------------------------*/
/* --- CSS cho Slider KTV liên quan --- */
.rela-ktv-section {
  padding: 40px 0;
  background-color: #f9f9f9; /* Màu nền nhẹ để tách biệt khu vực */
}

.rela-ktv-swiper {
  padding-bottom: 40px !important; /* Thêm không gian cho pagination */
}

.ktv-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.ktv-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.ktv-card-image {
  padding-top: 100%;
  position: relative;
  overflow: hidden;
  height: 0;
}
.ktv-card-image a {
  display: block;
}

.ktv-card-image img {
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ktv-card-info {
  padding: 15px;
  text-align: left;
}

.ktv-location {
  font-size: 0.8em;
  color: #888;
  margin-bottom: 5px;
}

.ktv-name {
  font-size: 14px;
  margin: 0 0 10px 0;
}

.ktv-name a {
  text-decoration: none;
  color: #333;
}

.ktv-price .price {
  font-size: 14px;
  font-weight: bold;
  color: var(--primary-color); /* Màu giá đặc trưng */
}

/* Pagination của Swiper */
.rela-ktv-swiper .swiper-pagination-bullet {
  background: var(--primary-color);
}
/*--------------------------------------------------------------
# MINICART
--------------------------------------------------------------*/
.widget_shopping_cart ul.product_list_widget li a:not(.remove) {
  font-size: 12px;
  color: var(--dark-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.widget_shopping_cart ul.product_list_widget li dl {
  line-height: 1.2;
  text-transform: none;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--sub-text);
}
.widget_shopping_cart .button {
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
}

/*--------------------------------------------------------------
# CHECK OUT
--------------------------------------------------------------*/
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
textarea {
  box-shadow: none;
  border: 1px solid var(--dark-text);
  border-radius: 5px;
}
.has-border {
  background-color: #f9f9f9; /* Màu nền nhẹ cho toàn bộ khung */
  border: 1px solid #e0e0e0;
  padding: 30px;
  border-radius: 8px;
}

/* Bảng sản phẩm */
.woocommerce-checkout-review-order-table {
  width: 100%;
  border: none;
  border-collapse: collapse;
}

/* Tiêu đề bảng (Sản phẩm, Tạm tính) */
.woocommerce-checkout-review-order-table thead th {
  border-bottom: 2px solid #ddd;
  text-transform: uppercase;
  font-size: 0.9em;
  color: #555;
  padding-bottom: 10px;
}

/* Các ô trong bảng */
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 20px 0;
  border-bottom: 1px solid #eaeaea; /* Đường kẻ ngang mờ ngăn cách các dòng */
  vertical-align: middle;
}

/* Tên sản phẩm */
.woocommerce-checkout-review-order-table .product-name {
  font-weight: 600;
  color: var(--dark-text);
  font-size: 14px;
}
.woocommerce-checkout-review-order-table .variation {
  text-transform: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--sub-text);
}

/* Số lượng sản phẩm */
.woocommerce-checkout-review-order-table .product-quantity {
  font-weight: 500;
  color: var(--sub-text);
}

/* Giá tiền của từng sản phẩm */
.woocommerce-checkout-review-order-table .product-total {
  text-align: right;
}

/* Phần footer của bảng (Tạm tính, Tổng) */
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
  font-weight: 600;
}

/* Loại bỏ đường kẻ cuối cùng */
.woocommerce-checkout-review-order-table tfoot tr:last-child th,
.woocommerce-checkout-review-order-table tfoot tr:last-child td {
  border-bottom: none;
}

/* Dòng Tổng cộng cuối cùng */
.woocommerce-checkout-review-order-table .order-total {
  font-size: 1.4em; /* Làm cho dòng tổng to và nổi bật hơn */
  color: var(--dark-text);
}

.woocommerce-checkout-review-order-table .order-total td {
  text-align: right;
}

/* --- Khung Phương thức thanh toán --- */
#payment {
  background-color: transparent; /* Bỏ nền trắng mặc định */
  border-radius: 0;
  padding: 0;
  margin-top: 30px;
}

#payment ul.wc_payment_methods {
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 8px;
}

#payment .payment_method_cod label {
  font-size: 1.1em;
  font-weight: bold;
}

#payment .payment_box {
  background-color: #f1f1f1 !important; /* Dùng !important nếu theme ghi đè */
  padding: 15px;
  margin-top: 10px;
  border-radius: 5px;
  font-size: 0.95em;
}

/* Nút "Đặt hàng" */
#place_order.button {
  width: 100%;
  padding: 12px 20px !important;
  font-size: 15px !important;
  letter-spacing: 2px;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

/*--------------------------------------------------------------
# CART
--------------------------------------------------------------*/

/* Bỏ nền và padding mặc định của Flatsome để tùy chỉnh lại */
.woocommerce .cart-wrapper,
.woocommerce .cart-collaterals {
  padding: 0;
  background-color: transparent;
}

/* --- CỘT BÊN TRÁI: DANH SÁCH SẢN PHẨM --- */

/* Bảng giỏ hàng chính */
.shop_table.cart {
  border: none !important; /* Bỏ border mặc định */
}

/* Tiêu đề bảng */
.shop_table.cart thead {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-bottom: 2px solid #dee2e6;
  border-radius: 8px 8px 0 0;
}

.shop_table.cart thead th {
  padding: 15px 20px;
  font-size: 14px;
  color: var(--dark-text);
  text-transform: none;
}

/* Mỗi dòng sản phẩm */
.shop_table.cart tbody tr.cart_item {
  border: 1px solid #dee2e6;
  border-top: none;
}

.shop_table.cart tbody tr.cart_item td {
  vertical-align: middle;
}
.shop_table.cart tbody tr.cart_item td a {
  font-weight: 600;
  color: var(--dark-text);
  font-size: 12px;
}
.shop_table.cart tbody tr.cart_item td .variation {
  text-transform: none;
  font-size: 12px;
  color: var(--sub-text);
}

/* Nút xóa sản phẩm */
.product-remove .remove {
  font-size: 1.8em !important;
  font-weight: bold;
  color: #adb5bd !important;
  transition: color 0.3s ease;
  text-decoration: none !important;
  height: 20px !important;
  width: 20px !important;
  line-height: 20px !important;
}
.product-remove .remove:hover {
  color: #e53935 !important;
  background-color: #f1f1f1 !important;
}

/* Ảnh đại diện sản phẩm */
.product-thumbnail img {
  width: 65px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Ô số lượng */
.quantity .input-text.qty {
  border: 1px solid #ced4da !important;
  width: 60px !important;
  text-align: center;
  font-weight: bold;
}
.quantity .plus,
.quantity .minus {
  border-radius: 50% !important;
  background-color: #f1f1f1 !important;
}

/* Dòng Actions cuối bảng */
.shop_table button,
.continue-shopping a {
  padding: 0 1.2em;
  border-radius: 5px;
  text-transform: capitalize;
  font-weight: 500;
}
/* --- CỘT BÊN PHẢI: TỔNG CỘNG GIỎ HÀNG --- */

.woocommerce .cart-collaterals {
  border-left: none !important;
}

/* Hộp tóm tắt */
.cart-collaterals .cart_totals {
  background-color: #f8f9fa;
  padding: 30px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
}

.cart_totals h2 {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ddd;
}

.cart_totals .shop_table {
  width: 100%;
  border: none !important;
}

.cart_totals .shop_table tr {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
}

.cart_totals .shop_table tr:last-child {
  border-bottom: none;
}

.cart_totals .shop_table td,
.cart_totals .shop_table th {
  padding: 0;
  border: none;
  font-size: 1.05em;
}

.cart_totals .order-total {
  font-size: 1.2em;
  font-weight: bold;
  padding-top: 15px !important;
}

.cart_totals .order-total td,
.cart_totals .order-total th {
  font-size: 1.3em;
  font-weight: bold;
}

/* Nút "Tiến hành thanh toán" */
.wc-proceed-to-checkout .checkout-button {
  font-size: 15px !important;
  text-transform: uppercase;
  font-weight: bold;
  padding: 12px 20px !important;
  border-radius: 8px;
  background-color: var(--dark-text) !important;
  letter-spacing: 2px;
}
.return-to-shop .button {
  border-radius: 5px;
  font-size: 14px;
  text-transform: none;
  font-weight: 500;
}

/*--------------------------------------------------------------
# ORDER DETAIL
--------------------------------------------------------------*/

/* Bố cục chung */
.woocommerce-order {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

/* --- CỘT BÊN PHẢI: HỘP TÓM TẮT ĐƠN HÀNG (QUAN TRỌNG NHẤT) --- */
.woocommerce-order .col.large-5 .is-well {
  background-color: #f8f9fa; /* Màu nền nhẹ nhàng */
  border: 1px solid #e9ecef;
  border-left: 5px solid var(--primary-color); /* Viền xanh lá cây báo hiệu thành công */
  padding: 30px;
  border-radius: 8px;
  position: sticky;
  top: 100px;
}

/* Dòng "Cảm ơn bạn. Đơn hàng của bạn đã được nhận." */
.woocommerce-thankyou-order-received {
  font-size: 18px !important;
  font-weight: 600;
  color: var(--primary-color) !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin-bottom: 25px !important;
  text-align: left !important;
  border: none !important;
}

/* Danh sách tóm tắt (Mã đơn, Ngày, Email, Tổng cộng...) */
ul.woocommerce-order-overview {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.woocommerce-order-overview li {
  display: flex;
  justify-content: space-between; /* Đẩy nội dung sang 2 bên */
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #dee2e6;
  font-size: 1.05em;
  color: #555;
}

ul.woocommerce-order-overview li:last-child {
  border-bottom: none; /* Bỏ đường kẻ ở dòng cuối */
}

ul.woocommerce-order-overview li strong {
  font-weight: 700;
  color: #212529; /* Màu chữ đậm hơn cho giá trị */
}

/* --- CỘT BÊN TRÁI: CHI TIẾT ĐƠN HÀNG --- */

/* Tiêu đề các mục (Chi tiết đơn hàng, Địa chỉ thanh toán) */
.woocommerce-order h2 {
  font-size: 1.8em;
  font-weight: 600;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* Bảng chi tiết sản phẩm */
.woocommerce-order .shop_table.order_details {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px 20px;
}

.woocommerce-order .shop_table.order_details th,
.woocommerce-order .shop_table.order_details td {
  border: none;
  padding: 15px 0;
}

.woocommerce-order .shop_table.order_details thead th {
  border-bottom: 1px solid #dee2e6;
}

.woocommerce-order .shop_table.order_details tfoot tr:first-child th,
.woocommerce-order .shop_table.order_details tfoot tr:first-child td {
  border-top: 1px solid #dee2e6;
}

.woocommerce-order .shop_table.order_details tfoot tr:not(:last-child) {
  font-weight: normal;
  color: #555;
}

/* Tùy chỉnh danh sách biến thể trong tên sản phẩm */
.woocommerce-order .wc-item-meta {
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
  font-size: 0.9em;
}

.woocommerce-order .wc-item-meta li {
  margin-bottom: 4px;
  color: #6c757d;
}

.woocommerce-order .wc-item-meta p {
  display: inline;
  margin: 0;
}

/* Khung địa chỉ thanh toán */
.woocommerce-customer-details address {
  border: 1px solid #e9ecef;
  padding: 20px;
  border-radius: 8px;
  background-color: #fff;
  line-height: 1.7;
}

/* Các dòng thông tin trong địa chỉ */
.woocommerce-customer-details address p {
  margin-bottom: 5px;
}

/* Ghi chú thanh toán */
.large-7.col > p:first-of-type {
  background-color: #fff9e6;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ffecb3;
}
/*--------------------------------------------------------------
# NOTIFICATION
--------------------------------------------------------------*/
#wrapper > .message-wrapper {
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 15px;
  padding-right: 15px;
}
#wrapper > .message-wrapper .added-to-cart {
  display: none;
}

/* Success Messages */
.woocommerce-message {
  position: relative;
  max-width: 1250px;
  margin: 20px auto 20px auto !important;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  animation: slideInFromTop 0.5s ease-out;
}

.woocommerce-message:focus-visible {
  display: none;
}

@keyframes slideInFromTop {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.woocommerce-message .message-container {
  background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
  border: 2px solid #e8f5e8;
  border-left: 5px solid #4caf50;
  border-radius: 12px;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #2e7d32;
  font-size: 16px;
  font-weight: 500;
}

.woocommerce-message .icon-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4caf50, #45a049);
  border-radius: 50%;
  color: white;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

.woocommerce-message .icon-checkmark::before {
  content: "✓";
}

/* Error Messages */
.woocommerce-error {
  position: relative;
  margin: 20px 0;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  list-style: none;
}

.woocommerce-error:focus-visible {
  display: none;
}

.woocommerce-error li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-error .message-container {
  background: linear-gradient(135deg, #ffffff 0%, #fef8f8 100%);
  border: 2px solid #ffebee;
  border-left: 5px solid #f44336;
  border-radius: 12px;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #c62828;
  font-size: 16px;
  font-weight: 500;
}

.woocommerce-error .message-icon,
.woocommerce-error .icon-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f44336, #d32f2f);
  border-radius: 50%;
  color: white;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

.woocommerce-error .message-icon::before,
.woocommerce-error .icon-close::before {
  content: "✕";
}

/* Responsive */
@media (max-width: 768px) {
  .woocommerce-message .message-container,
  .woocommerce-error .message-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 20px;
  }
}
/*--------------------------------------------------------------
# FORMIDABLE FORM
--------------------------------------------------------------*/
.with_frm_style .frm_top_container .frm_primary_label {
  font-size: 18px;
  font-weight: 600;
}

.with_frm_style select,
.with_frm_style input[type="text"],
.with_frm_style input[type="tel"],
.with_frm_style input[type="email"],
.with_frm_style textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  background-color: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  min-height: 50px;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.with_frm_style select:focus,
.with_frm_style input[type="text"]:focus,
.with_frm_style input[type="tel"]:focus,
.with_frm_style textarea:focus {
  border-color: var(--primary-color) !important;
  box-shadow: none !important;
  outline: none;
}

.with_frm_style select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.with_frm_style textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Check box --- */
.frm_opt_container {
  display: flex;
  flex-direction: column;
}

.frm_checkbox label {
  display: flex !important;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background-color: #ffffff;
  cursor: pointer !important;
  transition: all 0.2s ease-in-out;
  font-size: 16px !important;
  color: var(--dark-text) !important;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  min-height: 50px;
}

.with_frm_style .frm_checkbox label input[type="checkbox"] {
  accent-color: var(--primary-color) !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 3px !important;
}
.with_frm_style input[type="checkbox"]:focus {
  box-shadow: none !important;
}
.frm_forms.with_frm_style
  .frm_fields_container
  .frm_checkbox
  input[type="checkbox"]:not([disabled]):checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  box-shadow: none !important;
}

/* --- Radio --- */
.frm_opt_container[role="radiogroup"] {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.frm_radio label {
  display: flex !important;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background-color: #ffffff;
  cursor: pointer !important;
  transition: all 0.2s ease-in-out;
  font-size: 16px !important;
  color: var(--dark-text) !important;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  min-height: 50px;
}

.with_frm_style .frm_radio label input[type="radio"] {
  width: 20px !important;
  height: 20px !important;
  border-color: var(--primary-color) !important;
}

.with_frm_style .frm_radio input[type="radio"]:before {
  width: 12px !important;
  height: 12px !important;
  background-color: var(--primary-color) !important;
}
.frm_forms.with_frm_style
  .frm_fields_container
  .frm_radio
  input[type="radio"]:not([disabled]):checked {
  box-shadow: none !important;
  border-color: var(--primary-color) !important;
}

.frm_style_formidable-style.with_frm_style div.frm_description {
  color: var(--primary-color);
  font-size: 14px;
  margin-top: 10px;
}

/* --- Hộp thông báo tùy chỉnh --- */

.custom-notice-box {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  border-style: solid;
  border-width: 1px;
  border-left-width: 5px;
}

.custom-notice-icon {
  flex-shrink: 0;
  margin-right: 15px;
}

.custom-notice-content p {
  margin: 0 0 10px 0;
  padding: 0;
  line-height: 1.6;
}
.custom-notice-content p:last-child {
  margin-bottom: 0;
}

.custom-notice-title {
  margin: 0 0 8px 0;
  font-size: 1.1em;
  font-weight: 600;
}

/* --- Bảng màu cho loại thông báo "Thông tin" --- */

.custom-notice-box.notice-info {
  background-color: #eff6ff; /* Nền xanh dương rất nhạt */
  border-color: #93c5fd; /* Viền xanh dương nhạt */
  border-left-color: #3b82f6; /* Viền trái xanh dương đậm */
}

.custom-notice-box.notice-info .custom-notice-icon {
  color: #3b82f6; /* Màu icon */
}

.custom-notice-box.notice-info .custom-notice-title {
  color: #1e40af; /* Màu tiêu đề */
}

.custom-notice-box.notice-info .custom-notice-content {
  color: #1d4ed8; /* Màu chữ */
}

.frm_style_formidable-style.with_frm_style .frm_submit button {
  background: var(--primary-color);
  width: 100%;
  border-radius: 5px;
  border: 1px solid var(--primary-color) !important;
  padding: 5px 12px;
  max-width: 600px;
  margin: auto;
  font-weight: 600;
  text-transform: none;
  font-size: 18px;
}
.frm_style_formidable-style.with_frm_style .frm_submit button:hover,
.frm_style_formidable-style.with_frm_style .frm_submit button:focus {
  background: var(--primary-color);
}

/*--------------------------------------------------------------
# CONTACT PAGE
--------------------------------------------------------------*/
.fs-container {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  min-height: 600px;
}

.fs-form-section {
  padding: 50px 40px;
  background: #e5e5e5;
}

.contact-info {
  padding: 50px 40px;
  background: linear-gradient(
    90deg,
    rgba(130, 104, 56, 1) 0%,
    rgba(145, 116, 77, 1) 50%,
    rgba(166, 137, 88, 1) 100%
  );
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fs-header {
  margin-bottom: 30px;
}

.start-conversation {
  display: inline-flex;
  align-items: center;
  background: rgba(38, 191, 243, 0.5);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.start-conversation::before {
  content: "●";
  margin-right: 8px;
  color: var(--primary-color);
}

.subtitle {
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 24px;
}

.contact-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-content {
  opacity: 0.9;
  line-height: 1.5;
}

.contact-content.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-content.social-links a {
  max-width: 50px;
}
.contact-content.social-links a img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
@media (max-width: 768px) {
  .fs-container {
    grid-template-columns: 1fr;
  }

  .fs-form-section,
  .contact-info {
    padding: 30px 20px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-details {
    gap: 20px;
  }
}

/* Animation cho form load */
.form-section {
  animation: slideInLeft 0.8s ease-out;
}

.contact-info {
  animation: slideInRight 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/*--------------------------------------------------------------
# INTRO SECTION
--------------------------------------------------------------*/
.intro-section .bg-col {
  background-image: url(/wp-content/uploads/2025/07/flower-3.svg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto;
}

/*--------------------------------------------------------------
# LANGUAGE SECTION
--------------------------------------------------------------*/
/* --- Style cho Section Cờ Ngôn ngữ --- */

.language-flags-container {
  display: flex;
  justify-content: center; /* Căn giữa các lá cờ */
  align-items: center;
  gap: 30px; /* Khoảng cách giữa các lá cờ */
  padding: 20px 0;
  flex-wrap: wrap; /* Cho phép xuống hàng trên màn hình nhỏ */
}

.language-flag-item {
  display: flex;
  flex-direction: column; /* Sắp xếp cờ ở trên, chữ ở dưới */
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.language-flag-item:hover {
  transform: translateY(-5px); /* Hiệu ứng nhấc lên khi hover */
  opacity: 0.8;
}

.language-flag-item img {
  width: 90px; /* Kích thước của cờ */
  height: 60px;
  object-fit: cover;
}

.language-flag-item span {
  font-size: 1em;
  font-weight: 500;
}

/* Responsive cho màn hình nhỏ hơn */
@media (max-width: 480px) {
  .language-flags-container {
    gap: 20px;
  }
  .language-flag-item img {
    width: 50px;
    height: 50px;
  }
  .language-flag-item span {
    font-size: 0.9em;
  }
}
/*--------------------------------------------------------------
# WHY SECTION
--------------------------------------------------------------*/
.why-section-wrapper {
  display: flex;
  gap: 70px;
  align-items: stretch;
}

.why-section-header {
  flex: 0 0 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.why-section-header span svg {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
}

.why-section-cards {
  flex: 1;
  display: flex;
  gap: 25px;
  align-items: stretch;
}

.why-section-item {
  flex: 1;
  padding: 40px 30px;
  border-radius: 8px;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-section-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.why-section-item-first {
  background-color: #c2996c;
  background-image: url(/wp-content/uploads/2025/07/Asset-1.svg);
  background-position: 50%;
  background-size: cover;
}
.why-section-item-first::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #c2996c !important;
  opacity: 0.9 !important;
}
.why-section-item-second {
  background-color: #b4a699;
  background-image: url(/wp-content/uploads/2025/07/Asset-1.svg);
  background-position: top left !important;
  background-size: 788px !important;
  background-repeat: no-repeat;
}
.why-section-item-second::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #b4a699 !important;
  opacity: 0.9 !important;
}

.why-section-item-third {
  background-color: #265d76;
  background-image: url(/wp-content/uploads/2025/07/Asset-1.svg);
  background-position: bottom right !important;
  background-repeat: no-repeat !important;
  background-size: 938px !important;
}

.why-section-item-third::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #265d76 !important;
  opacity: 0.9 !important;
}

.why-section-number {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
  opacity: 0.9;
  z-index: 2;
  position: relative;
}

.why-section-text {
  z-index: 2;
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

@media (max-width: 1200px) {
  .why-section-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .why-section-header {
    flex: none;
    text-align: center;
  }

  .why-section-arrow {
    transform: rotate(90deg);
    margin: 20px auto;
  }
}

@media (max-width: 768px) {
  .why-section-cards {
    flex-direction: column;
    gap: 20px;
  }

  .why-section-item {
    min-height: 300px;
    padding: 30px 25px;
  }

  .why-section-header h1 {
    font-size: 2.5rem;
  }

  .why-section-number {
    font-size: 2rem;
  }

  .why-section-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .why-section-header h1 {
    font-size: 2rem;
  }

  .why-section-item {
    padding: 25px 20px;
  }
}
/*--------------------------------------------------------------
# NEWS SECTION
--------------------------------------------------------------*/
.news-section .post-item {
  padding-bottom: 0px;
}

.sectionTitle {
  text-transform: capitalize;
  line-height: 1.5;
  font-size: 30px;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-family: "Merriweather", serif;
}
.sectionTitleLight {
  line-height: 1.5;
  text-transform: capitalize;
  font-size: 30px;
  color: white;
  margin-bottom: 30px;
  font-family: "Merriweather", serif;
}

/*--------------------------------------------------------------
# REVIEW SECTION
--------------------------------------------------------------*/
.customer-reviews-swiper .swiper-slide {
  padding: 10px;
}
.swiper-slide .review-card {
  height: 100%; /* Giúp các card có chiều cao bằng nhau */
  box-sizing: border-box;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.review-content {
  flex-grow: 1;
}

.review-stars span {
  color: var(--primary-color);
  font-size: 1.2em;
}

.review-text {
  color: #555;
  font-size: 1.05em;
  line-height: 1.6;
  margin-top: 15px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  min-height: 105px;
}

.review-author {
  display: flex;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.author-photo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.author-name {
  font-weight: bold;
  color: #333;
}

.author-location {
  font-size: 0.9em;
  color: #777;
}

/* Tùy chỉnh nút và pagination của Swiper */
.customer-reviews-swiper {
  padding-bottom: 50px !important; /* Thêm không gian cho pagination */
}

.customer-reviews-swiper .swiper-button-next,
.customer-reviews-swiper .swiper-button-prev {
  color: #333 !important;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
.customer-reviews-swiper .swiper-button-next:after,
.customer-reviews-swiper .swiper-button-prev:after {
  font-size: 18px !important;
  font-weight: bold;
}

.customer-reviews-swiper .swiper-pagination-bullet-active {
  background: #333 !important;
}
/*--------------------------------------------------------------
# RELATED POSTS
--------------------------------------------------------------*/
.related-box .related-head {
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
  font-size: 19px;
  color: black;
}
.related-box ul li {
  margin-bottom: 3px;
}
.related-box ul li a {
  font-weight: 700;
  font-size: 16px;
  /*color: #2a9e2f;*/
}
.related-box ul li a:hover {
  text-decoration: underline;
}
.feature {
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.feature .image {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
}
ul.row.related-post li {
  list-style: none;
}
.related-title {
  line-height: 1.3 !important;
  margin-top: 10px !important;
  color: #000;
}
.related-title a {
  color: #000;
  font-weight: 600;
}
/*--------------------------------------------------------------
# SERVICE SECTION
--------------------------------------------------------------*/
.service-section {
  padding-top: 0px !important;
}
.service-box {
  border: 1px solid var(--primary-color);
  border-radius: 10px;
}
.service-box h4 {
  font-family: "Merriweather", serif;
  color: var(--dark-text);
  font-size: 20px;
  margin-bottom: 20px;
}
.service-box .button {
  border-radius: 5px;
  text-transform: capitalize;
}
.service-box img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.service-box .box-text {
  margin-top: 20px;
}
/*--------------------------------------------------------------
# FOOTER
--------------------------------------------------------------*/
.off-canvas-left.mfp-ready .mfp-content {
  width: 100%;
  background-color: var(--primary-color);
}
.mfp-ready .mfp-close {
  opacity: 1;
  mix-blend-mode: normal;
}
#footer {
  border-top: 1px solid #ebebeb;
}
.absolute-footer {
  display: none;
}
.footer-section {
  padding-bottom: 0px !important;
}
#footer .section-title-container {
  margin-bottom: 0px;
}
#footer .section-title {
  border-bottom: none;
  text-transform: capitalize;
  font-weight: 700;
}
#footer .section-title span {
  border-bottom: none;
  text-transform: capitalize;
}

.social-list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.social-list li {
  margin: 0px !important;
}
.social-list li a {
  display: flex;
  border: 2px solid var(--dark-text);
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
}

.footer-icon-item {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.footer-icon-item img {
  width: 18px;
}
.payment-method {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pm-item img {
  width: 30px;
}
