/* Tanvi Creation — Mobile App-Style View */

:root {
  --mobile-nav-height: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Bottom navigation bar (mobile app style) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(123, 30, 58, 0.12);
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -4px 24px rgba(123, 30, 58, 0.1);
}

.mobile-bottom-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: var(--mobile-nav-height);
  max-width: 500px;
  margin: 0 auto;
}

.mob-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.mob-nav-item.active {
  color: var(--maroon);
}

.mob-nav-item.active .mob-nav-icon-wrap {
  background: rgba(123, 30, 58, 0.1);
}

.mob-nav-icon-wrap {
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.2s;
}

.mob-nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.mob-nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  background: var(--maroon);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Mobile header compact */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: block;
  }

  body {
    padding-bottom: calc(var(--mobile-nav-height) + var(--safe-bottom));
  }

  .container {
    padding: 0 1rem;
  }

  .header-inner {
    height: 60px;
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .logo-name {
    font-size: 1.1rem;
  }

  .logo-tagline {
    display: none;
  }

  .nav {
    top: 60px;
    max-height: calc(100vh - 60px - var(--mobile-nav-height));
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }

  .nav-link {
    padding: 1rem;
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0 2.5rem;
  }

  .hero-content {
    padding: 2rem 1rem;
    text-align: center;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.85rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  /* Sections */
  .section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .page-header {
    padding: 2rem 0 1.75rem;
  }

  .page-header h1 {
    font-size: 1.65rem;
  }

  .page-header p {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  /* Product grid — 2 columns on mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .product-body {
    padding: 0.85rem;
  }

  .product-name {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .product-desc {
    display: none;
  }

  .product-category {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    top: 8px;
    left: 8px;
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .product-footer .price {
    font-size: 1.15rem;
    text-align: center;
  }

  .product-footer .btn {
    width: 100%;
    min-height: 40px;
    font-size: 0.8rem;
    padding: 0.5rem;
  }

  .card:hover {
    transform: none;
  }

  /* Category filters — horizontal scroll */
  .category-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 0.5rem;
    margin: 0 -1rem 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    gap: 0.4rem;
    scrollbar-width: none;
  }

  .category-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .search-input {
    max-width: 100%;
    min-height: 48px;
    font-size: 16px;
  }

  /* Features — single column cards */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    padding: 1.25rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
  }

  .feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .feature-card h3 {
    font-size: 1.05rem;
  }

  .feature-card p {
    font-size: 0.85rem;
  }

  /* Owner card */
  .owner-card {
    padding: 1.5rem 1.25rem;
    border-left-width: 3px;
  }

  .owner-card h2 {
    font-size: 1.5rem;
  }

  .owner-details {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }

  /* Buttons touch-friendly */
  .btn {
    min-height: 44px;
  }

  .btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }

  /* Forms — prevent iOS zoom */
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;
    min-height: 48px;
  }

  .form-group textarea {
    min-height: 100px;
  }

  /* Cart mobile */
  .cart-items {
    padding: 1rem;
  }

  .cart-item {
    grid-template-columns: 64px 1fr;
    gap: 0.75rem;
  }

  .cart-item-image {
    width: 64px;
    height: 80px;
  }

  .cart-item-info h3 {
    font-size: 0.9rem;
  }

  .quantity-control button {
    width: 40px;
    height: 40px;
  }

  .inquiry-form-card,
  .contact-form-card,
  .admin-form-card {
    padding: 1.25rem;
  }

  /* Contact */
  .info-card {
    padding: 1.25rem;
  }

  /* Admin */
  .admin-product-item {
    flex-wrap: wrap;
  }

  .admin-list-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions .btn {
    flex: 1;
  }

  /* Footer */
  .footer {
    margin-top: 2rem;
    padding: 2rem 0 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-brand-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
  }

  /* Hide top nav cart text clutter on very small screens - bottom nav handles it */
  .nav-link .cart-badge {
    position: static;
    margin-left: 0.5rem;
    display: inline-flex;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .product-grid {
    gap: 0.6rem;
  }

  .product-body {
    padding: 0.65rem;
  }

  .product-name {
    font-size: 0.85rem;
  }

  .product-footer .price {
    font-size: 1rem;
  }

  .mob-nav-item {
    font-size: 0.58rem;
  }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }
}
