/**
 * GyftVoucher Master Mobile Responsiveness & Fast Loading Stylesheet
 */

/* Prevent Horizontal Overflow on Mobile Devices */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Fluid Responsive Containers */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* Mobile Header Navigation Responsiveness */
@media (max-width: 880px) {
  .nav-in {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    gap: 0.85rem;
  }
  .brand-lk {
    flex: 1;
  }
  .nav-ul {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
  }
  .nav-acts {
    order: 2;
    gap: 0.65rem;
  }
  .btn-buy-gc {
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
  }
  .brand-logo-title {
    font-size: 1.25rem;
  }
}

/* Mobile Deals Grid & Hero Responsiveness */
@media (max-width: 640px) {
  .deals-hero h1 {
    font-size: 1.95rem !important;
  }
  .deals-grid {
    grid-template-columns: 1fr !important;
  }
  .spot-grid {
    grid-template-columns: 1fr !important;
  }
  .calc-card {
    padding: 1.5rem !important;
  }
  .res-box {
    flex-direction: column !important;
    text-align: center !important;
  }
  .res-box > div {
    text-align: center !important;
  }
}

/* Mobile Footer Grid Responsiveness */
@media (max-width: 1024px) {
  .ft-grid {
    grid-template-columns: 2fr repeat(2, 1fr) !important;
    gap: 2rem !important;
  }
}
@media (max-width: 640px) {
  .ft-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
  .ft-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* Form Touch Optimization (Min 44px Tap Target) */
button, input, select, textarea, .btn-buy-gc, .btn-g, .btn-submit {
  min-height: 44px;
}

/* Fast Image Loading Defaults */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
