/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-badge-card {
    right: 16px;
    bottom: -16px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--blue-light);
  }
}

/* Xử lý lỗi Stacking Context và tạo hiệu ứng mở menu mượt mà */
body.menu-open {
  overflow: hidden;
}

body.menu-open .navbar {
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 0;
  border: none;
  box-shadow: none;
}

/* Đảm bảo nav-links chiếm trọn không gian của navbar đã bung rộng */
body.menu-open .nav-links {
  position: absolute;
  height: 100%;
}

@media (max-width: 768px) {
  /* H\u01b0\u1edbng A: \u1ea8n video, hi\u1ec7n \u1ea3nh t\u0129nh tr\u00ean Mobile */
  .hero-video-wrap video {
    display: none;
  }

  .hero-mobile-bg {
    display: block;
  }

  .hero {
    min-height: 86vh;
    align-items: flex-end;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(24, 62, 92, .03) 0%, rgba(24, 62, 92, .58) 48%, rgba(24, 62, 92, .78) 100%),
      linear-gradient(90deg, rgba(45, 111, 148, .42), rgba(153, 204, 255, .12));
  }

  .hero-content {
    padding: 100px 20px 46px;
  }

  .hero-badge {
    font-size: .68rem;
    line-height: 1.45;
    letter-spacing: .06em;
    margin-bottom: 16px;
    padding: 8px 13px;
  }

  .hero-title {
    font-size: clamp(1.92rem, 10.8vw, 3.05rem);
    line-height: 1.08;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: .92rem;
    line-height: 1.58;
    margin-bottom: 16px;
  }

  .hero-benefits {
    gap: 8px;
    margin-bottom: 20px;
  }

  .hero-benefits li {
    font-size: .8rem;
    padding: 7px 11px;
  }

  .hero-benefits li:nth-child(3) {
    display: none;
  }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    padding: 13px 20px;
  }

  .hero-microcopy {
    font-size: .76rem;
    margin-top: 12px;
  }

  .hero-scroll {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .shop-info .section-title {
    font-size: 1.9rem;
  }

  .shop-info-lead {
    font-size: .95rem;
    line-height: 1.75;
  }

  .shop-info-list {
    padding-left: 18px;
    gap: 8px;
  }

  .shop-info-faq-list {
    gap: 10px;
    margin-top: 16px;
  }

  .shop-info-faq-item {
    padding: 15px 16px;
  }

  .shop-info-faq-item h3 {
    font-size: .92rem;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Tăng khoảng cách giữa các mục */
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 80px 32px 32px;
    align-items: center;
    justify-content: center; /* Căn giữa theo chiều dọc */
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 10px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: calc(0.05s * var(--i, 0));
  }

  /* Style riêng cho nút CTA trên mobile */
  .nav-links a.nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 200px;
    margin-top: 30px;
    padding: 14px 32px;
    border-bottom: none;
    font-size: 1.2rem;
    box-shadow: 0 8px 24px rgba(45, 111, 148, 0.18);
  }


  .nav-links.open a {
    opacity: 1;
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
    z-index: 1000;
  }

  .nav-links.open ~ .hamburger span {
    background: var(--text-dark);
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Product items trong modal: 2 cột khi màn hình đủ rộng */
  .product-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Nút Messenger to hơn trên mobile */
  .btn-messenger {
    font-size: .9rem;
    padding: 10px 18px;
    min-height: 44px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 16px 0;
  }

  .step {
    max-width: 100%;
    width: 100%;
  }

  .contact-card {
    min-width: unset;
    width: 100%;
  }

  .float-btn .float-label {
    display: none;
  }

  .float-btn {
    padding: 14px;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    justify-content: center;
  }

  .float-buttons.is-mobile-hero {
    display: none;
  }

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

@media (max-width: 480px) {
  .hero {
    min-height: 88svh;
  }

  .hero-content {
    padding: 84px 16px 32px;
  }

  .hero-title {
    font-size: clamp(1.82rem, 10.8vw, 2.72rem);
  }

  .hero-subtitle {
    font-size: .88rem;
  }

  .hero-benefits li {
    font-size: .78rem;
    padding: 7px 10px;
  }

  .hero-microcopy {
    font-size: .74rem;
  }

  .product-modal-overlay {
    padding: 10px;
  }

  .product-modal-content {
    max-height: 92dvh;
    border-radius: 20px;
    padding: 28px 14px 20px;
  }

  .product-modal-close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }

  .product-modal-title {
    font-size: 1.55rem;
    padding: 0 44px 12px;
    margin-bottom: 18px;
  }

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

  .trust-item {
    padding: 20px 16px;
  }

  .about-badge-card {
    position: static;
    margin-top: 16px;
    display: inline-block;
    width: 100%;
  }

  /* Modal gallery: 1 cột trên màn hình rất nhỏ */
  .product-gallery {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   ACCESSIBILITY – REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
