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

:root {
  --brand: #e74c3c;
  --text: #111827;
  --muted: #6b7280;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.product-tabs :is(h2, .h2){
  font-size: 1.6em;
  line-height: 1.3;
  margin-bottom: 10px;
  font-weight: 700;
}

.product-tabs picture {
  display: block;
  margin-bottom: 10px;
}

.product-tabs p {
  margin-bottom: 10px;
}

/* Header consistency across all pages */
.site-header {
  background-color: #000 !important;
  color: #fff !important;
}

.site-header a {
  color: inherit;
}

.site-header nav a {
  color: #fff !important;
  font-size: 15px;
}

/* Ensure header height is consistent */
.site-header > div {
  min-height: 86px;
}

/* Logo size consistency across all pages */
.site-header img {
  height: 48px !important;
  width: auto !important;
  max-height: 48px !important;
}

@media (min-width: 1024px) {
  .site-header img {
    height: 80px !important;
    max-height: 80px !important;
  }
}

.site-container,
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header,
.site-footer {
  border-bottom: 1px solid #e5e7eb;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  border-bottom: 0;
  padding: 24px 0;
  margin-top: 40px;
}

/* by Openclaw-Codex5.3: Keep default list rendering clean when WP outputs menus. */
.site-header ul,
.site-header li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* by Openclaw-Codex5.3: Hotline pulse effect inspired by reference site style. */
.tp-hotline-pulse {
  position: relative;
  overflow: visible;
}

.tp-hotline-pulse .tp-hotline-ping {
  position: absolute;
  inset: 0;
  border: 1px solid #ffdf54;
  background: rgba(238, 46, 36, 0.4);
  border-radius: 9999px;
  z-index: 1;
  animation: tp-sonar 1.25s linear infinite;
}

.tp-hotline-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  color: #ffffff;
  display: inline-block;
  flex: 0 0 auto;
}

@keyframes tp-sonar {
  from {
    opacity: 0.45;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.22);
  }
}

/* by Openclaw-Codex5.3: Desktop dropdown behavior for service submenu in header nav. */
.site-header .menu-item-has-children {
  position: relative;
}

.site-header .menu-item-has-children > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  padding: 10px 0;
  z-index: 30;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.site-header .menu-item-has-children:hover > .sub-menu {
  display: block;
}

.site-header .menu-item-has-children {
  padding-bottom: 6px;
}

.site-header .sub-menu a {
  display: block;
  height: auto !important;
  width: 100%;
  padding: 10px 18px;
  text-transform: uppercase !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: #111827 !important;
  border-bottom: 1px solid #e5e7eb;
}

.site-header .sub-menu {
  background: #ffffff !important;
}

.site-header .sub-menu li:last-child > a {
  border-bottom: none;
}

.site-header .sub-menu a:hover,
.site-header .sub-menu li.current-menu-item > a {
  background: #e4101c;
  color: #ffffff !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
}


footer :is(h3 a, h3, h4) {
  color: #fff;
}

.nav>li>a {
  padding-left: 10px;
  padding-right: 10px;
}

.nav>li:hover .sub-menu {
  display: block !important;
  visibility: visible !important;
}

.sub-menu a {
  width: 100%;
}

.product-footer .woocommerce-tabs {
  border-top: 0;
  padding-top: 0;
}

/* by Openclaw-Codex5.3: Content readability for service static pages (2 column-right). */
.tp-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.tp-content table {
  width: 100%;
  border-collapse: collapse;
}

.tp-content table {
  display: block;
  overflow-x: auto;
}

.tp-content pre {
  overflow-x: auto;
}

/* Service booking popup */
.tp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.tp-modal[aria-hidden="false"] {
  display: block;
}

.tp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.tp-modal-dialog {
  position: relative;
  max-width: 520px;
  width: calc(100% - 32px);
  margin: 10vh auto 0;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  padding: 18px 20px 22px;
}

.tp-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #111827;
}

.tp-modal-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #c41217;
  text-transform: uppercase;
}

.tp-modal-subtitle {
  margin: 0 0 12px;
  font-size: 13px;
  color: #4b5563;
}

.tp-modal-body .wpcf7-form p {
  margin: 0 0 10px;
}

.tp-modal-body .wpcf7-form input[type="text"],
.tp-modal-body .wpcf7-form input[type="tel"],
.tp-modal-body .wpcf7-form textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 13px;
}

.tp-modal-body .wpcf7-form textarea {
  min-height: 110px;
  resize: vertical;
}

.tp-modal-body .wpcf7-form .wpcf7-quiz-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #111827;
  font-weight: 600;
}

.tp-modal-body .wpcf7-form input.wpcf7-submit {
  background: #c41217;
  color: #fff;
  border: 0;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.tp-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .tp-modal-dialog {
    margin-top: 8vh;
    padding: 16px;
  }
}

/* ACF custom product banner */
.tp-banner-section {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
  min-height: 260px;
}

.tp-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.tp-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  min-height: 260px;
  display: flex;
  align-items: center;
}

.tp-banner-content {
  max-width: 520px;
  color: #ffffff;
}

.tp-banner-left .tp-banner-inner {
  justify-content: flex-start;
}

.tp-banner-right .tp-banner-inner {
  justify-content: flex-end;
}

.tp-banner-center .tp-banner-inner {
  justify-content: center;
  text-align: center;
}

.tp-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #f1ca38;
  color: #1f2937;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
}

.tp-banner-btn:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .tp-banner-section {
    min-height: 220px;
  }

  .tp-banner-inner {
    min-height: 220px;
    padding: 24px 16px;
  }

  .tp-banner-content {
    max-width: 100%;
  }
}

/* Prevent comment form from causing horizontal scroll on mobile */
.comments-area,
.comment-respond,
.comment-form,
.comment-form p,
.comment-list,
.comment-list li {
  max-width: 100%;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tp-content table td,
.tp-content table th {
  border: 1px solid #e5e7eb;
  padding: 8px;
}

.tp-table-wrap {
  width: 100%;
}

@media (max-width: 768px) {
  .tp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tp-table-wrap table {
    min-width: 640px;
  }
}

.tp-product-thumb {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1023px) {
  .site-header .menu-item-has-children > .sub-menu {
    display: block;
    position: static;
    min-width: 100%;
    border: 0;
    padding: 6px 0 0 14px;
    background: transparent;
  }

  .site-header .sub-menu a {
    padding: 8px 10px;
  }
}

/* by Openclaw-Codex5.3: Pagination styling for category/archive pages */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination a:hover {
  border-color: #c41217;
  background: #c41217;
  color: #ffffff;
}

.pagination .current {
  border-color: #c41217;
  background: #c41217;
  color: #ffffff;
}

.pagination .dots {
  border: none;
  background: transparent;
  color: #9ca3af;
}

/* by Openclaw-Codex5.3: Contact Form 7 styling to match reference website */
.form-nhanbaogia {
  background: url(https://mitsubishivietnam.net/wp-content/uploads/2019/03/Xpander.gif) no-repeat center;
  background-size: cover;
  padding: 20px;
  border-radius: 8px;
}

.form-nhanbaogia h4 {
  color: orange;
  font-size: 22px;
  text-shadow: 0px 2px 3px rgb(132, 131, 131);
  margin-bottom: 15px;
  font-weight: 700;
}

.form-nhanbaogia input[type='text'],
.form-nhanbaogia input[type='email'],
.form-nhanbaogia input[type='tel'] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-shadow: none;
}

.form-nhanbaogia input[type='submit'] {
  width: 100%;
  padding: 12px;
  background-color: #b20000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-nhanbaogia input[type='submit']:hover {
  background-color: #8a0000;
}

.form-nhanbaogia .wpcf7-form-control-wrap {
  display: block;
}

.form-nhanbaogia .wpcf7-not-valid-tip {
  color: #fff;
  font-size: 12px;
  margin-top: -8px;
  margin-bottom: 8px;
  display: block;
}

.form-nhanbaogia .wpcf7-response-output {
  margin: 10px 0 0 0;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
}

/* WooCommerce Product Page Styling */
.single-product .product-title {
  font-size: 25px;
  color: #e82c2c;
  border-bottom: 1px solid #000;
  padding-bottom: 10px;
}

.woocommerce-product-gallery {
  margin-bottom: 2rem;
}

.woocommerce-product-gallery__image {
  border-radius: 8px;
  overflow: hidden;
}

.product-info-sidebar .price {
  font-size: 24px;
  font-weight: bold;
  color: #c41217;
  margin-bottom: 1rem;
}

.product-info-sidebar .price .amount {
  color: #c41217;
}

.tuvan_single a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  padding: 8px 20px;
  border: 1px solid #b7b7b5;
  width: 150px;
  text-align: center;
  border-radius: 30px;
  box-shadow: 0px 4px 5px #bfbebe;
  transition: all 0.3s ease;
}

.tuvan_single a:first-child {
  background: #115684;
}

.tuvan_single a:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 8px #bfbebe;
}

.woocommerce-tabs {
  margin-top: 2rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 2rem;
}

.woocommerce-tabs .tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.woocommerce-tabs .tabs li {
  list-style: none;
}

.woocommerce-tabs .tabs li a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 16px;
  font-weight: 600;
  color: #64748b;
  border-radius: 5px 5px 0 0;
  transition: all 0.3s ease;
}

.woocommerce-tabs .tabs li.active a {
  background: #c8102e;
  color: #fff;
}

.woocommerce-tabs .tabs li a:hover {
  background: #f1f5f9;
  color: #c41217;
}

.woocommerce-tabs .panel {
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
}

.woocommerce-tabs .panel h2 {
  font-size: 24px;
  color: #000;
  margin-bottom: 1rem;
  border-left: 5px solid #c41217;
  padding-left: 15px;
}

.woocommerce-tabs table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.woocommerce-tabs table tr:nth-child(odd) {
  background-color: #f0f0f0;
}

.woocommerce-tabs table tr td,
.woocommerce-tabs table tr th {
  padding: 12px;
  border: 1px solid #e5e7eb;
  color: #111;
}

.woocommerce-tabs table tr th {
  background-color: #c41217;
  color: #fff;
  font-weight: 600;
}

.woocommerce-product-gallery__wrapper {
  border-radius: 8px;
  overflow: hidden;
}

.woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  display: block;
}

.woocommerce-Reviews {
  padding: 20px 0;
}

.woocommerce-Reviews-title {
  font-size: 30px;
  color: #000;
  border-left: 10px solid #e70014;
  padding: 0 0 0 20px;
  margin-bottom: 1.5rem;
}

.review-form-inner {
  border: 1px solid #eee;
  border-radius: 10px;
  background: #f6f6f6;
  padding: 1.5rem;
}

.single_add_to_cart_button {
  background-color: #c41217 !important;
  color: #fff !important;
  padding: 12px 30px !important;
  border-radius: 5px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.single_add_to_cart_button:hover {
  background-color: #a10f13 !important;
  transform: translateY(-2px);
}

/* Mobile Menu Styling */
#mobile-menu {
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
}

.mobile-menu-list {
  list-style: none;
}

.mobile-menu-list li {
  margin: 0;
  padding: 0;
}

.mobile-menu-list > li > a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-menu-list > li > a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1ca38;
}

.mobile-menu-list > li.current-menu-item > a,
.mobile-menu-list > li.current-menu-ancestor > a {
  background: rgba(225, 29, 72, 0.2);
  color: #f1ca38;
}

/* Mobile Submenu Styling */
.mobile-menu-list .menu-item-has-children > a {
  position: relative;
  padding-right: 40px;
}

.mobile-menu-list .menu-item-has-children > a::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.2s ease;
}

.mobile-menu-list .menu-item-has-children > a.active::after {
  transform: translateY(-50%) rotate(180deg);
}

.mobile-menu-list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 16px;
  display: none;
}

.mobile-menu-list .sub-menu li {
  margin: 0;
}

.mobile-menu-list .sub-menu a {
  display: block;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.mobile-menu-list .sub-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f1ca38;
  padding-left: 16px;
}

.mobile-menu-list .sub-menu li.current-menu-item > a {
  color: #f1ca38;
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile Menu Overlay Animation */
#mobile-menu-overlay {
  transition: opacity 0.3s ease;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Force logo size consistency - must be at end to override everything */
header a img,
header img,
.custom-logo,
body header img,
body.single-product header img,
body.woocommerce header img {
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
  object-fit: contain !important;
}

@media (min-width: 1024px) {
  header a img,
  header img,
  .custom-logo,
  body header img,
  body.single-product header img,
  body.woocommerce header img {
    height: 56px !important;
    max-height: 56px !important;
  }
}

/* Service Page Styling - matching reference site */
/* Remove default padding for service page */
.page-template-template-blank .site-main {
  padding: 0;
  margin: 0;
}

.page-template-template-blank .entry-content {
  margin: 0;
  padding: 0;
}

.page-template-template-blank article {
  margin: 0;
}

.dich-vu {
  background: linear-gradient(135deg, #c41217 0%, #8a0000 100%);
  padding: 60px 0;
  margin: 0;
  width: 100%;
}

.dich-vu .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.dich-vu .section-title-center {
  text-align: center;
  margin-bottom: 50px;
}

.dich-vu .section-title-center span {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  display: inline-block;
  position: relative;
  padding-bottom: 15px;
}

.dich-vu .section-title-center span::after {
  content: '';
  width: 100px;
  height: 3px;
  background: #fff;
  position: absolute;
  bottom: 0;
  left: 50%;
  margin-left: -50px;
  display: block;
}

.dich-vu .box {
  background: #fff;
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dich-vu .box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.dich-vu .box-image {
  margin-bottom: 20px;
  text-align: center;
}

.dich-vu .box-image img {
  width: auto;
  height: 100px;
  object-fit: contain;
}

.dich-vu .box h3 {
  color: #e82c2c;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.dich-vu .item__txt__7 {
  min-height: 170px;
}

.dich-vu .btn_xemthem {
  display: inline-block;
  padding: 10px 30px;
  background: #c41217;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.dich-vu .btn_xemthem:hover {
  background: #8a0000;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .dich-vu {
    padding: 40px 0;
  }
  
  .dich-vu .section-title-center span {
    font-size: 24px;
  }
  
  .dich-vu .item__txt__7 {
    min-height: auto;
  }
  
  .dich-vu .box {
    padding: 20px 15px;
  }
}

.tp-vertical-tabs .tabs li.active a {
  border-color: #c41217;
  color: #111827;
  background: #fff7f7;
}

.tp-vertical-tabs .woocommerce-Tabs-panel {
  margin-top: 0;
}

.form-nhanbaogia {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-nhanbaogia h4 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #f4c24f;
  text-align: center;
  margin: 0 0 6px;
}

.form-nhanbaogia input[type="text"],
.form-nhanbaogia input[type="email"],
.form-nhanbaogia input[type="tel"] {
  width: 100%;
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  font-size: 14px;
  background: #fff;
  color: #111827;
}

.form-nhanbaogia input[type="submit"] {
  width: 100%;
  background: #c41217;
  color: #fff;
  border: none;
  padding: 10px 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.form-nhanbaogia input[type="submit"]:hover {
  background: #a10f13;
}

/* Gallery Section Styling */
.gallery-section .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-section .gallery-item img {
  transition: transform 0.3s ease;
}

.gallery-section .gallery-item:hover img {
  transform: scale(1.05);
}

/* Tabs Section Styling */
.tabs-section .tabs-wrapper {
  background: #fff;
  border-radius: 8px;
  padding: 0;
}

.tabs-section .tabs-nav {
  padding: 0;
  margin: 0;
}

.tabs-section .tab-button {
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tabs-section .tab-button.active {
  color: #c41217;
  border-bottom-color: #c41217;
}

.tabs-section .tab-panel {
  padding: 1.5rem 0;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Features Section Styling */
.features-section {
  margin: 2rem 0;
}

.features-section .feature-item {
  text-align: center;
  transition: all 0.3s ease;
}

.features-section .feature-item:hover {
  transform: translateY(-5px);
}

.features-section .feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.features-section .feature-icon img {
  max-width: 64px;
  max-height: 64px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tabs-section .tabs-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .tabs-section .tab-button {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    border-bottom: none;
  }
  
  .tabs-section .tab-button.active {
    border-left-color: #c41217;
    border-bottom-color: transparent;
    background: #fff7f7;
  }
  
  .features-section {
    padding: 1.5rem;
  }
}
