:root {
  --blue: #0074be;
  --red: #d71920;
  --gray: #2b2b2b;
}

.main-color {
  color: #0b3c78;
}

* {
  box-sizing: border-box;
  margin: 0;
  font-family: system-ui;
}

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

h1,
h2,
h3 {
  margin-bottom: 12px;
}
p {
  color: #444;
}
h1 {
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.2;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 24px;
}

.red {
  color: red;
}
.backgrd {
  color: #e5edf8;
}
.center {
  text-align: center;
}

.compare {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.box-wrapper {
  width: 520px;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 4px;
  box-sizing: border-box;
}

.highlight-wrapper {
  width: 520px;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  overflow: hidden;
}

.highlight-wrapper .box {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.compare .box {
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  box-sizing: border-box;
}

.compare .box-content {
  display: flex;
  gap: 20px;
  align-items: center;
}

.compare .box-text {
  flex: 1;
}

.compare .box-image {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 4px;
  overflow: hidden;
}

.compare .box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare .box .note,
.highlight-wrapper .note {
  margin-top: 0; /* Không cần margin-top vì đã có gap trong wrapper */
  text-align: center; /* Căn giữa */
  font-weight: 800; /* In đậm mạnh */
  font-size: 18px; /* Tăng kích thước chữ một chút cho nổi bật */
  color: #222;
}
.compare ul {
  list-style: none;
  padding-left: 0;
  margin-top: 12px;
}
.compare li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.compare .box:first-child li::before {
  content: "✖";
  position: absolute;
  left: 0;
  top: 0;
  color: #999;
  font-weight: 700;
}

.compare .box.highlight li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #757677;
  font-weight: 900;
}
.box.highlight {
  border: 1px solid #ddd;
  /* background: #f5f5f5; Màu nền gray */
}

.box.highlight h3 {
  color: var(--blue);
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.btn.primary {
  background: var(--blue);
  color: #fff;
}
.btn.red {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
  transition: all 0.25s ease;
}

.btn.red:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn.outline {
  border: 2px solid var(--blue);
  color: var(--blue);
}

/* HERO */
.hero {
  background: #f3f5f7;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  position: relative;
  min-height: 500px;
  padding: 0;
  /*max-width: 100%;a*/
  overflow: hidden;
}
.hero-content {
  z-index: 2;
  padding: 24px 24px 24px 0;
}

.hero-image {
  z-index: 2;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  min-height: 500px;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tạo lớp phủ gradient đè lên ảnh */
.hero-image::after {
  content: "";
  position: absolute;
  z-index: 3; /* Nằm trên ảnh */
  pointer-events: none; /* Cho phép click xuyên qua */

  /* Thiết lập mặc định cho Desktop (Mờ từ trái sang phải) */
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%; /* Tăng độ rộng để che mép ảnh tốt hơn */

  /* Gradient màu trùng với background #f3f5f7 */
  background: linear-gradient(
    to right,
    #f3f5f7 25%,
    rgba(243, 245, 247, 0) 100%
  );
}

/* LIST */
.checklist {
  list-style: none;
  margin: 20px 0;
}
.checklist li::before {
  content: "✔ ";
  color: var(--gray);
  line-height: 2;
  font-weight: 900;
  margin-right: 4px;
}

/* Slide 2 styling - dãn dòng và căn chỉnh button */
.slide-2 .slide-2-text {
  line-height: 1.8;
  margin-bottom: 0;
  margin-top: 0;
}

.slide-2 .slide-2-btn {
  margin-top: 20px; /* Tương đương với chiều cao của checklist (20px margin + 3 items) */
}

.box {
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
}

/* PRODUCTS */
.products {
  background: #eef2f8;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card .btn {
  width: 100%;
  text-align: center;
}

/* CTA */
.cta {
  text-align: center;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* FOOTER */
.footer {
  background: #111;
  color: #fff;
}
.footer a {
  color: #fff;
}

/* =======================
   FIX USP RESPONSIVE
   (4 items trên 1 hàng, chỉ tách 2 hàng khi mobile nhỏ)
======================= */

.hero .usps {
  padding: 10px 0;
  width: 100%;
  overflow: hidden; 
}

.usps-list {
  display: flex;
  flex-wrap: nowrap; /* Quan trọng: Ép không xuống dòng */
  justify-content: space-between; /* Chia đều khoảng cách */
  align-items: center;
  margin: 0;  
  padding: 0; /* Đưa về 0 để sát mép container */
  width: 100%;
  list-style: none;
}

.usps-list li {
  position: relative;
  flex: 0 0 auto; /* Không chiếm hết không gian để space-between hoạt động */
  padding-left: 20px; /* Chừa chỗ cho dấu tick */
  list-style: none;
  font-size: 14px;
  line-height: 1.3;
  color: #333;
  white-space: normal;
  text-align: left;
}

.usps-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0; /* Căn chỉnh lại dấu tick */
  color: #757677;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
}

.hero-slider {
  display: flex;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-image img {
  width: 100%;
  max-width: 550px;
  margin-left: auto;
  display: block;
}
.hero {
  overflow: hidden;
}
.slider-track {
  width: 100%;
  max-width: 1200px;   /* giống container */
  margin: 0 auto;
  /* padding: 0 16px; */
}


/* =======================
   BEWÄHRT IM HANDEL
======================= */

.retail {
  background: #f4f6f8;
  padding: 60px 0;
}

.retail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.retail-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
}

.retail-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.retail-card figcaption {
  padding: 12px;
  font-size: 16px;
  font-weight: 500;
}

/* =======================
   CTA BOTTOM
======================= */

.cta-bottom {
  background: #f0f2f4;
  padding: 60px 0;
}

.cta-bottom h2 {
  margin-bottom: 24px;
}

/* =======================
   RESPONSIVE
======================= */

@media (max-width: 1024px) {
  .retail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .retail-grid {
    grid-template-columns: 1fr;
  }
}

.btn.primary {
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
  transition: all 0.25s ease;
}

.btn.primary:hover {
  background: #fff; /* nền trắng */
  color: var(--blue); /* chữ xanh */
  border-color: var(--blue); /* viền xanh */
}

/* --- TÙY CHỈNH CHO MÀN HÌNH TRUNG BÌNH (TABLET) --- 
   Giữ nguyên 1 hàng nhưng thu nhỏ chữ 
*/
@media (max-width: 1024px) {
  .usps-list li {
    font-size: 12px; /* Thu nhỏ chữ để vừa 1 hàng */
    padding-left: 16px;
  }
  .usps-list li::before {
    font-size: 14px;
    top: 1px;
  }
}

@media (max-width: 768px) {
  .compare {
    flex-direction: column;
    align-items: center;
  }
  .compare .box {
    width: 100%;
    max-width: 520px;
  }
  .box-wrapper {
    width: 100%;
    max-width: 520px;
  }
  .highlight-wrapper {
    width: 100%;
    max-width: 520px;
  }
  .compare .box-content {
    flex-direction: column;
  }
  .compare .box-image {
    width: 100%;
    height: 200px;
    margin-top: 16px;
  }
}

/* --- TÙY CHỈNH CHO MÀN HÌNH NHỎ (MOBILE < 640px) --- 
   Lúc này mới tách thành 2 hàng (2 cột x 2 hàng)
*/
@media (max-width: 640px) {
  .usps-list {
    flex-wrap: wrap; /* Cho phép xuống dòng */
    justify-content: flex-start;
  }

  .usps-list li {
    flex: 0 0 50%; /* Chiếm 50% chiều rộng -> 2 items/hàng */
    max-width: 50%;
    margin-bottom: 8px; /* Khoảng cách giữa 2 hàng */
    font-size: 13px; /* Tăng lại size chữ cho dễ đọc trên mobile */
    box-sizing: border-box; /* Đảm bảo padding không làm vỡ layout */
    padding-right: 0; /* Xóa bỏ để sát mép phải */
  }
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content {
    padding-right: 0;
    margin-bottom: 24px;
  }
  .hero-image {
    padding-left: 0;
    min-height: auto;
  }
  .hero-content {
    padding: 24px;
  }
  /* Xử lý Responsive cho Mobile - Gradient từ trên xuống dưới */
  .hero-image::after {
    width: 100%; /* Phủ toàn bộ chiều ngang */
    height: 200px; /* Tăng chiều cao vùng mờ trên mobile */
    top: 0;
    left: 0;
    bottom: auto; /* Bỏ bottom để chỉnh theo height */

    /* Gradient từ màu nền xuống trong suốt */
    background: linear-gradient(
      to bottom,
      #f3f5f7 30%,
      rgba(243, 245, 247, 0) 100%
    );
  }
}

/* =======================
   FIX HERO RESPONSIVE
======================= */

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content .btn {
    width: 100%;
    text-align: center;
  }

  .checklist {
    margin-bottom: 20px;
  }
  .hero-image {
    position: relative; /* ⬅️ QUAN TRỌNG */
    width: 100%;
    min-height: 240px;
    height: auto;
  }

  .hero-image img {
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }
  .hero .container {
    padding: 0 16px;
  }
}
a.btn.red {
  background-color: var(--red);
  color: #fff;
  border: 2px solid var(--red);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

a.btn.red:hover {
  background-color: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* =======================
   FAQ SECTION STYLING
======================= */

.faq-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 24px;
}

.faq-container h2 {
  text-align: center;
  color: #1a2b4b; /* Dark Navy Color */
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

/* Underline decoration */
.faq-container h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background-color: #d1d5db;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  background-color: #f8f9fa;
  font-weight: 600;
  color: #1a2b4b;
  list-style: none;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background-color: #eef1f5;
}

.faq-item .question-text {
  font-size: 16px;
}

.faq-item .icon {
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.faq-item[open] .icon {
  transform: rotate(45deg);
}

.faq-item .answer {
  padding: 20px;
  background-color: #fff;
  border-top: 1px solid #e5e7eb;
  color: #4b5563;
  line-height: 1.6;
  font-size: 15px;
}

.faq-item .answer p {
  margin: 0 0 5px 0;
  color: #4b5563;
}

/* =======================
   NEW FAQ CTA STYLING
======================= */

.faq-cta {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #d1d5db; /* Thin gray line separator */
  text-align: center;
}

.faq-cta h3 {
  color: #1a2b4b;
  font-size: 20px;
  margin-bottom: 10px;
}

.faq-cta p {
  color: #4b5563;
  margin-bottom: 20px;
}

/* Reusing your existing .btn.primary styling */
.faq-cta .btn {
  display: inline-block;
}

/* =======================
   HERO SLIDER STYLING
======================= */

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden; /* Ẩn phần nội dung tràn ra ngoài */
}

.slider-track {
  display: flex; /* Xếp các slide nằm ngang */
  width: 100%;
  transition: transform 0.5s ease-in-out; /* Hiệu ứng trượt mượt mà */
}

.slide {
  min-width: 100%; /* Mỗi slide chiếm 100% chiều rộng khung */
  box-sizing: border-box;
}

/* Đảm bảo nội dung bên trong slide vẫn giữ layout cũ */
.slide .hero-grid {
  width: 100%;
  margin: 0 auto;
}

/* Buttons điều hướng */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 24px;
  color: #1a2b4b;
  z-index: 10;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.pic-gallery {
  text-align: center;
  margin: 60px 0;
}

.pic-gallery h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.pic-gallery h2 {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
}

/* .gallery-grid img {
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
} */

.gallery-grid img {
  width: 100%;
  height: 200px; /* force uniform height */
  object-fit: cover; /* crops while keeping proportions */
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 768px) {
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .prev {
    left: 10px;
  }
  .next {
    right: 10px;
  }
}
/* ===== Floating CTA Bar ===== */
.cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f4f7fb;
    border-top: 1px solid #e2e6ed;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08);
}
/* Center content CTA bar */
.cta-bar__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;                 
    display: flex;
    align-items: center;
    justify-content: center;       
    gap: 15px;                     
}

/* Center text */
.cta-bar__features {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.cta-bar__features {
    display: flex;
    align-items: center;
    gap: 10px;             
}

.cta-bar__features .divider {
    width: 1px;
    height: 18px;
    background: #cfd6e3;
    margin: 0 10px;         
}


.cta-bar__button {
    padding: 14px 36px;
}

/* CTA Button */
.cta-bar__button {
	margin-left: 10px;
    background: #0074be;
    color: #fff;
    padding: 14px 26px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s ease;
}

.cta-bar__button:hover {
    background: #084298;
}
html, body {
    overflow-x: hidden;
    overflow-y: visible !important;
}

.cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f4f7fb;
    border-top: 1px solid #e2e6ed;
    z-index: 99999;
    padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 768px) {

    .cta-bar__content {
        flex-direction: column;     /* xếp dọc */
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 12px 15px;
        text-align: center;
    }

    .cta-bar__features {
        flex-wrap: wrap;            /* cho phép xuống dòng */
        justify-content: center;
        font-size: 14px;
        line-height: 1.4;
    }

    .cta-bar__features span {
        white-space: nowrap;        /* tránh gãy chữ */
    }

    .cta-bar__features .divider {
        margin: 0 6px;
    }

    .cta-bar__button {
        width: 100%;                /* button full width */
        max-width: 320px;
        text-align: center;
        padding: 12px 18px;
    }
}
/* Removed display: none for usps-list */

body {
    padding-bottom: 90px;
}

/* POS Intro Section */
.pos-intro {
  padding: 20px 0;
  background: #f4f6f8;
}

.pos-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;  
}

.pos-intro-text h2 {
  margin-bottom: 20px;
  line-height: 1.3;
}

.pos-intro-text p {
  margin-bottom: 15px;
  color: #555;
}

.pos-intro-image img {
  width: 100%;
  max-width: 520px;
  display: block;
  margin-left: auto;
}

/* Mobile */
@media (max-width: 768px) {
  .pos-intro-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pos-intro-image img {
    margin: 15px auto 0;
  }
}
.products-new {
  padding: 60px 0;
}

.wobbler-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.wobbler-card {
  position: relative;
  
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.wobbler-card img {
  max-height: 160px;
  margin: 30px auto 20px;
}

.wobbler-card p {

  min-height: 48px;
  color: #374151;
  font-size: 15px;
}

.wobbler-badge {
  position: absolute;
  width: 160px;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  border-radius: 100px;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
}

/* Badge colors */
.wobbler-badge.blue { background: #0074be; }
.wobbler-badge.orange { background: #0074be; }
.wobbler-badge.green { background: #0074be; }
.wobbler-badge.red { background: #0074be; }

/* Mobile */
@media (max-width: 992px) {
  .wobbler-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .wobbler-grid {
    grid-template-columns: 1fr;
  }
}

