/* Mobile bottom navigation + Amazon-style product cards */

@media (max-width: 768px) {
  body.has-mobile-nav {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  body.has-mobile-nav header .btn-cart {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .product-card {
    border-radius: 16px;
  }

  .product-image {
    height: 200px;
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
  }

  .product-btn {
    width: 100% !important;
    height: 48px !important;
    padding: 0 16px;
    gap: 8px;
    border-radius: 12px;
  }

  .product-btn .product-btn-icon {
    display: none;
  }

  .product-btn .product-btn-label {
    display: inline;
    font-size: 15px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .trust-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }

  .product-btn .product-btn-label {
    display: none;
  }

  .product-btn .product-btn-icon {
    display: block;
  }
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: none;
  align-items: stretch;
  justify-content: space-around;
  background: var(--bg-card, #fff);
  border-top: 1px solid var(--border-color, #e5e7eb);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .mobile-bottom-nav {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  min-height: 52px;
  text-decoration: none;
  color: var(--gray-500, #6b7280);
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.mobile-nav-item.active {
  color: var(--purple-600, #6d28d9);
  background: var(--purple-50, #f5f3ff);
}

[data-theme="dark"] .mobile-nav-item.active {
  background: rgba(139, 92, 246, 0.15);
}

.mobile-nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: white;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
