/* Mobile product cards */
@media (max-width: 768px) {
  .products {
    overflow: hidden;
    padding: 56px 0 62px;
  }

  .products .section-title {
    margin-bottom: 28px;
    text-align: left;
  }

  .products .section-title span {
    display: inline-block;
    margin-bottom: 10px;
  }

  .products .section-title h2 {
    max-width: 320px;
    font-size: 28px;
    line-height: 1.25;
  }

  .products .container {
    max-width: 100%;
    width: 100%;
    padding-left: 16px;
    padding-right: 0;
  }

  .product-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 16px 18px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .product-grid::-webkit-scrollbar {
    display: none;
  }

  .product-card {
    flex: 0 0 84%;
    max-width: 340px;
    scroll-snap-align: start;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(20, 54, 92, .10);
  }

  .product-card:hover {
    transform: none;
  }

  .product-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
  }

  .product-info {
    padding: 20px;
  }

  .product-info h3 {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.3;
  }

  .product-info p {
    min-height: 48px;
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.65;
  }

  .product-info a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #4ea8ff);
    box-shadow: 0 10px 24px rgba(10, 107, 255, .20);
  }

  .product-grid::after {
    content: "";
    flex: 0 0 2px;
  }

  /* Product specification: compact mobile layout */
  .specification {
    overflow: hidden;
    padding: 52px 0;
  }

  .specification .section-title {
    margin-bottom: 24px;
  }

  .spec-wrapper {
    display: block !important;
    width: 100%;
    margin-top: 20px !important;
  }

  .spec-menu {
    position: static !important;
    top: auto !important;
    display: flex !important;
    width: 100%;
    gap: 8px !important;
    margin: 0 0 14px;
    padding: 2px 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .spec-menu::-webkit-scrollbar {
    display: none;
  }

  .spec-item {
    flex: 0 0 74% !important;
    width: auto !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    gap: 10px !important;
    border-radius: 15px !important;
    scroll-snap-align: start;
  }

  .spec-item > span {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    display: grid !important;
    place-items: center;
    font-size: 14px !important;
  }

  .spec-item h4 {
    margin-bottom: 3px !important;
    font-size: 17px !important;
    line-height: 1.25;
  }

  .spec-item p {
    font-size: 12px !important;
    line-height: 1.3;
  }

  .spec-content {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 16px !important;
    overflow: visible !important;
    border-radius: 18px;
  }

  .progress-bar {
    margin-bottom: 12px;
  }

  /* .spec-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 165px !important;
    min-height: 0 !important;
    margin: 0 0 14px !important;
    padding: 8px !important;
    overflow: hidden;
    text-align: center;
  }

  .spec-image img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 92% !important;
    max-height: 145px !important;
    margin: auto !important;
    object-fit: contain !important;
    object-position: center !important;
  } */

  .spec-info {
    padding: 0 !important; 
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .spec-info h3 {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.3;
  }

  .spec-info table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 7px;
  }

  .spec-info tr {
    display: table-row !important;
    border: 0 !important;
    padding: 0 !important;
  }

  .spec-info td {
    display: table-cell !important;
    width: auto !important;
    padding: 10px 9px !important;
    vertical-align: middle;
    background: #f6f9fd;
    font-size: 13px;
    line-height: 1.4;
  }

  .spec-info td:first-child {
    width: 42% !important;
    padding-bottom: 10px !important;
    border-radius: 10px 0 0 10px;
    color: #66758a;
    font-weight: 600;
  }

  .spec-info td:last-child {
    border-radius: 0 10px 10px 0;
    color: #1d2f48;
    font-weight: 700;
    text-align: right;
  }

  .spec-feature {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 14px;
  }

  .spec-feature > div {
    min-width: 0;
    padding: 10px 8px;
    font-size: 12px;
    line-height: 1.3;
  }

  /* Global mobile section sizing */
  section:not(.hero):not(.products):not(.specification) {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-title {
    margin-bottom: 30px !important;
  }

  .section-title span {
    margin-bottom: 8px !important;
    font-size: 12px !important;
  }

  .section-title h2,
  .about-content h2 {
    font-size: 27px !important;
    line-height: 1.28 !important;
  }

  .section-title p,
  .about-content p {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  .hero {
    padding: 92px 0 48px !important;
  }

  .hero-grid {
    gap: 32px !important;
  }

  .hero h1 {
    margin-bottom: 16px !important;
    font-size: clamp(3px, 8.5vw, 45px) !important;
  }

  .hero h1 span{
    margin-bottom: 16px !important;
    font-size: clamp(20px, 8.5vw, 30px) !important;
  }

  .hero p {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  .hero-btn {
    margin-bottom: 26px !important;
  }

  .hero-image {
    max-width: 92% !important;
  }

  .about-grid {
    gap: 28px !important;
  }

  .about-image {
    max-width: 88% !important;
  }

  .about-content ul {
    margin-bottom: 22px !important;
  }

  .feature-grid,
  .application-grid {
    gap: 14px !important;
  }

  .feature-box {
    padding: 22px 18px !important;
    border-radius: 16px !important;
  }

  .feature-box i {
    width: 54px !important;
    height: 54px !important;
    line-height: 54px !important;
    margin-bottom: 12px !important;
    font-size: 23px !important;
  }

  .feature-box h3 {
    margin-bottom: 7px !important;
    font-size: 19px !important;
  }

  .feature-box p {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .app-card {
    border-radius: 16px !important;
  }

  .app-card img {
    height: 185px !important;
  }

  .app-content {
    padding: 18px !important;
  }

  .app-content h3 {
    margin-bottom: 8px !important;
    font-size: 19px !important;
  }

  .app-content p {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .cta {
    padding: 44px 0 !important;
  }

  .cta-box {
    gap: 22px !important;
    padding: 28px 20px !important;
    border-radius: 18px !important;
  }

  .cta-box h2 {
    margin-bottom: 10px !important;
    font-size: 26px !important;
  }

  .cta-box p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .testimonial-grid {
    gap: 14px !important;
  }

  .testimonial-item {
    padding: 22px 18px !important;
    border-radius: 16px !important;
  }

  .testimonial-item p {
    margin-bottom: 14px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .faq-item {
    margin-bottom: 12px !important;
    border-radius: 14px !important;
  }

  .faq-title {
    min-height: 56px;
    padding: 16px !important;
    font-size: 15px !important;
  }

  .faq-content {
    padding: 0 16px 16px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .contact {
    padding: 48px 0 !important;
  }

  .contact-panel {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  footer {
    padding: 46px 0 20px !important;
  }

  .footer-grid {
    gap: 24px !important;
  }

  .footer-logo {
    width: min(230px, 80%) !important;
  }

  footer p,
  footer li {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }

  footer h3 {
    margin-bottom: 12px !important;
    font-size: 17px !important;
  }
}

@media (max-width: 480px) {
  .products .section-title h2 {
    font-size: 25px;
  }

  .product-card {
    flex-basis: 88%;
  }

  .product-card img {
    height: 185px;
  }

  .product-info {
    padding: 17px;
  }

  .product-info h3 {
    font-size: 20px;
  }

  .spec-item {
    flex-basis: 78% !important;
    min-height: 60px !important;
    padding: 9px 10px !important;
  }

  .spec-item > span {
    flex-basis: 34px !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 13px !important;
  }

  .spec-item h4 {
    font-size: 16px !important;
  }

  .spec-content {
    padding: 13px !important;
  }

  .spec-image {
    height: 145px !important;
  }

  .spec-image img {
    max-height: 125px !important;
  }

  .spec-info h3 {
    font-size: 21px;
  }

  .spec-info td {
    padding: 9px 7px !important;
    font-size: 12.5px;
  }

  .spec-feature > div {
    padding: 9px 7px;
    font-size: 11.5px;
  }

  section:not(.hero):not(.products):not(.specification) {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .section-title {
    margin-bottom: 26px !important;
  }

  .section-title h2,
  .about-content h2 {
    font-size: 25px !important;
  }

  .hero {
    padding-top: 86px !important;
  }

  .hero-grid {
    gap: 26px !important;
  }

  .hero h1 {
    font-size: 30px !important;
  }

  .hero-number {
    gap: 8px !important;
  }

  .hero-number > div {
    padding: 11px 7px !important;
  }

  .hero-number h2 {
    font-size: 22px !important;
  }

  .about-grid {
    gap: 24px !important;
  }

  .about-image {
    max-width: 94% !important;
  }

  .feature-box {
    padding: 20px 16px !important;
  }

  .app-card img {
    height: 170px !important;
  }

  .cta-box {
    padding: 24px 17px !important;
  }

  .cta-box h2 {
    font-size: 24px !important;
  }

  .testimonial-item {
    padding: 20px 16px !important;
  }

  .contact-panel {
    padding: 15px !important;
  }
}
