/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.0
 Text Domain:  bricks
*/

/* Tối ưu hóa hiển thị hình ảnh */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading cho hình ảnh */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img.lazy.loaded {
    opacity: 1;
}

/* Hiển thị hình ảnh Google Drive */
img[src*="lh3.googleusercontent.com"] {
    max-width: 100%;
    height: auto;
}

/* Tối ưu hiển thị trên thiết bị di động */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    .mobile-full-width {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Tối ưu hiệu suất trang */
.preload-image {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Sửa lỗi hiển thị font */
body,
h1, h2, h3, h4, h5, h6,
p, span, div,
button, input, select, textarea {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*  <!-- CSS | Tên xe & Giá xe Home -->  */

	.model-xe {
		font-style: italic;
		color: #000;
		margin-right: 1px;
		font-size: 0.5em;
	}
	.giaxe {
		font-weight: bold;
		color: #ff0000;
		font-size: 0.79em;
		margin: 0 1px;
	}
	.kytu-vnd {
		color: #000;
		margin-left: 1px;
		font-size: 0.5em;
	}
	.p-giaxe {
		font-family: Big Shoulders Inline Text;
		line-height: 1.25;
		margin: 0;
		font-weight: 800;
	}
	.chitietxe-dieptv {
		font-size: 0.8em;
	}

@media only screen and (min-width: 768px) {
	.model-xe {
		font-style: italic;
		color: #000;
		margin-right: 4px;
		font-size: 0.68em;
	}
	.giaxe {
		font-weight: bold;
		color: #ff0000;
		font-size: 1.2em;
		margin: 0 4px;
	}
	.kytu-vnd {
		font-style: italic;
		color: #000; margin-left: 4px;
		font-size: 0.68em;
	}
	.p-giaxe {
		font-family: Big Shoulders Inline Text;
		line-height: 1.6;
		margin: 10px 0;
		font-weight: 800;
	}
	.chitietxe-dieptv {
		font-size: 1.35em;
	}
}

/* Ẩn/hiện tùy theo thiết bị */
/* Mặc định: style cho phần xuống dòng */
.custom-line-break {
  display: none;
  height: 0;
  line-height: 0;
  margin: 0;
  padding: 0;
}

/* Desktop (≥768px): Hiện dấu |, không xuống dòng */
@media (min-width: 768px) {
  .separator-dieptv {
    display: inline;
  }
  .mobile-line-break {
    display: none;
  }
}

/* Mobile (<768px): Ẩn dấu |, xuống dòng tại đó */
@media (max-width: 767px) {
  .separator-dieptv {
    display: none;
  }
  .mobile-line-break {
    display: block;
  }
}








/*  <!-- CSS | Title For EV Icon Home-->  */
/* Mobile */
@media only screen and (max-width: 767px) {
	.ev-icon-title {
		color: red !important;
		font-size: 18px !important;
	}
	.sub-ev-icon-title {
		color: blue !important;
		font-size: 14px !important;
	}
	.dieptv-icon-top1 {
		width: 36px;
	}
}

/* Desktop */
@media only screen and (min-width: 768px) {
	.ev-icon-title {
		color: green !important;
		font-size: 24px !important;
		text-decoration: underline;
	}
	.sub-ev-icon-title {
		color: orange !important;
		font-size: 20px !important;
		font-style: italic;
		font-weight: bold;
	}
	.dieptv-icon-top1 {

	}
}

.battery-icon {
width: auto !important;
height: 32px !important;
}

@media only screen and (min-width: 768px) {
.battery-icon {
width: auto !important;
height: 64px !important;
}
}

.chitietxe-icon {
width: auto !important;
height: 50px !important;
}

@media only screen and (min-width: 768px) {
.chitietxe-icon {
width: auto !important;
height: 64px !important;
}
}



/*** Shine Flash for ***/
.shine-zoom-loop {
  position: relative;
  display: inline-block;
  overflow: hidden;
  transition: transform 0.4s ease;
  will-change: transform; /* ✅ Tối ưu hiệu suất tránh cuộn */
}

.shine-zoom-loop:hover {
  transform: scale(1.05);
}

.shine-zoom-loop::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  will-change: left, opacity;
}

.shine-zoom-loop.animate::before {
  animation: shineMove 2.5s ease-in-out;
  opacity: 1;
}

@keyframes shineMove {
  0% {
    left: -75%;
    opacity: 0;
  }
  20% {
    left: 125%;
    opacity: 1;
  }
  100% {
    left: 125%;
    opacity: 0;
  }
}


/** KM-PostNews **/
.KM-PostNews {
	background: #036e6b;
	padding: 1px 6px 3px 6px;
	border-radius: 5px;
	color: #ffffff !important;
	font-size: 1.1em;
}


/* Điệp.TV - Ti New Windows */
.btn-chi-tiet i.ti-new-window {
  margin-left: 6px;
  font-size: 0.9em;
  vertical-align: middle;
  transition: transform 0.3s ease;
  color: #d90000;
}
.btn-chi-tiet:hover i.ti-new-window {
  transform: scale(1.1);
}


















.contact-buttons-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Nút gọi */
	.smart-oldphone-button-neon {
	  display: inline-flex;
	  align-items: center; /* căn icon và chữ cùng hàng ngang */
	  gap: 0px;
	  padding: 1px 0px;
	  background: linear-gradient(135deg, #00ffcc, #00cc66);
	  color: #fff;
	  border-radius: 30px;
	  font-weight: 600;
	  font-size: 11px;
	  text-decoration: none;
	  box-shadow: 0 0 12px rgba(0, 255, 200, 0.5);
	  position: relative;
	  transition: transform 0.2s ease;
	  line-height: 1; /* tránh icon lệch dòng */
	}


	.smart-oldphone-button-neon:hover {
	  transform: scale(1.05);
	}

	.smart-icon-container {
	  position: relative;
	  width: 22px;
	  height: 22px;
	  display: inline-flex;
	  align-items: center;
	  justify-content: center;
	  flex-shrink: 0;
	}

	.old-phone-svg {
	  width: 22px;
	  height: 22px;
	  filter: drop-shadow(0 0 4px #fff);
	  display: block;
	}

/* Responsive Mobile */
@media (max-width: 768px) {
  .smart-oldphone-button-neon,
  .zalo-button {
    padding: 0px 6px !important;
    font-size: 12px !important;
  }

  .smart-icon-container,
  .old-phone-svg,
  .zalo-icon svg {
    width: 16px;
    height: 16px;
  }
 }
@media (max-width: 768px) {
  .smart-oldphone-button-neon {
    font-size: 12px !important;
    padding: 2px 5px !important; /* Tùy chỉnh thêm */
    height: 26px !important; /* Cho phép auto-height nếu bị giới hạn */
  }
}



/* Nút Zalo */
	.zalo-button {
	  display: inline-flex;
	  align-items: center; /* giữ chữ và icon cùng dòng */
	  gap: 6px;
	  padding: 8px 20px;
	  background: linear-gradient(135deg, #00cfff, #0066ff);
	  color: #fff;
	  border-radius: 30px;
	  font-weight: 600;
	  font-size: 15px;
	  text-decoration: none;
	  box-shadow: 0 0 12px rgba(0, 191, 255, 0.5);
	  position: relative;
	  transition: transform 0.2s ease;
	  line-height: 1; /* tránh icon bị lệch */
	}

	.zalo-button:hover {
	  transform: scale(1.05);
	}

	.zalo-icon {
	  position: relative;
	  width: 22px;
	  height: 22px;
	  display: inline-flex;
	  align-items: center;
	  justify-content: center;
	  flex-shrink: 0; /* không bị co khi responsive */
	}

	.zalo-icon svg {
	  filter: drop-shadow(0 0 4px #fff);
	  display: block;
	}


	.svg-ring {
	  position: absolute;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: 100%;
	  border: 2px solid rgba(255,255,255,0.5);
	  border-radius: 50%;
	  animation: wave 1.2s ease-out infinite;
	}

	.svg-ring.delay {
	  animation-delay: 0.6s;
	}

	/* Sóng Animation */
	@keyframes wave {
	  0% {
	    transform: scale(1);
	    opacity: 1;
	  }
	  100% {
	    transform: scale(2.2);
	    opacity: 0;
	  }
	}

	/* Responsive Mobile */
	@media (max-width: 768px) {
	  .text-zalo {
	    display: none;
	  }

	  .smart-icon-container,
	  .old-phone-svg,
	  .zalo-icon svg {
	    width: 18px;
	    height: 18px;
	    padding: 3px 0px;
	  }

	}
}


/* CSS bacgound Image Popup Form */

.special-offer-block {
  position: relative;
  padding: 30px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  color: #333; /* Màu chữ chính */
  z-index: 1;
  overflow: hidden;
}

.special-offer-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7); /* Lớp phủ trắng với opacity 60% (tương đương background 20% visible) */
  z-index: -1;
}

.special-offer-block p {
  position: relative;
  margin: 0;
}


/* CSS CTA-Contact Index */
.custom-section {
  background: #f9f9f9;
  padding: 40px 20px;
}
.custom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.custom-col {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.custom-col:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-top: 8px;
}
.icon-img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}
.custom-col:hover .icon-img {
  transform: scale(1.2) rotate(5deg);
}
.custom-btn {
  background: #4caf50;
  color: #fff;
  padding: 5px !important;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}
.custom-btn:hover {
  background: #444;
}
.desc {
  font-size: 14px;
  color: #555;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
  .custom-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cột */
  }
}
@media (max-width: 600px) {
  .custom-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cột */
  }
  .custom-col {
    padding: 0px 6px;
  }
  .icon-img {
    width: 32px;
    height: 32px;
  }
  .custom-btn {
    /* font-size: 13px; */
    padding: 8px 12px;
  }
  .desc {
    /* font-size: 13px; */
  }
}


/* Điệp.TV-CSS Text Popup Form */
/* CSS chung cho tất cả các thiết bị */
h4 {
  color: #333;
  margin-bottom: 15px;
  font-size: 22px;
}

ul.desktop {
  list-style-type: none;
  padding: 0;
  margin: 0 auto 20px;
  max-width: 800px;
}

ul.desktop li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="%232d9e57"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  padding-left: 30px;
  margin-bottom: 12px;
  line-height: 1.5;
  font-size: 16px;
}

img.aligncenter {
  display: block;
  margin: 0 auto 15px;
  max-width: 100%;
  height: auto;
  border-radius: 50%;
}

a[href^="tel:"] {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  margin: 10px auto;
  transition: all 0.3s ease;
}

a[href^="tel:"]:hover {
  background-color: #248046 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive cho tablet */
@media (max-width: 768px) {
  h4 {
    font-size: 20px;
  }

  ul.desktop li {
    font-size: 15px;
    padding-left: 25px;
    background-size: 14px;
  }

  img.aligncenter {
    width: 150px;
    height: auto;
  }

  a[href^="tel:"] {
    padding: 0.8rem 2rem !important;
    font-size: 14px !important;
  }

  a[href^="tel:"] strong span {
    font-size: 17px !important;
  }
}

/* Responsive cho mobile */
@media (max-width: 480px) {
  h4 {
    font-size: 18px;
  }

  ul.desktop {
    padding: 0 15px;
  }

  ul.desktop li {
    font-size: 14px;
    padding-left: 22px;
    background-size: 12px;
    margin-bottom: 10px;
  }

  img.aligncenter {
    width: 130px;
  }

  a[href^="tel:"] {
    padding: 0.7rem 1.5rem !important;
    font-size: 13px !important;
    display: block;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  a[href^="tel:"] strong span {
    font-size: 16px !important;
  }
}

/* CSS chung cho tất cả thiết bị */
.special-offer-block {
  position: relative;
  padding: 30px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  color: #333;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 20px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.special-offer-block img.alignleft {
  margin: 0 auto 15px !important;
  float: none !important;
  display: block;
}

.special-offer-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: -1;
}

.special-offer-block p {
  position: relative;
  margin: 10px 0;
  line-height: 1.6;
  font-size: 18px;
}

.special-offer-block strong {
  color: #000;
  font-size: 20px;
}

.special-offer-block span[style*="#008080"] {
  font-size: 24px;
  display: block;
  margin: 5px 0;
}

.special-offer-block em {
  font-size: 14px;
  color: #555;
  display: block;
  margin-top: 5px;
}

/* Responsive cho tablet */
@media (max-width: 768px) {
  .special-offer-block {
    padding: 25px;
  }

  .special-offer-block p {
    font-size: 16px;
  }

  .special-offer-block strong {
    font-size: 18px;
  }

  .special-offer-block span[style*="#008080"] {
    font-size: 22px;
  }

  .special-offer-block img.alignleft {
    width: 85px;
    height: auto;
  }
}

/* Responsive cho mobile */
@media (max-width: 480px) {
  .special-offer-block {
    padding: 20px 15px;
    margin: 15px auto;
  }

  .special-offer-block p {
    font-size: 15px;
  }

  .special-offer-block strong {
    font-size: 16px;
  }

  .special-offer-block span[style*="#008080"] {
    font-size: 20px;
  }

  .special-offer-block em {
    font-size: 13px;
  }

  .special-offer-block img.alignleft {
    width: 70px;
  }
}

.special-offer-block {
  position: relative;
  padding: 10px 0px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  color: #333;
  z-index: 1;
  overflow: hidden;
  margin: 15px 0;
}

.special-offer-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: -1;
}

.offer-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.offer-icon {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

.offer-text {
  margin: 0;
  text-align: left;
  line-height: 1.4;
}

.highlight-price {
  color: #008080;
  font-weight: bold;
  font-size: 1.3em;
}

/* Responsive */
@media (max-width: 768px) {
  .offer-content-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .offer-icon {
    width: 70px;
  }

  .offer-text {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .special-offer-block {
    padding: 20px;
  }

  .offer-icon {
    width: 60px;
  }

  .highlight-price {
    font-size: 1.2em;
  }
}

.floating-bao-gia {
    position: fixed;
    bottom: 50px;
    right: 15px;
    background-color: #d90000;
    padding: 9px 9px;
    border-radius: 50px;
    display: flex;
    flex-direction: column; /* Sắp xếp các phần tử theo chiều dọc */
    align-items: center;
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.floating-bao-gia:hover {
    background-color: rgba(181, 212, 115, 0.56);
    color: #d90000;
}

.floating-bao-gia img {
    width: 21px;
    height: auto;
    margin-bottom: 0px; /* Thêm khoảng cách giữa icon và chữ */
    transform-origin: bottom center;
    animation: sway 0.6s infinite alternate;
}

.d-none.d-lg-inline {
  color: #fff;
  font-weight: 600;
  font-size: 10px;
}

/* Định nghĩa hiệu ứng sway */
@keyframes sway {
    0% {
        transform: rotate(-11deg); /* Nghiêng sang trái */
    }
    100% {
        transform: rotate(18deg); /* Nghiêng sang phải */
    }
}

/* CSS Popup Báo Giá Xe */
.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: #fff;
  padding: 20px;
  width: 80%;
  max-width: 800px;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
}

.popup-info, .popup-form {
  width: 100%;
  padding: 10px;
}

.popup-info ul {
  list-style-type: none;
}

.popup-info .popup-banner img {
  width: 100%;
}

.gradient-heading-pop {
  text-align: center;
}

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

/* CSS Popup Báo giá xe */
  @keyframes shakeIcon {
  10%  { transform: rotate(-15deg); }
  20%  { transform: rotate(15deg); }
  30%  { transform: rotate(-15deg); }
  40%  { transform: rotate(15deg); }
  50%, 100% { transform: rotate(0deg); }
}

.iconGift {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background: url('/wp-content/uploads/2025/05/icon-gift.webp') no-repeat center center;
  background-size: contain;
  animation: shakeIcon 1.2s infinite;
}
.responsive-img {
  width: 98%;
  height: auto;
  display: block;
  max-width: 98%;
  clear: both;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
}
.gradient-heading-pop {
  font-weight: 600;
  line-height: auto;
  text-align: center;
  background: linear-gradient(45deg, #ff8a00, #e52e71, #044bea, #7a00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: #fff0;
  background-size: 300% 300%;
  animation: gradient-text 8s ease infinite;
  border: dashed 1px #908787;
  font-size: 15px;align-content;
  padding: 15px 10px;
  margin: 0 5%;
  border-radius: 5px;

}
ul.desktop {
  list-style: none;         /* Ẩn dấu chấm */
  padding-left: 10px;       /* Cách trái 10px */
  margin: 0;
}

ul.desktop li {
  text-align: left;         /* Căn trái nội dung */
  margin-bottom: 8px;       /* (Tùy chọn) cách dòng giữa các mục */
  display: flex;
  align-items: center;
}

.call-button {
  display: inline-flex;
  align-items: center;
  background-color: #d90000; /* đỏ đậm */
  color: #fff;
  padding: 3px 10px 3px 5px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.call-button:hover {
  background-color: #c62828;
  transform: scale(1.05);
}

.call-button .icon {
  font-size: 20px;
  padding: 2px 6px;
  border-radius: 50%;
  background-color: #fff;
  color: #d90000;
  margin-right: 5px;
}
.button, input[type=button].button, input[type=reset].button, input[type=submit], input[type=submit].button {
  border-radius: 12px;
}




