/* ============================================================
   MOBILE.CSS — EMMZED — PROFESSIONAL EPIC MOBILE UX
   v=61 — SINGLE BURGER MENU ONLY — 100% PROFESSIONAL
   ============================================================ */

/* === GLOBAL MOBILE FOUNDATION === */
@media (max-width: 768px) {
  body {
    font-size: 15.5px;
    padding-bottom: 72px !important; /* room for bottom nav */
    -webkit-tap-highlight-color: transparent;
  }

  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
  }

  /* ===================== HEADER ===================== */
  header {
    padding: 11px 14px;
    z-index: 10002;
  }

  .logo {
    font-size: 19px;
    letter-spacing: 1.5px;
  }

  /* ===================== HAMBURGER BUTTON ===================== */
  .menu-toggle {
    display: block !important;
    font-size: 28px;
    padding: 8px 13px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    border: none;
    line-height: 1;
    min-width: 46px;
    min-height: 46px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10003;
  }

  .menu-toggle:active {
    background: rgba(215, 255, 34, 0.35);
    transform: scale(0.94);
  }

  /* ===================== SINGLE BURGER DRAWER — RIGHT SIDE ONLY ===================== */
  nav#mainNav {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 78% !important;
    max-width: 295px !important;
    height: 100vh !important;
    background: #0f0f0f !important;
    flex-direction: column !important;
    padding: 0 !important;
    z-index: 10004 !important;
    box-shadow: -16px 0 55px rgba(0,0,0,0.85) !important;
    overflow-y: auto !important;
    transition: right 0.36s cubic-bezier(0.32, 0.72, 0, 1) !important;
    border-left: 3px solid #d7ff22 !important;
  }

  nav#mainNav.active {
    display: flex !important;
    right: 0 !important;
  }

  /* Professional drawer header */
  nav#mainNav .nav-header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px 16px;
    background: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(215,255,34,0.1);
  }

  .nav-drawer-logo {
    font-size: 17px;
    font-weight: 900;
    color: #d7ff22;
    letter-spacing: 2px;
  }

  .nav-close-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #ddd;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
  }

  .nav-close-btn:active {
    background: #d7ff22;
    color: #111;
    transform: scale(0.92);
  }

  /* Professional nav links */
  nav#mainNav a {
    font-size: 13.5px !important;
    padding: 11px 15px !important;
    margin: 4px 10px !important;
    color: #ddd !important;
    border: 1px solid rgba(215,255,34,0.16) !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.04) !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
  }

  nav#mainNav a:last-child {
    margin-bottom: 14px !important;
  }

  nav#mainNav a:hover,
  nav#mainNav a.active {
    color: #d7ff22 !important;
    background: rgba(215, 255, 34, 0.12) !important;
    border-color: rgba(215,255,34,0.45) !important;
  }

  nav#mainNav a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  /* ===================== NAV OVERLAY ===================== */
  #navOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.32s ease;
    backdrop-filter: blur(2px);
  }

  #navOverlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* ===================== BODY LOCK ===================== */
  body.nav-open {
    overflow: hidden;
  }

  /* ===================== HERO ===================== */
  .hero {
    padding: 55px 16px 46px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.05;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-btns {
    flex-direction: column;
    gap: 9px;
  }

  .hero-btns a {
    width: 100%;
    padding: 14px 20px;
    text-align: center;
  }

  /* ===================== STATS ===================== */
  .stats-row {
    gap: 12px;
    padding: 14px 10px;
  }

  .stat-item .s-num {
    font-size: 20px;
  }

  /* ===================== CATEGORIES ===================== */
  .cat-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    padding: 0 4px;
  }

  .cat-card {
    padding: 11px 5px;
  }

  .cat-card-icon {
    font-size: 21px;
  }

  /* ===================== PRODUCTS ===================== */
  .product-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 3px;
  }

  .product-card {
    padding: 9px;
    border-radius: 15px;
  }

  .product-card img,
  .product-card-img,
  .product-card-img-empty {
    height: 130px;
    border-radius: 11px;
  }

  .product-card h3 {
    font-size: 13.2px;
  }

  .product-card p {
    font-size: 16.5px;
  }

  .wishlist-btn {
    width: 33px;
    height: 33px;
  }

  /* ===================== WHY US ===================== */
  .why-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .why-box {
    padding: 18px 12px;
  }

  .why-box .why-num {
    font-size: 14px;
  }

  .why-icon {
    font-size: 26px;
  }

  .why-badge {
    font-size: 9px;
    padding: 1px 8px;
  }

  /* ===================== TESTIMONIALS ===================== */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* ===================== CTA ===================== */
  .cta-section {
    padding: 42px 16px;
  }

  .cta-section h2 {
    font-size: 22px;
  }

  /* ===================== FOOTER — FULLY IMPROVED (MOBILE) ===================== */
  .main-footer {
    padding: 36px 16px 18px;
  }

  .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    text-align: center;
    max-width: 100%;
  }

  .footer-logo {
    justify-content: center;
    gap: 9px;
  }

  .footer-logo img {
    height: 30px !important;
  }

  .footer-tagline {
    font-size: 13.5px;
    margin-bottom: 16px;
  }

  .footer-social {
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
  }

  .footer-social a {
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(215,255,34,0.25);
  }

  .footer-social svg {
    width: 20px;
    height: 20px;
  }

  .footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    text-align: left;
  }

  .footer-links-grid h4 {
    font-size: 13px;
    margin-bottom: 9px;
    letter-spacing: 0.4px;
  }

  .footer-links-grid a {
    font-size: 13.5px;
    margin-bottom: 6px;
  }

  .footer-bottom {
    margin-top: 28px;
    padding-top: 16px;
    text-align: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
  }

  /* ===================== MOBILE BOTTOM NAV — PROFESSIONAL ===================== */
  .mobile-bottom-nav {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0e0f12f2;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1.5px solid #262a31;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0 calc(10px + env(safe-area-inset-bottom));
    z-index: 100000;
    box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.45);
  }

  .mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #9aa0a8;
    text-decoration: none;
    padding: 4px 2px;
    transition: all .15s ease;
  }

  .mobile-bottom-nav a.active {
    color: #d7ff22;
  }

  .mobile-bottom-nav a:active {
    transform: scale(0.94);
  }

  .mobile-bottom-nav a svg {
    width: 21px;
    height: 21px;
    margin-bottom: 1px;
    stroke-width: 2.6;
  }

  .mob-cart-badge {
    position: absolute;
    top: -2px;
    right: 17px;
    background: #d7ff22;
    color: #111;
    font-size: 9px;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 50px;
    min-width: 15px;
    line-height: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
  }

  /* ===================== FLOATING WHATSAPP — BALANCED & PROFESSIONAL ===================== */
  /* ===================== FLOATING WHATSAPP — CLEAN & BALANCED ===================== */
  .float-wa {
    bottom: 78px !important;
    right: 14px;
    width: 54px !important;
    height: 54px !important;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 22px rgba(37, 211, 102, .4);
    z-index: 99999;
    text-decoration: none;
    transition: transform .2s ease;
  }
  
  .float-wa:active {
    transform: scale(0.92);
  }
  
  .float-wa svg {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
  }
  
  .float-wa .float-wa-tooltip {
    display: none;
  }

  /* ===================== SOCIAL MEDIA LINKS IN FOOTER — MOBILE ===================== */
  .footer-social {
    justify-content: center;
    gap: 11px;
  }
  .footer-social a {
    width: 44px;
    height: 44px;
  }
  .footer-social svg {
    width: 19px;
    height: 19px;
  }

  /* ===================== FORMS ===================== */
  .contact-form input,
  .contact-form textarea {
    padding: 14px 15px;
  }

  /* ===================== GENERAL PROFESSIONAL TOUCH ===================== */
  .product-card:active,
  .cat-card:active,
  .btn:active,
  .btn-gold:active,
  .mobile-bottom-nav a:active {
    transform: scale(0.96);
    transition: transform .08s ease;
  }

  .product-card,
  .cat-card,
  .why-box {
    transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s ease;
  }

  /* ===================== LIVE SEARCH ===================== */
  .live-search input {
    font-size: 15.5px;
    padding: 14px 17px 14px 46px;
  }

  /* ===================== PRODUCT & CATALOG GRIDS ===================== */
  .product-grid,
  .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }
  .product-card img {
    height: 132px;
    object-fit: cover;
  }
  .product-card .p-info { padding: 10px 10px 12px; }
  .product-card h4 { font-size: 13px; }
  .product-card .price { font-size: 15px; }
  .add-btn { padding: 9px 8px; font-size: 11px; }
  .wishlist-btn { width: 32px; height: 32px; min-width: 32px; min-height: 32px; }

  /* Category pills scroll sideways on small screens */
  .cat-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    width: 100%;
  }
  .cat-pills .cat-pill { flex-shrink: 0; }

  /* ===================== MOBILE FORM INPUTS (no iOS zoom) ===================== */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* ===================== MODALS fit mobile screens ===================== */
  .hire-modal-content,
  .svc-modal-content {
    max-width: 94vw !important;
    margin: 6px auto;
    border-radius: 18px !important;
  }
  .hire-modal-body,
  .svc-modal-body { padding: 16px 16px; }
  .form-row { flex-direction: column; gap: 10px; }

  /* ===================== BACK-TO-TOP stays clear of bottom nav ===================== */
  .back-top { bottom: 82px !important; }

  /* ===================== FOOTER link rows on mobile ===================== */
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px 14px;
  }
  .footer-links-grid > div { min-width: 0; }
  .main-footer { padding-bottom: 18px; }
}

/* === SMALLER PHONES (420px) === */
@media (max-width: 420px) {
  .hero h1 {
    font-size: 25px;
  }

  .product-container {
    gap: 8px;
  }

  .product-card {
    padding: 8px;
  }

  .product-card img,
  .product-card-img,
  .product-card-img-empty {
    height: 115px;
  }

  .cat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-bottom-nav a {
    font-size: 9.5px;
  }
}

/* === ACCESSIBILITY + PROFESSIONAL POLISH === */
html {
  -webkit-overflow-scrolling: touch;
}

/* Large reliable touch targets */
.menu-toggle,
nav#mainNav a,
.btn,
.btn-gold,
.mobile-bottom-nav a,
.wishlist-btn {
  min-height: 46px;
  min-width: 46px;
}

/* Wishlist button polish */
.wishlist-btn {
  box-shadow: 0 3px 9px rgba(0,0,0,0.15);
}

.wishlist-btn.active {
  background: #e53935 !important;
}

/* Toast polish */
#toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 11px 22px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 5px 18px rgba(0,0,0,.3);
  z-index: 100001;
  white-space: nowrap;
}

/* Bottom nav active state glow */
.mobile-bottom-nav a.active svg {
  stroke: #d7ff22;
}

/* Product badge on mobile */
.product-badge {
  font-size: 8.5px;
  padding: 2px 7px;
}

/* Hide desktop-only elements */
@media (max-width: 768px) {
  .cart-preview-dropdown {
    display: none !important;
  }
}
/* ============================================================
   FOOTER — NICE ON MOBILE (customer)
   ============================================================ */
@media (max-width: 768px) {
    .main-footer { padding: 34px 18px 24px; }
    .footer-content { display: flex; flex-direction: column; gap: 26px; }
    .footer-brand { max-width: 100%; }
    .footer-logo { justify-content: center; }
    .footer-tagline { text-align: center; }
    .footer-contact { width: 100%; }
    .fc-item { width: 100%; }
    .footer-social { justify-content: center; margin-top: 2px; }
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 22px 14px;
        border-top: 1px solid rgba(215,255,34,0.12);
        padding-top: 22px;
    }
    .footer-links-grid h4 { font-size: 13px; margin-bottom: 10px; }
    .footer-links-grid a { font-size: 13px; margin-bottom: 8px; }
    .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }
    .footer-bottom { margin-top: 8px; }
}
