/* css/responsive.css */

/* Tablet & Mobile (Max 768px) */
@media (max-width: 768px) {
  /* Statistics Section - Tablet */
  .statistics-section {
    padding: 60px 16px;
    /* margin-top: 40px; */
  }

  .statistics-header h2 {
    font-size: 28px;
  }

  .statistics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .statistic-card {
    padding: 25px;
  }

  .statistic-icon {
    font-size: 40px;
    margin-bottom: 12px;
  }

  .statistic-number {
    font-size: clamp(22px, 8vw, 36px);
    margin-bottom: 6px;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
  }

  .statistic-label {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .statistic-description {
    font-size: 13px;
  }

  /* Egg Comparison Section - Tablet */
  .egg-comparison {
    padding: 60px 16px;
    margin-top: 40px;
  }

  .egg-comparison-header h2 {
    font-size: 28px;
  }

  .egg-comparison-subtitle {
    font-size: 15px;
  }

  .egg-comparison-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .egg-comparison-card {
    padding: 25px;
  }

  .egg-comparison-icon {
    font-size: 40px;
  }

  .egg-comparison-card-title {
    font-size: 18px;
  }

  .egg-comparison-item {
    padding: 15px;
  }

  .egg-comparison-item p {
    font-size: 13px;
  }

  /* Hero Section */
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .hero-text h1 {
    font-size: 36px !important;
  }

  /* Certificates & Gifts Carousel - Tablet */
  .comparison-image {
    padding: 40px 16px;
  }

  .comparison-image h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .thumb {
    width: 80px;
    height: 80px;
  }

  /* Featured Product - Tablet */
  .featured-product-card {
    grid-template-columns: 1fr;
  }

  .featured-product-image {
    max-height: 400px;
  }

  .featured-product-info {
    padding: 30px;
  }

  .featured-product-name {
    font-size: 24px;
  }

  .featured-product-price .price-new {
    font-size: 30px;
  }

  .featured-product-btn {
    font-size: 18px;
    padding: 16px;
  }

  .featured-badge {
    font-size: 14px;
    padding: 8px 20px;
  }

  /* Products Grid - Tablet */
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  /* Customer Feedback Gallery - Tablet */
  .customer-feedback-gallery {
    padding: 60px 16px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .section-header p {
    font-size: 15px;
  }

  .feedback-masonry-grid {
    column-count: 2;
    column-gap: 15px;
  }

  .feedback-masonry-wrap.is-collapsed {
    max-height: 560px;
  }

  .feedback-item {
    margin-bottom: 15px;
    border-radius: 10px;
  }

  .modal {
    align-items: flex-end;
    padding: 0;
  }
  .modal.show {
    align-items: flex-end;
  }

  .hero-content,
  .why-content {
    grid-template-columns: 1fr;
  }
  .hero-text h1 {
    font-size: 32px;
  }

  .header-container {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 16px;
  }
  .header-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
  .logo {
    font-size: 18px;
  }
  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .logo > div:last-child > div:last-child {
    font-size: 10px;
  }

  .hero {
    padding: 40px 16px;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .hero-image {
    order: 2;
  }
  .hero-signature-badge {
    left: 12px;
    bottom: -18px;
    padding: 6px 14px 6px 6px;
  }
  .hero-signature-badge img {
    width: 46px;
    height: 46px;
  }
  .hero-signature-caption {
    font-size: 11px;
    max-width: 110px;
  }
  .hero-text {
    order: 1;
  }
  .hero-text p {
    font-size: 15px;
  }

  .comparison-image h2 {
    font-size: 28px;
    margin-bottom: 25px;
  }
  .comparison h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 14px 12px;
    font-size: 13px;
  }
  .comparison-carousel {
    padding: 16px;
  }
  .comparison-carousel-thumbs {
    gap: 10px;
  }
  .comparison-carousel-thumbs .thumb {
    width: 90px;
    height: 70px;
  }
  .comparison-carousel p {
    font-size: 15px;
  }

  /* Mobile Header & Menu Scroll Fix */
  header,
  header.scrolled {
    background: #1b5e20 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .nav-menu {
    display: none;
    /* position and top are controlled by JS — no !important so JS can override */
    position: fixed;
    top: 54px;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #1b4332 !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 8px 0 !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
    z-index: 99999 !important;
    border-bottom: 3px solid var(--primary, #2e7d32) !important;
  }
  .nav-menu.mobile-active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .nav-menu a {
    color: #ffffff !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    text-decoration: none !important;
    display: block !important;
    background: transparent !important;
  }
  .nav-menu a:last-child {
    border-bottom: none !important;
  }
  /* Nút MUA NGAY trong mobile menu: full-width nổi bật */
  .nav-menu .cta-btn {
    display: block !important;
    width: calc(100% - 32px) !important;
    margin: 12px 16px 8px !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
    border-bottom: none !important;
    text-align: center !important;
    background: linear-gradient(135deg, #ff8f00 0%, #f44336 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(244, 67, 54, 0.4) !important;
  }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
    z-index: 10002;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .pricing-item.featured {
    transform: scale(1);
  }
  .countdown-timer {
    gap: 15px;
  }
  .countdown-item {
    min-width: 80px;
    padding: 15px 20px;
  }
  .countdown-value {
    font-size: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
  .why-section .farm-story {
    padding-top: 20px;
  }
  .story-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .story-content.reverse {
    direction: ltr;
  }
  .story-content.reverse .story-image,
  .story-content.reverse .story-text {
    order: unset;
  }
  .story-text h3,
  .story-text h4 {
    font-size: 1.5rem;
  }

  .modal-content {
    width: 100%;
    max-width: none;
    max-height: 88vh;
    margin: 0;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.18);
  }
  .modal-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
  }

  /* Modal thông báo kết quả (thành công/lỗi) dạng Dialog Card căn giữa */
  #resultModal.show {
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  .result-modal-content {
    width: calc(100% - 32px);
    max-width: 360px;
    margin: auto;
    border-radius: 20px;
    padding: 28px 20px 22px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22);
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .searchable-select-trigger,
  .searchable-select-input,
  .searchable-select-option {
    font-size: 16px;
  }
  .searchable-select-trigger {
    min-height: 52px;
  }
  .searchable-select-input {
    min-height: 48px;
  }

  .product-radio-grid {
    grid-template-columns: 1fr;
  }
  .product-radio-card {
    padding: 14px;
    align-items: flex-start;
  }
  .product-radio-card strong {
    font-size: 16px;
  }

  .order-section {
    padding: 60px 14px 80px;
  }

  .order-section-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .order-section-header h2 {
    font-size: 24px;
  }

  .order-section-header p {
    font-size: 14px;
  }

  .quantity-stepper {
    max-width: 100%;
  }

  .quantity-stepper input {
    width: 100%;
  }

  .order-summary-box {
    padding: 12px;
  }

  .order-summary-row {
    font-size: 13px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .product-radio-card p,
  .product-radio-card small {
    line-height: 1.5;
  }

  .farm-video {
    padding: 40px 16px;
  }
  .farm-video h2 {
    font-size: 28px;
    margin-bottom: 24px;
  }
  .vimeo-vertical-wrapper {
    max-width: 320px;
    border-radius: 14px;
  }
  .farm-video-wrapper {
    border-radius: 18px;
  }
  .farm-video-wrapper video {
    aspect-ratio: 16 / 9;
  }

  .scroll-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
  }
}

/* Small Mobile (Max 480px) */
@media (max-width: 480px) {
  /* Prevent horizontal overflow and ensure main containers fill viewport */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
  }

  .background-3d-container {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    pointer-events: none;
  }

  .herbs-grid-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .header-container,
  .hero,
  .hero-content,
  .herbal-story-container,
  .comparison-image,
  .gift-container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .floating-shape {
    max-width: 100%;
    will-change: transform;
  }

  /* Defensive rule: ensure no element creates horizontal scroll */
  body > * {
    max-width: 100%;
    overflow-x: hidden;
  }
  /* Statistics Section - Mobile */
  .statistics-section {
    padding: 40px 12px;
    /* margin-top: 40px; */
  }

  .statistics-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .statistics-header h2::after {
    width: 50px;
    height: 3px;
  }

  .statistics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .statistic-card {
    padding: 20px;
    border-width: 1px;
  }

  .statistic-icon {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .statistic-number {
    font-size: 36px;
    margin-bottom: 6px;
  }

  .statistic-label {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .statistic-description {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Egg Comparison Section - Mobile */
  .egg-comparison {
    padding: 40px 12px;
    margin-top: 40px;
  }

  .egg-comparison-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .egg-comparison-header h2::after {
    width: 50px;
    height: 3px;
  }

  .egg-comparison-subtitle {
    font-size: 14px;
  }

  .egg-comparison-grid {
    gap: 15px;
  }

  .egg-comparison-card {
    padding: 20px;
    border-width: 1px;
  }

  .egg-comparison-icon {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .egg-comparison-card-title {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .egg-comparison-item {
    padding: 12px;
  }

  .egg-comparison-badge {
    font-size: 11px;
    padding: 3px 10px;
  }

  .egg-comparison-item p {
    font-size: 13px;
    line-height: 1.7;
  }

  /* Certificates & Gifts Carousel - Mobile */
  .comparison-image {
    padding: 30px 12px;
  }

  .comparison-image h2 {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .carousel-nav {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .carousel-prev {
    left: 5px;
  }

  .carousel-next {
    right: 5px;
  }

  .thumb {
    width: 60px;
    height: 60px;
    border-width: 2px;
  }

  .comparison-carousel-thumbs {
    gap: 10px;
  }

  /* Featured Product - Mobile */
  .featured-product-section {
    margin-bottom: 35px;
  }

  .featured-badge {
    font-size: 12px;
    padding: 8px 16px;
    top: -12px;
  }

  .featured-product-card {
    grid-template-columns: 1fr;
    border-width: 2px;
  }

  .featured-product-image {
    max-height: 300px;
  }

  .featured-discount-label {
    font-size: 16px;
    padding: 8px 15px;
    top: 15px;
    right: 15px;
  }

  .featured-product-info {
    padding: 20px;
  }

  .featured-product-name {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .featured-product-specs {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .featured-product-price {
    margin-bottom: 25px;
    gap: 10px;
  }

  .featured-product-price .price-old {
    font-size: 18px;
  }

  .featured-product-price .price-new {
    font-size: 26px;
  }

  .featured-product-price .price-save {
    font-size: 14px;
    padding: 5px 12px;
  }

  .featured-product-btn {
    font-size: 16px;
    padding: 14px;
  }

  /* Products Grid - Mobile */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #products-section-container > h2 {
    font-size: 26px;
    margin-bottom: 30px;
  }

  /* Customer Feedback Gallery - Mobile */
  .customer-feedback-gallery {
    padding: 40px 12px;
    margin-top: 40px;
  }

  .section-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .section-header h2::after {
    width: 50px;
    height: 3px;
  }

  .section-header p {
    font-size: 14px;
  }

  .feedback-masonry-grid {
    column-count: 1;
    column-gap: 0;
  }

  .feedback-masonry-wrap.is-collapsed {
    max-height: 420px;
  }

  .feedback-fade-overlay {
    height: 120px;
  }

  .feedback-item {
    margin-bottom: 15px;
    border-radius: 10px;
  }

  .feedback-item:hover {
    transform: none;
  }

  /* FAQ Section - Mobile */
  .faq {
    padding: 40px 16px;
  }

  .faq h2 {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .faq-item {
    margin-bottom: 12px;
    border-radius: 10px;
  }

  .faq-question {
    padding: 15px;
    font-size: 14px;
  }

  .faq-icon {
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 15px;
  }

  .faq-item.active .faq-answer {
    padding: 15px;
  }

  .faq-answer p {
    font-size: 14px;
    line-height: 1.6;
  }

  .custom-alert {
    top: 76px;
    bottom: auto;
    left: 12px;
    width: calc(100% - 24px);
    max-width: 300px;
    z-index: 9999;
  }
  .custom-alert.show {
    animation: slideInTopLeft 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  .custom-alert.hide {
    animation: slideOutTopLeft 0.3s ease forwards;
  }
  .alert-content {
    padding: 10px 12px 8px;
    gap: 8px;
  }
  .alert-avatar {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }
  .alert-customer {
    font-size: 12px;
  }
  .alert-meta {
    font-size: 10px;
  }
  .alert-product {
    font-size: 11px;
  }
  .alert-time {
    font-size: 9px;
  }

  .hero-text h1 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .hero-text,
  .hero-image,
  .hero-content,
  .why-content,
  .story-content,
  .packaging-methods,
  .gift-body,
  .farm-story-body,
  .final-cta-highlights,
  .feedback-masonry-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .herbs-grid,
  .statistics-grid,
  .products-grid,
  .farm-story-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-signature-badge,
  .farm-story-video,
  .product-radio-card,
  .faq-item,
  .gift-occasion-card,
  .value-anchor-card,
  .packaging-card,
  .packaging-guarantee,
  .herb-card,
  .farm-stat-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cta-btn,
  .header-btn,
  .product-btn,
  .featured-product-btn,
  .special-cta-button,
  .final-cta-btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }
  .header-container {
    padding: 0 12px;
  }
  .header-btn {
    padding: 9px 15px;
    font-size: 12px;
  }
  .logo {
    font-size: 16px;
    gap: 8px;
  }
  .logo-icon {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  .logo > div:last-child > div:first-child {
    font-size: 14px;
  }
  .logo > div:last-child > div:last-child {
    font-size: 9px;
  }
  .nav-menu a {
    font-size: 13px;
    padding: 10px 16px;
  }

  .hero {
    padding: 30px 16px;
  }

  /* Hide decorative 3D background on small screens to avoid overflow issues */
  .background-3d-container {
    display: none;
  }

  /* Prevent hero pseudo-element from causing horizontal scroll */
  .hero {
    overflow: hidden;
  }
  .hero::before {
    right: -30%;
    width: 320px;
    height: 320px;
  }

  /* Reduce top offset for body so fixed header doesn't overlap content on small screens */
  body {
    padding-top: 64px;
  }

  .herbal-story-section,
  .packaging-section,
  .customer-feedback-gallery,
  .faq,
  .final-cta-section,
  .special-program-section {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hero-text p {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .farm-video {
    padding: 30px 12px;
  }
  .farm-video h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .vimeo-vertical-wrapper {
    max-width: 280px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  }
  .farm-video-wrapper {
    box-shadow: none;
    border-radius: 16px;
  }
  .farm-video-wrapper video {
    aspect-ratio: 16 / 9;
  }

  .discount-badge {
    font-size: 22px;
    padding: 12px 20px;
    margin-bottom: 15px;
  }
  .discount-text {
    font-size: 12px;
    margin-top: 8px;
  }
  .cta-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

  .comparison-image h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .comparison-carousel {
    padding: 12px;
  }
  .comparison-carousel-main img {
    width: 100%;
    height: auto;
    max-height: none;
  }
  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .comparison-carousel-thumbs {
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .comparison-carousel-thumbs .thumb {
    min-width: 74px;
    width: auto;
    flex: 0 0 auto;
    height: 58px;
  }
  .comparison-carousel p {
    font-size: 13px;
    margin-top: 15px;
  }

  .products-container {
    grid-template-columns: 1fr;
  }
  .testimonials-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .testimonial-card {
    min-width: 270px;
    flex: 0 0 270px;
    padding: 20px;
  }
  .testimonial-text {
    font-size: 13px;
    margin-bottom: 15px;
  }
  .pricing-table {
    grid-template-columns: 1fr;
  }
  .countdown-timer {
    gap: 10px;
  }
  .countdown-item {
    min-width: 70px;
    padding: 12px 15px;
  }
  .countdown-value {
    font-size: 28px;
  }
  .countdown-label {
    font-size: 11px;
  }

  .modal-content {
    width: 100%;
    max-height: 90vh;
    padding: 20px 14px calc(20px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
  }
  .result-modal-content {
    width: calc(100% - 24px);
    max-width: 340px;
    padding: 24px 16px 20px;
    border-radius: 18px;
  }
  .form-group {
    margin-bottom: 15px;
  }
  .modal-header h2 {
    font-size: 20px;
  }
  .product-radio-card {
    padding: 12px;
  }
  .submit-btn {
    min-height: 52px;
    font-size: 16px;
  }

  .story-text h3,
  .story-text h4 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  .why-text h3 {
    font-size: 20px;
  }
  .why-text p,
  .why-list li {
    font-size: 14px;
  }
  .benefit-item h3 {
    font-size: 15px;
  }
  .benefit-item p {
    font-size: 13px;
  }
}

/* Mobile Devices (iPhone 14 Pro Max 430px, iPhone 14 Pro 393px, iPhone 12 Pro 390px & all phones) */
@media (max-width: 768px) {
  .custom-alert {
    top: 76px;
    bottom: auto;
    left: 12px;
    width: calc(100% - 24px);
    max-width: 290px;
    z-index: 9999;
  }
  .custom-alert.show {
    animation: slideInTopLeft 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  .custom-alert.hide {
    animation: slideOutTopLeft 0.3s ease forwards;
  }
  .cta-btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }
  .alert-content {
    padding: 9px 10px 8px;
  }
  .alert-customer {
    font-size: 11px;
  }
  .alert-product {
    font-size: 10px;
  }

  header {
    padding: 10px 0;
  }
  .header-container {
    padding: 0 10px;
    gap: 8px;
  }
  .logo {
    font-size: 14px;
    gap: 6px;
  }
  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  /* Slightly smaller body offset for very small phones */
  body {
    padding-top: 58px;
  }
  .logo > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .logo > div:last-child > div:first-child {
    font-size: 12px;
    font-weight: bold;
  }
  .logo > div:last-child > div:last-child {
    font-size: 7px;
    line-height: 1;
  }
  .header-btn {
    padding: 8px 12px;
    font-size: 11px;
    border-radius: 4px;
  }
  .mobile-menu-btn {
    font-size: 24px;
  }

  .hero {
    padding: 25px 12px;
  }
  .hero::before {
    right: -40%;
    width: 260px;
    height: 260px;
  }
  .hero::before {
    width: 350px;
    height: 350px;
    top: -50%;
    right: -15%;
  }
  .hero-text h1 {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.2;
  }
  .hero-text p {
    font-size: 12px;
    margin-bottom: 16px;
    line-height: 1.6;
  }
  .discount-badge {
    font-size: 18px;
    padding: 10px 16px;
    margin-bottom: 10px;
    border-radius: 40px;
  }
  .discount-text {
    font-size: 10px;
    margin-top: 6px;
  }
  .cta-btn {
    padding: 10px 16px;
    font-size: 12px;
    margin-top: 15px;
  }
  .hero-image {
    margin-top: 20px;
  }
  .hero-image img {
    border-radius: 12px;
  }
  .hero-signature-badge {
    left: 4px;
    bottom: -14px;
    gap: 8px;
    padding: 5px 12px 5px 5px;
  }
  .hero-signature-badge img {
    width: 38px;
    height: 38px;
    border-width: 2px;
  }
  .hero-signature-caption {
    font-size: 10px;
    max-width: 92px;
  }

  .benefits {
    padding: 30px 12px;
    margin-top: 0;
  }
  .benefits-container {
    gap: 15px;
  }
  .benefit-item {
    padding: 15px;
    border-radius: 8px;
  }
  .benefit-icon {
    font-size: 32px;
    margin-bottom: 10px;
  }
  .benefit-item h3 {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .benefit-item p {
    font-size: 11px;
    line-height: 1.6;
  }

  /* Why Section — Mobile UI Redesign (iPhone 14 Pro Max & iPhone 12 Pro) */
  .why-section {
    padding: 40px 12px;
    margin-top: 20px;
  }

  .why-header {
    text-align: center;
    margin-bottom: 24px;
  }

  .why-header h2 {
    font-size: 22px !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
  }

  .egg-comparison-subtitle {
    font-size: 13px !important;
    color: var(--text-light) !important;
    margin-top: 6px !important;
  }

  /* Block 1: 3 KHÔNG Feature Card */
  .why-feature-block {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 20px 16px !important;
    border-radius: 20px !important;
    background: #f4f9f4 !important;
    border: 1px solid rgba(46, 125, 50, 0.18) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 28px !important;
  }

  .why-feature-image img {
    height: 240px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  }

  .why-feature-content h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
    margin-bottom: 14px !important;
  }

  .why-usp-pills {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }

  .why-usp-pill {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid rgba(46, 125, 50, 0.15) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
  }

  .why-usp-check {
    width: 22px !important;
    height: 22px !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    flex: 0 0 22px !important;
  }

  .why-feature-content p {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: var(--text-dark) !important;
  }

  /* Block 2: Comparison Table Mobile Optimization — P1-5 */
  .comparison-swipe-hint {
    display: none !important;
  }

  .comparison-table-wrapper {
    display: none !important;
  }

  .comparison-mobile-cards {
    display: flex !important;
  }

  /* Block 3: Why Cards Mobile Grid */
  .why-cards-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .why-card {
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  .why-card-image img {
    height: 230px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .why-card-body {
    padding: 18px 16px !important;
  }

  .why-card-body h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
    margin-bottom: 8px !important;
  }

  .why-card-body p {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: var(--text-dark) !important;
  }
  .why-content {
    gap: 20px;
    margin-top: 25px !important;
  }
  .why-image img {
    border-radius: 12px;
  }
  .why-text h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .why-text p {
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.6;
  }
  .why-list li {
    padding: 8px 0;
    padding-left: 28px;
    font-size: 12px;
  }
  .why-list li:before {
    font-size: 16px;
  }
  .story-text h3,
  .story-text h4 {
    font-size: 15px;
    margin-bottom: 12px;
  }
  .story-text p {
    font-size: 12px;
    line-height: 1.6;
  }
  .usp-list li {
    padding: 8px 0;
    padding-left: 28px;
    font-size: 12px;
  }
  .usp-list li:before {
    font-size: 16px;
  }

  .comparison {
    margin-top: 40px;
    padding: 0 12px;
  }
  .comparison h2 {
    font-size: 20px;
    margin-bottom: 25px;
  }
  .comparison-table {
    border-radius: 8px;
    overflow-x: auto;
    display: block;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 12px 10px;
    font-size: 11px;
  }
  .comparison-table th {
    font-size: 12px;
  }
  .check-mark {
    font-size: 16px;
  }
  .cross-mark {
    font-size: 16px;
  }

  .comparison-image {
    margin-top: 40px;
    padding: 0 12px;
  }
  .comparison-image h2 {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .comparison-carousel {
    padding: 10px;
    border-radius: 16px;
  }
  .comparison-carousel-main {
    border-radius: 14px;
  }
  .carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
  .carousel-prev {
    left: 10px;
  }
  .carousel-next {
    right: 10px;
  }
  .comparison-carousel-thumbs {
    gap: 6px;
    margin-top: 12px;
  }
  .comparison-carousel-thumbs .thumb {
    min-width: 64px;
    width: auto;
    height: 48px;
    padding: 3px;
    border-radius: 10px;
  }
  .comparison-carousel-thumbs .thumb img {
    border-radius: 8px;
  }
  .comparison-carousel p {
    font-size: 12px;
    margin-top: 12px;
    line-height: 1.6;
  }

  .products {
    padding: 40px 12px;
    margin-top: 40px;
  }
  .products h2 {
    font-size: 20px;
    margin-bottom: 25px;
  }
  .products-container {
    gap: 15px;
  }
  .product-card {
    border-radius: 10px;
  }
  .product-image {
    height: 200px;
  }
  .discount-label {
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .product-info {
    padding: 15px;
  }
  .product-name {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .product-specs {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .price-new {
    font-size: 20px;
  }
  .price-old {
    font-size: 12px;
  }
  .product-btn {
    padding: 10px;
    font-size: 12px;
  }

  .testimonials {
    margin-top: 40px;
    padding: 0 12px;
  }
  .testimonials h2 {
    font-size: 20px;
    margin-bottom: 25px;
  }
  .testimonial-card {
    min-width: 240px;
    flex: 0 0 240px;
    padding: 16px;
    border-left-width: 4px;
  }
  .stars {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .testimonial-text {
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.6;
  }
  .author-avatar {
    width: 45px;
    height: 45px;
    border-width: 2px;
  }
  .author-info h4 {
    font-size: 12px;
    margin-bottom: 2px;
  }
  .author-info p {
    font-size: 11px;
  }

  .pricing {
    padding: 40px 12px;
    margin-top: 0px;
  }
  .pricing h2 {
    font-size: 20px;
    margin-bottom: 25px;
  }
  .countdown {
    margin: 25px 0;
    padding: 25px 15px;
    border-radius: 10px;
  }
  .countdown h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  .countdown-timer {
    gap: 8px;
  }
  .countdown-item {
    min-width: 60px;
    padding: 10px 12px;
    border-radius: 6px;
  }
  .countdown-value {
    font-size: 22px;
    margin-bottom: 4px;
  }
  .countdown-label {
    font-size: 9px;
  }
  .pricing-table {
    gap: 15px;
  }
  .pricing-item {
    padding: 20px 15px;
    border-radius: 10px;
  }
  .pricing-item h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }
}

/* Special Program Section - Tablet */
.special-program-section {
  padding: 50px 16px;
}

.special-program-wrapper {
  padding: 32px;
}

.special-program-badge {
  font-size: 15px;
  padding: 10px 30px;
  top: -16px;
}

.special-program-content {
  grid-template-columns: 1fr;
  gap: 30px;
}

.special-program-heading {
  font-size: 30px;
}

.special-program-subheading {
  font-size: 20px;
}

.special-program-text {
  font-size: 15px;
}

.special-program-benefits {
  gap: 14px;
}

.benefit-item-special {
  padding: 16px;
}

.benefit-icon-special {
  width: 42px;
  height: 42px;
  font-size: 20px;
}

.benefit-title {
  font-size: 15px;
}

.benefit-desc {
  font-size: 13px;
}

.countdown-box {
  min-width: 58px;
  padding: 12px 13px;
}

.countdown-number {
  font-size: 24px;
}

.countdown-text {
  font-size: 11px;
}

.special-cta-button {
  font-size: 17px;
  padding: 18px;
}

/* Special Program Section - Mobile */
.special-program-section {
  padding: 30px 14px;
}

.special-program-wrapper {
  padding: 22px;
  border-radius: 20px;
}

.special-program-badge {
  font-size: 14px;
  padding: 9px 24px;
  top: -14px;
  letter-spacing: 0.5px;
}

.special-program-content {
  grid-template-columns: 1fr;
  gap: 24px;
}

.special-program-image-wrapper {
  border-radius: 18px;
  min-height: 260px;
  overflow: hidden;
}

.special-program-image-wrapper img {
  width: 100%;
  height: auto;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.urgency-tag {
  top: 14px;
  right: 14px;
  padding: 8px 14px;
  font-size: 11px;
  border-radius: 10px;
}

.special-program-heading {
  font-size: 24px;
}

.special-program-subheading {
  font-size: 18px;
}

.special-program-text {
  font-size: 14px;
  line-height: 1.65;
}

.special-program-benefits {
  gap: 12px;
}

.benefit-item-special {
  padding: 14px;
}

.benefit-icon-special {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.benefit-title {
  font-size: 14px;
}

.benefit-desc {
  font-size: 12px;
  line-height: 1.5;
}

.countdown-wrapper {
  padding: 18px;
  border-radius: 16px;
}

.countdown-heading {
  font-size: 15px;
  margin-bottom: 14px;
}

.countdown-boxes {
  gap: 10px;
}

.countdown-box {
  min-width: 54px;
  padding: 10px 12px;
}

.countdown-number {
  font-size: 22px;
  margin-bottom: 4px;
}

.countdown-text {
  font-size: 10px;
}

.special-cta-button {
  font-size: 16px;
  padding: 16px;
  min-height: 52px;
}

/* ============================================
   NEW SECTIONS RESPONSIVE
   ============================================ */

/* Hero mới — tablet */
@media (max-width: 768px) {
  .hero-label {
    font-size: 11px;
    padding: 5px 14px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-buttons-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
  }

  .hero-cta-note {
    font-size: 12px;
  }

  .hero-offer-badge {
    font-size: 13px;
    padding: 7px 16px;
  }

  /* Herbal Story — tablet */
  .herbal-story-section {
    padding: 50px 16px;
  }

  .herbal-story-header h2 {
    font-size: 26px;
  }

  .herbal-story-body {
    grid-template-columns: 1fr;
  }

  .herbal-result-card {
    position: static;
  }

  /* Value Justification — tablet */
  .value-justification-section {
    padding: 50px 16px;
  }

  .value-header h2 {
    font-size: 26px;
  }

  /* Gift Section — tablet */
  .gift-section {
    padding: 50px 16px;
  }

  .gift-header h2 {
    font-size: 26px;
  }

  .gift-body {
    grid-template-columns: 1fr;
  }
}

/* Hero mới — mobile nhỏ */
@media (max-width: 480px) {
  .hero-label {
    font-size: 10px;
    padding: 4px 12px;
    margin-bottom: 14px;
  }

  .hero-text h1 {
    font-size: 22px !important;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 8px;
  }

  .hero-buttons-wrap {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .hero-buttons-wrap .cta-btn,
  .hero-buttons-wrap .hero-secondary-btn {
    width: 100%;
    max-width: 100%;
    height: 48px;
    font-size: 15px;
    padding: 0 16px;
    text-align: center;
    box-sizing: border-box;
  }

  .hero-offer-badge {
    font-size: 12px;
    padding: 6px 14px;
  }

  /* Herbal Story — mobile */
  .herbal-story-section {
    padding: 40px 12px;
  }

  .herbal-story-header h2 {
    font-size: 22px;
  }

  .herbal-story-label {
    font-size: 11px;
  }

  /* Herbal Story — Mobile Carousel & Touch Swipe (iPhone 14 Pro / 12 Pro) */
  .herbs-swipe-hint {
    display: flex !important;
  }

  .herbs-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px !important;
    padding: 8px 16px 16px 16px !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
    background-image: none !important;
  }

  .herbs-grid::-webkit-scrollbar {
    display: none;
  }

  .herb-card {
    flex: 0 0 230px !important;
    width: 230px !important;
    max-width: 230px !important;
    scroll-snap-align: start;
    display: grid !important;
    grid-template-columns: 56px 1fr !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(46, 125, 50, 0.15) !important;
  }

  .herb-image-wrap {
    width: 56px !important;
    height: 56px !important;
    flex: 0 0 56px !important;
    border-radius: 12px !important;
  }

  .herb-info strong {
    font-size: 14px !important;
    display: block;
  }

  .herb-info span {
    font-size: 12px !important;
    color: var(--text-light);
    line-height: 1.3;
    display: block;
  }

  .farm-story-body {
    gap: 24px;
  }

  .farm-story-img {
    height: 240px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 16px !important;
  }

  /* Farm Story Stats — 2x2 Badge Grid on Mobile */
  .farm-story-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 14px !important;
  }

  .farm-story-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .farm-stat-card {
    padding: 12px 10px;
  }

  .farm-stat-number {
    font-size: 20px;
  }

  .farm-stat-label {
    font-size: 11px;
  }

  .farm-story-video {
    padding: 10px;
    margin-top: 20px;
  }

  .farm-process-title {
    font-size: 16px;
    margin-bottom: 18px;
  }

  .farm-step-content h4 {
    font-size: 14px;
  }

  .farm-step-content p {
    font-size: 13px;
  }

  .herbal-result-card {
    padding: 22px 20px;
  }

  .herbal-result-card h3 {
    font-size: 17px;
  }

  .herbal-result-list li {
    font-size: 13px;
  }

  /* Value Justification — mobile */
  .value-justification-section {
    padding: 40px 12px;
  }

  .value-header h2 {
    font-size: 22px;
  }

  .value-anchor-card {
    gap: 14px;
    padding: 16px;
  }

  .value-anchor-icon {
    font-size: 28px;
  }

  .value-anchor-body strong {
    font-size: 14px;
  }

  /* Gift Section — mobile */
  .gift-section {
    padding: 40px 12px;
  }

  .gift-header h2 {
    font-size: 22px;
  }

  .gift-occasion-card {
    padding: 14px;
    gap: 12px;
  }

  .gift-occasion-icon {
    font-size: 26px;
  }

  .gift-occasion-info strong {
    font-size: 14px;
  }

  .gift-occasion-info p {
    font-size: 12px;
  }

  .gift-packaging-card {
    padding: 18px;
  }

  .gift-packaging-card h4 {
    font-size: 13px;
  }

  .gift-packaging-card ul li {
    font-size: 12px;
  }

  /* Final CTA — mobile */
  .final-cta-title {
    font-size: 22px;
  }

  .final-cta-subtitle {
    font-size: 14px;
  }

  .final-cta-highlights {
    grid-template-columns: 1fr;
  }

  .final-cta-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
  }
}

/* Extra Small Mobile (Max 360px — iPhone SE & small Android) */
@media (max-width: 360px) {
  .hero-signature-badge {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 10px;
    width: 100%;
  }

  .countdown-boxes {
    gap: 6px;
  }

  .countdown-box {
    min-width: 44px;
    padding: 6px 4px;
  }

  .countdown-number {
    font-size: 18px;
  }

  .quantity-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .carousel-nav {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

/* ============================================
   LIGHTBOX - Responsive (Mobile)
   ============================================ */
@media (max-width: 600px) {
  .lightbox-content-wrap {
    max-width: calc(100vw - 100px);
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .lightbox-img {
    max-height: calc(100vh - 160px);
    border-radius: 8px;
  }

  .lightbox-close {
    width: 38px;
    height: 38px;
    font-size: 22px;
    top: 12px;
    right: 12px;
  }
}

/* ============================================
   QUICK OFFER SECTION — Mobile & Responsive (P2-1)
   ============================================ */

@media (max-width: 992px) {
  .quick-offer-grid {
    grid-template-columns: 280px 1fr;
    gap: 24px;
  }

  .quick-offer-card {
    padding: 24px 28px;
  }
}

@media (max-width: 768px) {
  .quick-offer-section {
    padding: 10px 16px 30px;
  }

  .quick-offer-card {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .quick-offer-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 18px;
  }

  .quick-offer-badge-tag {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    font-size: 11.5px;
    padding: 7px 12px;
  }

  .quick-offer-timer-wrap {
    width: 100%;
    justify-content: space-between;
    padding: 6px 14px;
    box-sizing: border-box;
  }

  .quick-offer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .quick-offer-media {
    width: 100%;
  }

  .quick-offer-img-box {
    max-width: 280px;
    margin: 0 auto;
    padding: 12px;
  }

  .quick-offer-img {
    max-height: 200px;
  }

  .quick-offer-title {
    font-size: 19px;
    text-align: center;
  }

  .quick-offer-perks {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quick-offer-price-block {
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .quick-offer-actions {
    flex-direction: column;
    width: 100%;
  }

  .quick-offer-cta-main,
  .quick-offer-cta-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  .quick-offer-footer-trust {
    text-align: center;
    justify-content: center;
    font-size: 11.5px;
  }
}

@media (max-width: 480px) {
  .quick-offer-timer-wrap {
    gap: 6px;
    padding: 6px 10px;
  }

  .quick-offer-timer-label {
    font-size: 11px;
  }

  .qo-timer-box {
    min-width: 26px;
    height: 24px;
    font-size: 12px;
  }

  .qo-timer-unit {
    font-size: 11px;
    height: 24px;
    padding: 2px 8px;
  }

  .quick-offer-price-new {
    font-size: 24px;
  }

  .quick-offer-cta-main {
    font-size: 14px;
    padding: 14px 16px;
  }
}

/* ============================================
   IPHONE 14 PRO & SMALL PHONES (≤ 430px)
   ============================================ */
@media (max-width: 430px) {
  /* Timer wrap: căn giữa hoàn toàn, stack label + boxes nếu quá chật */
  .quick-offer-timer-wrap {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 8px;
    padding: 8px 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .quick-offer-timer-label {
    font-size: 10.5px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
  }

  /* Boxes hàng ngang, căn giữa, đồng chiều cao */
  .quick-offer-timer-boxes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-shrink: 0;
  }

  .qo-timer-box,
  .qo-timer-unit {
    height: 26px;
    min-width: 26px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    line-height: 1;
    vertical-align: middle;
  }

  .qo-timer-unit {
    padding: 0 7px;
    font-size: 11px;
  }

  .qo-colon {
    font-size: 13px;
    line-height: 1;
    vertical-align: middle;
  }

  /* Header bar: badge + timer xếp dọc, căn giữa */
  .quick-offer-header-bar {
    align-items: center;
    gap: 8px;
  }

  .quick-offer-badge-tag {
    font-size: 10.5px;
    padding: 6px 10px;
    letter-spacing: 0.2px;
  }
}
