/**
 * GSKILLS STORE - RESPONSIVE STYLES
 * Mobile & Tablet Optimization (Desktop / Tablet 1024px & 849px / Mobile 549px)
 */

/* Tablets & Small Desktops (max-width: 1024px) */
@media screen and (max-width: 1024px) {
  .header-main .header-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

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

  .gskills-feature-card {
    padding: 20px;
  }
}

/* Tablets (max-width: 849px) */
@media screen and (max-width: 849px) {
  .gskills-hero-section h1 {
    font-size: 30px !important;
  }

  .gskills-hero-glass-box {
    padding: 20px;
    margin-top: 20px;
  }

  .gskills-single-product-actions {
    gap: 10px;
  }

  .gskills-btn-buy-now,
  .gskills-btn-zalo {
    min-height: 44px !important;
    font-size: 14px !important;
  }

  .gskills-card-title {
    font-size: 16px;
  }

  .gskills-prefooter-cta .prefooter-buttons {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .gskills-footer-col {
    margin-bottom: 24px;
  }

  /* WooCommerce Cart & Checkout Tablet/Mobile */
  .woocommerce-cart .cart-collaterals,
  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 {
    width: 100%;
    float: none;
  }
}

/* Tablet-only 2x2 Footer Grid (550px - 849px) */
@media screen and (min-width: 550px) and (max-width: 849px) {
  .gskills-footer-grid .gskills-footer-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Mobile Devices (max-width: 549px) */
@media screen and (max-width: 549px) {

  /* Hero & Sections */
  .gskills-hero-section {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }

  .gskills-hero-section h1 {
    font-size: 26px !important;
  }

  .gskills-trust-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gskills-trust-card {
    padding: 12px;
  }

  .gskills-prefooter-cta .prefooter-title {
    font-size: 18px;
  }

  /* Tap Targets >= 44px & Prevent iOS Safari Auto-Zoom on Input Focus */
  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row select,
  .woocommerce form .form-row textarea,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"] {
    font-size: 16px !important;
    min-height: 44px;
  }

  .button,
  button,
  .gskills-cta-btn,
  .woocommerce #respond input#submit,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button {
    min-height: 44px;
  }

  /* Full-width Checkout CTA on Mobile */
  .woocommerce-checkout #place_order {
    width: 100%;
    font-size: 16px !important;
    padding: 12px 16px !important;
  }

  /* Compact Floating Bar on Small Screens */
  .gskills-floating-contact {
    right: 12px;
    bottom: 14px;
    gap: 8px;
  }

  .gskills-floating-contact .float-btn {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 40px;
  }

  .gskills-floating-contact .btn-label {
    display: inline-block;
  }

  /* Product Loop Mobile Optimization */
  .gskills-loop-badge-wrap {
    top: 6px;
    left: 6px;
  }

  .gskills-badge {
    padding: 3px 7px;
    font-size: 10px;
  }

  /* Prevent horizontal overflow on mobile */
  .gskills-footer-grid {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}