/* ============================================================
   AstroKamya™ — MOBILE & TABLET UX OVERHAUL
   mobile-ux-overhaul.css v1.0.0 — 2026-04-14
   ============================================================
   SCOPE: All changes are mobile/tablet ONLY (max-width: 1024px)
   
   FIXES:
   1. Brand logo visible on mobile navbar
   2. Modern hamburger icon (no square box)
   3. Complete side drawer redesign (Dribbble-grade)
   4. SoulSync hero section — mobile-first responsive
   5. Shop page cart z-index fix
   ============================================================ */

/* ══════════════════════════════════════════════════
   1. MOBILE NAVBAR — BRAND LOGO + HAMBURGER REDESIGN
   ══════════════════════════════════════════════════ */

/* ── Show brand name on mobile (navbar.css hides .ak-nav-logo-text at ≤480px) ── */
@media (max-width: 480px) {
  .ak-nav-logo-text {
    display: inline !important;
    font-size: 15px !important;
    letter-spacing: -0.02em;
  }
  /* Make the logo SVG slightly smaller to fit with text */
  .ak-nav-logo-svg {
    width: 24px !important;
    height: 24px !important;
  }
  /* Shrink CTA to make room for brand name */
  .ak-nav-inner {
    padding: 0 6px 0 12px !important;
  }
}

@media (max-width: 380px) {
  .ak-nav-logo-text {
    display: inline !important;
    font-size: 13px !important;
  }
  .ak-nav-logo-svg {
    width: 20px !important;
    height: 20px !important;
  }
  .ak-nav-logo {
    gap: 6px !important;
  }
}

/* ── Modern Hamburger — Pill-style, no square box borders ── */
@media (max-width: 900px) {
  .ak-hamburger {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    background: rgba(124, 58, 237, 0.06) !important;
    border: 1px solid rgba(124, 58, 237, 0.10) !important;
    gap: 5px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
  }
  .ak-hamburger::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), rgba(250, 204, 21, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  .ak-hamburger:hover::before,
  .ak-hamburger:active::before {
    opacity: 1;
  }
  .ak-hamburger:hover,
  .ak-hamburger:active {
    background: rgba(124, 58, 237, 0.10) !important;
    border-color: rgba(124, 58, 237, 0.18) !important;
    transform: scale(1.04);
  }
  /* Bars — thinner, rounded, with stagger effect */
  .ak-hamburger span {
    background: rgba(196, 181, 253, 0.85) !important;
    border-radius: 4px !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.3s ease !important;
  }
  .ak-hamburger span:nth-child(1) {
    width: 18px !important;
    height: 2px !important;
  }
  .ak-hamburger span:nth-child(2) {
    width: 14px !important;
    height: 2px !important;
    margin-left: 2px;
  }
  .ak-hamburger span:nth-child(3) {
    width: 10px !important;
    height: 2px !important;
    margin-left: 4px;
  }
  /* Open state — clean X morphing */
  .ak-hamburger.open {
    background: rgba(248, 113, 113, 0.08) !important;
    border-color: rgba(248, 113, 113, 0.15) !important;
  }
  .ak-hamburger.open span {
    background: #F87171 !important;
  }
  .ak-hamburger.open span:nth-child(1) {
    width: 18px !important;
    transform: translateY(7px) rotate(45deg) !important;
  }
  .ak-hamburger.open span:nth-child(2) {
    opacity: 0 !important;
    transform: translateX(8px) !important;
  }
  .ak-hamburger.open span:nth-child(3) {
    width: 18px !important;
    margin-left: 0 !important;
    transform: translateY(-7px) rotate(-45deg) !important;
  }
}


/* ══════════════════════════════════════════════════
   2. SIDE DRAWER — COMPLETE REDESIGN (Dribbble-Grade)
   ══════════════════════════════════════════════════ */

/* ── Backdrop: deeper overlay for mobile clarity ── */
.ak-nav-backdrop {
  background: rgba(6, 3, 18, 0.72) !important;
  /* No backdrop-filter to prevent iOS blur flash */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── Drawer Shell — Premium glass surface ── */
.ak-nav-drawer {
  width: min(340px, 90vw) !important;
  background: 
    radial-gradient(ellipse 80% 40% at 20% 8%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(250, 204, 21, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, rgba(12, 8, 28, 0.99) 0%, rgba(8, 5, 20, 0.99) 100%) !important;
  border-left: 1px solid rgba(124, 58, 237, 0.12) !important;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5), -2px 0 20px rgba(124, 58, 237, 0.04) !important;
  /* Fix blur flash: use right-based transform instead of opacity transition */
  transition: right 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: right;
  contain: layout style;
  /* NO backdrop-filter here to avoid flash */
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* ── Drawer Header — Premium brand bar ── */
.ak-drawer-header {
  padding: 20px 24px !important;
  border-bottom: 1px solid rgba(124, 58, 237, 0.08) !important;
  background: rgba(124, 58, 237, 0.03) !important;
  position: relative;
}
.ak-drawer-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.15), rgba(250, 204, 21, 0.08), transparent);
}

/* ── Close button — modern floating pill ── */
.ak-drawer-close {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: rgba(248, 113, 113, 0.06) !important;
  border: 1px solid rgba(248, 113, 113, 0.12) !important;
  color: rgba(248, 113, 113, 0.7) !important;
  font-size: 15px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.ak-drawer-close:hover,
.ak-drawer-close:active {
  background: rgba(248, 113, 113, 0.12) !important;
  border-color: rgba(248, 113, 113, 0.25) !important;
  color: #F87171 !important;
  transform: rotate(90deg) scale(1.05) !important;
}

/* ── Drawer Links Container ── */
.ak-drawer-links {
  padding: 16px 16px 20px !important;
  gap: 4px !important;
  overflow-y: auto;
}

/* ── Section Labels — Luxe caps ── */
.ak-drawer-section-label {
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: rgba(124, 58, 237, 0.5) !important;
  padding: 16px 14px 6px !important;
  position: relative;
}

/* ── Navigation Links — Card-style with hover effects ── */
.ak-drawer-link {
  padding: 14px 16px !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: rgba(240, 234, 255, 0.65) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  border: 1px solid transparent;
  gap: 14px !important;
}
.ak-drawer-link svg,
.ak-drawer-link .icon {
  opacity: 0.45 !important;
  transition: all 0.25s ease !important;
  flex-shrink: 0;
}
.ak-drawer-link:hover,
.ak-drawer-link:active {
  background: rgba(124, 58, 237, 0.08) !important;
  color: #F0EAFF !important;
  border-color: rgba(124, 58, 237, 0.08) !important;
  transform: translateX(4px);
}
.ak-drawer-link:hover svg,
.ak-drawer-link:active svg,
.ak-drawer-link:hover .icon,
.ak-drawer-link:active .icon {
  opacity: 0.9 !important;
}

/* Active link — gold accent with subtle glow */
.ak-drawer-link.active {
  background: rgba(250, 204, 21, 0.06) !important;
  color: #FACC15 !important;
  border-color: rgba(250, 204, 21, 0.10) !important;
  font-weight: 600 !important;
}
.ak-drawer-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #FACC15, rgba(250, 204, 21, 0.3));
}
.ak-drawer-link.active svg,
.ak-drawer-link.active .icon {
  opacity: 1 !important;
}

/* ── Drawer Divider — Subtle gradient line ── */
.ak-drawer-divider {
  height: 1px !important;
  margin: 10px 14px !important;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.10), transparent) !important;
}

/* ── Sign In Button — Dramatic gradient ── */
.ak-drawer-signin-btn {
  margin: 8px 0 !important;
  padding: 15px 16px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #E5A600 0%, #FFB800 50%, #FFCB45 100%) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 20px rgba(255, 184, 0, 0.20),
              0 1px 0 rgba(255, 255, 255, 0.15) inset !important;
  position: relative;
  overflow: hidden;
}
.ak-drawer-signin-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  animation: drawerBtnSweep 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes drawerBtnSweep {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

/* ── Drawer Footer — Elevated CTA area ── */
.ak-drawer-footer {
  padding: 20px 16px env(safe-area-inset-bottom, 16px) !important;
  border-top: 1px solid rgba(124, 58, 237, 0.08) !important;
  background: rgba(124, 58, 237, 0.02);
  position: relative;
}
.ak-drawer-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.12), transparent);
}

.ak-drawer-cta {
  border-radius: 14px !important;
  padding: 15px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  background: linear-gradient(110deg, #E5A600, #FFB800 50%, #E5A600) !important;
  background-size: 200% 100% !important;
  box-shadow: 0 4px 24px rgba(255, 184, 0, 0.25),
              0 1px 0 rgba(255, 255, 255, 0.12) inset !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.ak-drawer-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  animation: drawerBtnSweep 4s ease-in-out infinite;
  pointer-events: none;
}
.ak-drawer-cta:active {
  transform: scale(0.97) !important;
  box-shadow: 0 2px 12px rgba(255, 184, 0, 0.20) !important;
}

.ak-drawer-cta-sub {
  font-size: 11px !important;
  color: rgba(124, 58, 237, 0.4) !important;
  margin-top: 10px !important;
  letter-spacing: 0.01em;
}

/* ── Drawer Guest section padding ── */
.ak-drawer-guest {
  padding: 8px 4px !important;
}

/* ── User Account section in drawer ── */
.ak-drawer-user {
  padding-top: 4px;
}


/* ══════════════════════════════════════════════════
   3. SOULSYNC HERO — MOBILE & TABLET RESPONSIVE
   ══════════════════════════════════════════════════ */

/* ── Tablet (max-width: 1024px) ── */
@media (max-width: 1024px) {
  #ss-hero {
    min-height: auto !important;
    padding-top: 80px !important;
    padding-bottom: 40px !important;
  }
  .ss-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    text-align: center;
  }
  .ss-hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .ss-hero-badge {
    margin-bottom: 24px !important;
  }
  #ss-hero h1 {
    font-size: clamp(32px, 5.5vw, 48px) !important;
    text-align: center;
  }
  .ss-hero-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 520px !important;
  }
  .ss-hero-cta-group {
    align-items: center;
    width: 100%;
    max-width: 380px;
  }
  .ss-btn-hero {
    width: 100% !important;
    justify-content: center !important;
  }
  .ss-hero-meta {
    justify-content: center;
  }
  .ss-live-counter {
    justify-content: center;
    width: 100%;
    max-width: 420px;
  }
  /* Card stack — centered & scaled */
  .ss-hero-right {
    max-width: 400px !important;
    margin: 0 auto !important;
  }
  .ss-match-scene {
    max-width: 400px !important;
    margin: 0 auto;
  }
}

/* ── Mobile (max-width: 768px) — COSMIC MATCH REVEAL ── */
@media (max-width: 768px) {

  /* ── HERO GENERAL ── */
  #ss-hero {
    padding-top: 70px !important;
    padding-bottom: 32px !important;
  }
  .ss-hero-grid {
    gap: 32px !important;
  }
  #ss-hero h1 {
    font-size: clamp(28px, 7vw, 38px) !important;
    line-height: 1.12 !important;
    margin-bottom: 18px !important;
  }
  .ss-hero-sub {
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin-bottom: 28px !important;
    max-width: 360px !important;
  }
  .ss-hero-badge {
    font-size: 11px !important;
    padding: 5px 12px 5px 10px !important;
    margin-bottom: 20px !important;
  }
  
  /* Card Stack — Scale down elegantly for mobile */
  .ss-hero-right {
    max-width: 100% !important;
    width: 100% !important;
    display: flex;
    justify-content: center;
  }
  .ss-match-scene {
    width: 100% !important;
    max-width: 380px !important;
    min-height: 480px !important;
    position: relative;
    margin: 0 auto;
  }
  .ss-profile-card {
    width: 210px !important;
    padding: 16px !important;
  }
  .ss-card-him {
    top: 5% !important;
    left: 2% !important;
    transform: rotate(-4deg) scale(0.9) !important;
    opacity: 0.9 !important;
    z-index: 2 !important;
    border-radius: 16px !important;
  }
  .ss-card-her {
    bottom: 8% !important;
    right: 2% !important;
    transform: rotate(3deg) scale(1.05) !important;
    z-index: 5 !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
  }
  .ss-card-photo-wrap {
    width: 80px !important;
    height: 80px !important;
  }
  .ss-card-name {
    font-size: 15px !important;
  }
  .ss-card-role {
    font-size: 11px !important;
  }
  .ss-card-traits {
    display: flex !important; /* Keep them visible, but compact */
    margin-top: 10px !important;
  }
  .ss-trait-row span {
    font-size: 9px !important;
  }
  .ss-card-chips {
    gap: 4px !important;
  }
  .ss-zodiac-chip {
    font-size: 9px !important;
    padding: 2px 6px !important;
  }
  .ss-synergy-badge {
    transform: translate(-50%, -50%) scale(1) !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 10 !important;
  }
  .ss-synergy-score {
    font-size: 24px !important;
  }
  .ss-orbit-ring {
    display: none !important;
  }
  
  /* Live Counter — Premium grid */
  .ss-live-counter {
    background: rgba(14, 10, 35, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    flex-wrap: wrap !important;
    padding: 16px !important;
    gap: 12px 8px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    margin-top: 10px !important;
  }
  .ss-lc-item {
    min-width: calc(50% - 6px) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    text-align: center !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
  }
  .ss-lc-icon svg {
    opacity: 0.8 !important;
    transform: scale(0.9) !important;
  }
  .ss-lc-sep {
    display: none !important;
  }
  .ss-lc-num {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 4px 0 !important;
  }
  .ss-lc-label {
    font-size: 10px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }
  
  /* Hero CTA Meta Improvements */
  .ss-hero-meta {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 30px !important;
    padding: 8px 16px !important;
    margin-top: 16px !important;
  }
  .ss-hero-meta span {
    font-size: 11px !important;
    color: rgba(255,255,255,0.7) !important;
    font-weight: 500 !important;
  }
  
  /* Match threads SVG — cleaner layout */
  .ss-match-threads {
    opacity: 0.6 !important;
  }
  
  /* Steps grid / How it works — single column */
  .ss-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .ss-step-connector {
    display: none !important;
  }
  
  /* Demo section — condensed */
  .ss-demo-hero-row {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .ss-demo-beam-wrap {
    transform: rotate(90deg);
    width: 60px !important;
    height: 24px;
  }
  .ss-demo-bottom {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .ss-demo-container {
    padding: 20px 16px !important;
  }
  
  /* Pricing grid — single column */
  .ss-pricing-grid {
    grid-template-columns: 1fr !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }
  
  /* Stories grid */
  .ss-stories-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Counter bar */
  .ss-counter-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Final CTA */
  .ss-final-content {
    padding: 40px 24px !important;
  }
  .ss-final-content h2 {
    font-size: clamp(24px, 6vw, 36px) !important;
  }
}

/* ── Small Mobile (max-width: 480px) ── */
@media (max-width: 480px) {
  #ss-hero {
    padding-top: 60px !important;
  }
  #ss-hero h1 {
    font-size: clamp(24px, 8vw, 32px) !important;
  }
  .ss-hero-sub {
    font-size: 13px !important;
    max-width: 300px !important;
  }
  .ss-hero-right {
    max-width: 100% !important;
  }
  .ss-match-scene {
    max-width: 100% !important;
    min-height: 480px !important;
    padding-bottom: 20px;
  }
  .ss-profile-card {
    width: 190px !important;
  }
  .ss-card-him {
    top: 0% !important;
    left: 0% !important;
    transform: rotate(-3deg) scale(0.9) !important;
  }
  .ss-card-her {
    bottom: 5% !important;
    right: 0% !important;
    transform: rotate(2deg) scale(1.05) !important;
  }
  .ss-card-photo-wrap {
    width: 70px !important;
    height: 70px !important;
  }
  .ss-synergy-badge {
    transform: translate(-50%, -50%) scale(0.9) !important;
  }
  .ss-card-glass {
    padding: 12px !important;
  }
  .ss-card-chips {
    flex-wrap: wrap;
  }
  .ss-card-tier {
    font-size: 8px !important;
  }
  .ss-synergy-badge {
    transform: scale(0.75) !important;
  }
  
  /* Bento grid */
  .ss-bento-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  /* CTA button — full width */
  .ss-btn-hero {
    padding: 14px 24px !important;
    font-size: 14px !important;
  }
  
  /* Scroll hint */
  .ss-scroll-hint {
    display: none !important;
  }
}


/* ══════════════════════════════════════════════════
   4. SHOP PAGE CART — Z-INDEX FIX FOR MOBILE
   ══════════════════════════════════════════════════ */

/* Cart FAB must be above navbar (z-index 1000) */
.ak-cart-fab {
  z-index: 1050 !important;
}

/* Cart overlay and drawer must be above everything */
.ak-cart-overlay {
  z-index: 1300 !important;
}
.ak-cart-drawer {
  z-index: 1301 !important;
}

/* Mobile-specific cart tweaks */
@media (max-width: 768px) {
  /* Cart FAB — positioned to avoid navbar overlap */
  .ak-cart-fab {
    top: auto !important;
    bottom: 24px !important;
    right: 20px !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
    background: rgba(12, 10, 9, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(201, 162, 39, 0.25) !important;
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(201, 162, 39, 0.05) inset !important;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  }
  .ak-cart-fab:active {
    transform: scale(0.92) !important;
  }
  .ak-cart-fab svg {
    width: 22px !important;
    height: 22px !important;
  }
  .ak-cart-fab .ak-cart-count {
    top: -5px !important;
    right: -5px !important;
    min-width: 22px !important;
    height: 22px !important;
    font-size: 11px !important;
    border: 2px solid rgba(12, 10, 9, 0.9);
    box-shadow: 0 2px 10px rgba(201, 162, 39, 0.5) !important;
  }
  
  /* Cart drawer — elegant bottom sheet on mobile */
  .ak-cart-drawer {
    width: 100vw !important;
    height: 94vh !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(100%) !important;
    border-radius: 24px 24px 0 0 !important;
    border-left: none !important;
    border-top: 1px solid rgba(201, 162, 39, 0.18) !important;
  }
  .ak-cart-drawer.open {
    transform: translateY(0) !important;
  }
  
  /* Cart drawer handle — subtle pull indicator */
  .ak-cart-head::before {
    content: '' !important;
    position: absolute !important;
    top: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 40px !important;
    height: 4px !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    pointer-events: none;
  }
  .ak-cart-head {
    padding-top: 24px !important;
  }
  
  /* Cart items — better touch targets */
  .ak-cart-item {
    padding: 16px 14px !important;
    border-radius: 16px !important;
    margin-bottom: 8px !important;
  }
  .ak-cart-item-img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 14px !important;
  }
  .ak-cart-item-name {
    font-size: 14px !important;
  }
  
  /* Cart checkout button — larger touch target */
  .ak-cart-checkout {
    padding: 16px 24px !important;
    border-radius: 16px !important;
    font-size: 13px !important;
    margin-bottom: env(safe-area-inset-bottom, 8px);
  }
  
  /* Cart footer — safe area padding for iOS */
  .ak-cart-footer {
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Tablet cart tweaks */
@media (min-width: 769px) and (max-width: 1024px) {
  .ak-cart-fab {
    z-index: 1050 !important;
  }
  .ak-cart-drawer {
    width: min(420px, 85vw) !important;
  }
}


/* ══════════════════════════════════════════════════
   5. GLOBAL MOBILE POLISH — Touch & Performance
   ══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Safe area insets for modern phones */
  #ak-nav-root {
    padding-top: env(safe-area-inset-top, 0px);
  }
  
  /* Better tap targets globally */
  .ak-drawer-link,
  .ak-pd-item,
  .ak-drawer-signin-btn,
  .ak-drawer-cta {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  /* Drawer body scroll lock enhancement */
  .ak-nav-drawer {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Profile button — slightly larger for touch */
  .ak-nav-profile-btn {
    width: 38px !important;
    height: 38px !important;
  }
  
  /* Announcement bar — compact mobile layout */
  #ak-announce-bar {
    padding: 8px 12px !important;
    gap: 6px !important;
  }
  #ak-announce-bar .ab-timer {
    font-size: 12px !important;
  }
}

/* ── Tablet-specific refinements ── */
@media (min-width: 601px) and (max-width: 900px) {
  /* Brand name always visible on tablet */
  .ak-nav-logo-text {
    display: inline !important;
    font-size: 16px !important;
  }
}

/* ══════════════════════════════════════════════════
   6. REDUCED MOTION — Accessibility
   ══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .ak-hamburger span,
  .ak-drawer-cta::before,
  .ak-drawer-signin-btn::before,
  .ak-nav-drawer,
  .ak-nav-backdrop,
  .ak-drawer-link {
    transition-duration: 0.1s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
