/* mobile.css */
/* ============================================
   CUPRA GANG — MOBILE-FIRST OPTIMIZATION
   Targets: 320px, 375px, 390px, 430px, 768px, 1024px+
   ============================================ */

/* ============================================
   GLOBAL MOBILE FIXES
   ============================================ */

/* Prevent horizontal overflow on all screen sizes */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Better touch targets (min 44px per Apple HIG / 48px per Material) */
a, button, [role="button"], input, select, textarea {
  -webkit-tap-highlight-color: rgba(184,115,51,0.15);
}

/* Smooth momentum scrolling on iOS */
.member-content,
.member-sidebar,
.nav-mobile {
  -webkit-overflow-scrolling: touch;
}

/* Remove hover transforms on touch devices to prevent stuck states */
@media (hover: none) {
  .card:hover,
  .card-glow:hover,
  .tier-card:hover,
  .kit-item:hover,
  .ride-mini-card:hover,
  .ride-card-main:hover,
  .about-pillar:hover,
  .dash-stat-card:hover {
    transform: none;
  }
}

/* ============================================
   NAV — MOBILE FIXES
   ============================================ */

/* Ensure the nav-inner never overflows on small screens */
.nav-inner {
  flex-wrap: nowrap;
  min-width: 0;
}

/* Logo: never shrink below readable size */
.nav-logo {
  min-width: 0;
  flex-shrink: 0;
}

/* Hide logo text on very small screens to save space */
@media (max-width: 374px) {
  .nav-logo-text { display: none; }
  .nav-logo img { height: 36px; }
}

/* Actions area: compact on mobile */
@media (max-width: 1024px) {
  .nav-actions .btn-ghost { display: none; } /* hide Login btn on mobile — it's in the menu */
  .nav-actions .btn-primary { display: none; } /* apply is in mobile menu too */
  .nav-actions {
    gap: 0.5rem;
  }
  .lang-toggle {
    padding: 0.35rem 0.6rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 480px) {
  .nav-actions { gap: 0.25rem; }
  .lang-toggle { padding: 0.3rem 0.5rem; }
}

/* Hamburger: bigger touch target */
.nav-hamburger {
  padding: 0.6rem;
  margin-right: -0.6rem; /* compensate for padding */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Mobile menu: full-screen overlay with proper scroll */
.nav-mobile {
  overflow-y: auto;
  padding: 5rem 1.5rem 2rem;
  gap: 0.25rem;
  /* Ensure display:flex works with the open state */
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* start at top so long menus are scrollable */
  /* Smooth fade-in animation */
  transition: opacity var(--t-base) var(--ease-smooth);
}
.nav-mobile.open {
  display: flex;
}

/* Bigger tap targets for mobile nav links */
.nav-mobile .nav-link {
  font-size: 1rem;
  padding: 0.9rem 2rem;
  width: 100%;
  max-width: 320px;
  text-align: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius-sm);
}

/* Mobile menu action buttons */
.nav-mobile .btn-primary,
.nav-mobile .btn-ghost {
  width: 100%;
  max-width: 320px;
  justify-content: center;
  min-height: 48px;
  margin-top: 0.25rem;
}

/* Close button: properly sized and positioned */
.nav-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 374px) {
  .nav-mobile .nav-link { font-size: 0.95rem; padding: 0.8rem 1.5rem; }
}

/* ============================================
   HERO — MOBILE TYPOGRAPHY & LAYOUT
   ============================================ */

.hero {
  min-height: 100svh;
  /* Fallback for older browsers */
  min-height: 100vh;
}

/* Hero title: tighter min on very small screens */
.hero-title {
  font-size: clamp(3.5rem, 18vw, 14rem);
  line-height: 0.88;
  word-break: break-word;
}

/* Hero eyebrow: ensure it doesn't overflow */
.hero-eyebrow {
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-eyebrow-text {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}

/* Hero content: mobile padding */
@media (max-width: 768px) {
  .hero-content {
    padding-bottom: var(--space-lg);
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }
  .hero-title {
    font-size: clamp(3.2rem, 20vw, 7rem);
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-top: 1.25rem;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    max-width: 320px;
    min-height: 52px;
    font-size: 0.85rem;
  }
}

@media (max-width: 430px) {
  .hero-title {
    font-size: clamp(3rem, 22vw, 5rem);
  }
  .hero-ctas .btn {
    max-width: 100%;
  }
}

@media (max-width: 374px) {
  .hero-title { font-size: clamp(2.8rem, 22vw, 4.5rem); }
  .hero-eyebrow-text { font-size: 0.62rem; letter-spacing: 0.15em; }
  .hero-subtitle { font-size: 0.9rem; }
}

/* Hero scroll indicator: hide on mobile to avoid clutter */
@media (max-width: 480px) {
  .hero-scroll-indicator { display: none; }
}

/* ============================================
   SECTIONS — PADDING, SPACING, GRID
   ============================================ */

/* Section padding: tighter on mobile */
@media (max-width: 768px) {
  .section-pad { padding: 3.5rem 0; }
}
@media (max-width: 430px) {
  .section-pad { padding: 3rem 0; }
}
@media (max-width: 374px) {
  .section-pad { padding: 2.5rem 0; }
}

/* Container: proper edge padding */
@media (max-width: 374px) {
  .container { padding: 0 1rem; }
}

/* Grid utilities: single column on small screens */
@media (max-width: 480px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* About section */
@media (max-width: 768px) {
  .about-pillars { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .about-pillar { padding: 1rem; }
}
@media (max-width: 430px) {
  .about-pillars { grid-template-columns: 1fr; }
}

/* Membership tiers: better on medium screens */
@media (max-width: 768px) {
  .membership-tiers { max-width: 420px; }
  .tier-card { padding: 1.5rem 1.25rem; }
}
@media (max-width: 374px) {
  .tier-card { padding: 1.25rem 1rem; }
  .tier-name { font-size: 1.6rem; }
  .tier-price-amount { font-size: 2rem; }
}

/* ============================================
   CARDS — MOBILE
   ============================================ */

/* Card body: tighter padding on small screens */
@media (max-width: 480px) {
  .card-body { padding: 1.25rem; }
}

/* Dashboard stat cards: 2-column grid on phone */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}
@media (max-width: 374px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Car specs: 2-col on mobile */
@media (max-width: 480px) {
  .car-specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}

/* ============================================
   DISPLAY TYPOGRAPHY — MOBILE SCALE
   ============================================ */

@media (max-width: 768px) {
  .display-xl { font-size: clamp(3rem, 14vw, 6rem); }
  .display-lg { font-size: clamp(2.4rem, 10vw, 4rem); }
  .display-md { font-size: clamp(1.8rem, 7vw, 3rem); }
  .heading-lg { font-size: clamp(1.3rem, 4vw, 2rem); }
}

@media (max-width: 430px) {
  .display-xl { font-size: clamp(2.5rem, 14vw, 4.5rem); }
  .display-lg { font-size: clamp(2rem, 10vw, 3.5rem); }
}

/* ============================================
   FORMS — MOBILE USABILITY
   ============================================ */

/* Larger touch targets for inputs */
.form-input,
.form-select {
  min-height: 48px;
  font-size: 16px; /* Prevents iOS zoom on focus */
  padding: 0.9rem 1rem;
}

/* Textarea: minimum height for readability */
textarea.form-input {
  min-height: 120px;
}

/* Form groups: consistent spacing on mobile */
@media (max-width: 768px) {
  .form-group { margin-bottom: 1rem; }
  .login-form-wrap { padding: 2rem 1.5rem; }
  .login-form-inner { max-width: 100%; }
}

@media (max-width: 430px) {
  .login-form-wrap { padding: 1.5rem 1.25rem; }
}

/* Form submit buttons: full width on mobile */
@media (max-width: 640px) {
  .form-submit-btn,
  .form-group .btn-primary,
  .form-group .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }
}

/* Apply form: mobile-specific padding */
@media (max-width: 960px) {
  .apply-form-side { padding: 5rem 1.25rem 2rem !important; }
}
@media (max-width: 480px) {
  .apply-form-side { padding: 4.5rem 1rem 2rem !important; }
}

/* Multi-step form: step indicators on mobile */
@media (max-width: 640px) {
  .form-steps {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .form-step-dot {
    width: 10px;
    height: 10px;
  }
}

/* Step navigation buttons: full width & stacked on small screens */
@media (max-width: 480px) {
  .step-nav {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  .step-nav .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }
}

/* ============================================
   MEMBER DASHBOARD — MOBILE (off-canvas drawer)
   ============================================ */

.member-mobile-topbar { display: none; }
.member-sidebar-overlay { display: none; }
.member-sidebar-close { display: none; }

@media (max-width: 1024px) {
  .member-layout {
    display: block;
  }

  /* Slim top bar with logo + hamburger, replaces the old cramped link strip */
  .member-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--charcoal);
    border-bottom: 1px solid var(--charcoal-4);
    position: sticky;
    top: 0;
    z-index: 210;
  }
  .member-mobile-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
  }
  .member-mobile-topbar-brand img { height: 28px; width: auto; object-fit: contain; flex-shrink: 0; }
  .member-mobile-topbar-brand span {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--white);
    white-space: nowrap;
  }

  .member-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--charcoal-4);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
  }
  .member-hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--white);
    transition: all var(--t-base) var(--ease-smooth);
    transform-origin: center;
  }
  .member-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .member-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .member-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Dark overlay behind the drawer */
  .member-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 11, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 220;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base) var(--ease-smooth), visibility var(--t-base);
  }
  .member-sidebar-overlay.open {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  /* Sidebar becomes a real off-canvas drawer: full vertical list, easy to tap */
  .member-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100svh;
    width: min(80vw, 300px);
    max-width: 300px;
    z-index: 230;
    transform: translateX(-100%);
    transition: transform var(--t-base) var(--ease-smooth);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.55);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 1.4rem 1rem 1.25rem;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .member-sidebar::-webkit-scrollbar { display: none; }
  .member-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-logo { display: flex; }
  .sidebar-section-label { display: block; }

  .sidebar-link {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
    white-space: normal;
    flex-shrink: 0;
    min-height: 46px;
  }

  /* Close (×) button inside the drawer */
  .member-sidebar-close {
    display: flex;
    position: absolute;
    top: 1.1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--charcoal-4);
    background: var(--charcoal-3);
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .member-sidebar-close span {
    position: absolute;
    width: 14px;
    height: 1.5px;
    background: var(--white);
  }
  .member-sidebar-close span:first-child { transform: rotate(45deg); }
  .member-sidebar-close span:last-child { transform: rotate(-45deg); }

  .member-content {
    padding: 1.25rem 1rem;
    height: auto;
    overflow-y: visible;
    flex: 1;
  }

  body.member-drawer-open { overflow: hidden; }
}

/* Welcome banner: stack on mobile */
@media (max-width: 768px) {
  .welcome-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }
}

/* Membership card: responsive sizing */
@media (max-width: 768px) {
  .card-stage {
    padding: 1rem;
    gap: 1.25rem;
  }
}

/* ============================================
   MEMBERSHIP CARD PAGE — RESPONSIVE CARD
   ============================================ */

/* The plastic membership card: scale down on mobile */
[style*="aspect-ratio:1.7"] {
  max-width: min(380px, 100%);
  margin: 0 auto;
}

@media (max-width: 430px) {
  /* Scale card font sizes down proportionally */
  [style*="aspect-ratio:1.7"] [style*="font-size:1.8rem"] {
    font-size: 1.3rem !important;
  }
  [style*="aspect-ratio:1.7"] [style*="font-size:0.62rem"],
  [style*="aspect-ratio:1.7"] [style*="font-size:0.65rem"] {
    font-size: 0.55rem !important;
    letter-spacing: 0.1em !important;
  }
}

/* ============================================
   FOOTER — MOBILE
   ============================================ */

@media (max-width: 640px) {
  .footer { padding: 2.5rem 0 1.5rem; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 374px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Footer links: bigger tap targets */
.footer-links a {
  padding: 0.35rem 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */

@media (max-width: 768px) {
  .page-hero {
    padding: 110px 0 2.5rem;
  }
}

@media (max-width: 430px) {
  .page-hero { padding: 100px 0 2rem; }
  .page-hero .display-md { font-size: clamp(1.6rem, 8vw, 2.5rem); }
}

/* ============================================
   PARTNER MARQUEE — MOBILE
   ============================================ */

@media (max-width: 768px) {
  .partner-logo-card {
    width: 130px;
    height: 65px;
    font-size: 0.68rem;
  }
  .partners-track { gap: 1rem; }
}

/* ============================================
   RIDES PAGE — MOBILE GRID
   ============================================ */

@media (max-width: 768px) {
  .ride-card-main { min-height: 280px; }
  .ride-card-content { padding: 1.25rem; }
}

/* ============================================
   BUTTONS — MOBILE TOUCH
   ============================================ */

.btn {
  min-height: 44px;
  touch-action: manipulation; /* Faster tap response */
}

/* Primary: ensure minimum tap target */
.btn-primary { min-height: 48px; }

/* Ghost: enough padding for tap */
.btn-ghost { min-height: 44px; }

@media (max-width: 480px) {
  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.8rem;
  }
  .btn-primary {
    padding: 0.95rem 1.75rem;
  }
}

/* ============================================
   LOGIN PAGE — MOBILE
   ============================================ */

@media (max-width: 768px) {
  .login-page {
    grid-template-columns: 1fr;
    min-height: 100svh;
    min-height: 100vh;
  }
  .login-visual { display: none; }
  .login-form-wrap {
    padding: 6rem 1.5rem 2rem;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .login-form-inner { max-width: 100%; }
}

@media (max-width: 374px) {
  .login-form-wrap { padding: 5rem 1rem 2rem; }
}

/* ============================================
   APPLY FORM — MOBILE NAV
   ============================================ */

@media (max-width: 640px) {
  .apply-nav {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .apply-nav > a > span { display: none; } /* hide text on very small apply nav */
}

@media (max-width: 374px) {
  .apply-nav > a > span { display: block; font-size: 0.9rem; }
}

/* ============================================
   ABOUT / CONTENT PAGES
   ============================================ */

@media (max-width: 768px) {
  .about-layout { gap: var(--space-md); }
  .about-visual { aspect-ratio: 16/9; }
  .about-content { max-width: 100%; }
}

/* ============================================
   OVERFLOW CONTAINMENT
   ============================================ */

/* Ensure no section bleeds past viewport */
section, .hero, .about-section, .membership-section,
.rides-section, .partners-section, .kit-section, .final-cta {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Hero background elements: clip on mobile */
.hero-bg {
  overflow: hidden;
  max-width: 100vw;
}

/* Membership section watermark text: don't overflow on mobile */
@media (max-width: 768px) {
  .membership-section::before {
    font-size: 60vw;
  }
}

/* ============================================
   ADMIN PAGE — MOBILE
   ============================================ */

@media (max-width: 768px) {
  /* Admin tables: horizontal scroll container */
  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Admin grid: stack */
  .admin-stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .admin-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   UTILITY: SAFE AREA INSETS (iPhone notch/home)
   ============================================ */

@supports (padding: max(0px)) {
  .nav {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  .nav-mobile {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ============================================
   SMOOTH TRANSITIONS: REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-title,
  .hero-subtitle,
  .hero-eyebrow,
  .hero-ctas,
  .hero-stats {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-scanline { animation: none; }
  .partners-track { animation: none; }
  .scroll-line { animation: none; }
}

/* ============================================
   MEMBERSHIP CARD — FIX ASPECT-RATIO SELECTOR
   (card uses 1.586 not 1.7)
   ============================================ */
@media (max-width: 480px) {
  .membership-card {
    max-width: 100% !important;
    border-radius: 12px !important;
  }
  .card-content {
    padding: 16px 18px !important;
  }
  .card-logo-word { font-size: 1.3rem !important; }
  .card-name { font-size: 0.95rem !important; }
  .card-middle { gap: 0.8rem !important; }
  .card-avatar { width: 40px !important; height: 40px !important; }
}

/* ============================================
   ADMIN PANEL — MOBILE TOPBAR FIX
   ============================================ */
@media (max-width: 768px) {
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
  }
  .admin-topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .admin-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table-wrap table {
    min-width: 600px;
  }
  /* Modals full-width on mobile */
  .admin-modal {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: 1rem auto !important;
    max-height: 90vh;
    overflow-y: auto;
  }
}
@media (max-width: 430px) {
  .admin-stats-row {
    grid-template-columns: 1fr 1fr !important;
  }
  .admin-stat {
    padding: 1rem !important;
  }
  .admin-stat-value {
    font-size: 1.6rem !important;
  }
}

/* ============================================
   MEMBER DASHBOARD SIDEBAR — SIGN OUT VISIBLE
   ============================================ */
@media (max-width: 1024px) {
  .sidebar-link[data-sign-out] {
    display: flex !important;
  }
}

}

/* ============================================
   SHOP — CART / CHECKOUT — MOBILE
   ============================================ */

/* Cart summary / checkout summary: don't stick on mobile — once the
   checkout-grid collapses to a single column (<900px) a sticky sidebar
   card ends up floating awkwardly mid-scroll instead of sitting naturally
   after the form/cart table. */
@media (max-width: 900px) {
  .cart-summary { position: static; }
}

/* Cart rows: keep the desktop flex-row layout down to ~480px, then
   switch to a stacked layout so the thumbnail, name, qty stepper and
   line total all stay comfortably legible and tappable on phones. */
@media (max-width: 640px) {
  .cart-row { padding: 1.25rem 0; gap: 1rem; }
  .cart-row-media { width: 76px; height: 76px; }
  .cart-row-name { font-size: 0.92rem; }
}
@media (max-width: 480px) {
  .cart-row { flex-wrap: wrap; row-gap: 0.9rem; }
  .cart-row-media { width: 68px; height: 68px; }
  .cart-row-info { flex-basis: calc(100% - 68px - 1rem); }
  .cart-row-actions {
    flex-basis: 100%; justify-content: space-between;
    padding-left: calc(68px + 1rem);
  }
  .cart-row-total { min-width: 0; }
}
@media (max-width: 360px) {
  .cart-row-actions { padding-left: 0; }
}

/* Checkout: tighter section padding + spacing on small screens */
@media (max-width: 640px) {
  .checkout-section { padding: 1.25rem; margin-bottom: 1rem; }
  .checkout-section-title { font-size: 0.7rem; margin-bottom: 1.1rem; }
  .cart-summary { padding: 1.4rem; gap: 0.75rem; }
}

/* Payment method cards: keep icon/text readable at narrow widths */
@media (max-width: 374px) {
  .payment-method-card { padding: 0.9rem; gap: 0.6rem; }
  .payment-method-icon { width: 34px; height: 34px; font-size: 1rem; }
  .payment-method-name { font-size: 0.82rem; }
}

/* InstaPay panel + upload field: comfortable spacing on phones */
@media (max-width: 480px) {
  .instapay-card { padding: 1.1rem; }
  .instapay-row { flex-direction: row; font-size: 0.82rem; }
  .upload-field { padding: 1.1rem; }
}

/* Quantity selector: keep 44px+ touch targets */
@media (max-width: 480px) {
  .qty-selector { transform-origin: left center; }
  .qty-btn { width: 40px; height: 42px; }
  .qty-input { width: 40px; height: 42px; }
}

/* Product detail page actions: full-width stacked buttons on very small
   screens instead of 3 buttons wrapping unevenly */
@media (max-width: 480px) {
  .product-actions { flex-direction: column; align-items: stretch; }
  .product-actions .btn { width: 100%; text-align: center; justify-content: center; }
