/* ZAM ZAM BAZAAR — Mobile App-Like Experience v2 */
@media(max-width:767.98px){
  .container{padding:0 12px}
  .top-bar{display:none}
  .header .container{padding:8px 12px;gap:6px}
  .logo img{height:30px}
  .logo h1{font-size:15px}
  .logo small{display:none}
  .header-search{max-width:none;order:3;flex:0 0 100%;margin-top:6px}
  .header-search form{width:100%}
  .header-search input{padding:10px 14px;font-size:13px}
  .header-search button{padding:10px 14px}
  .header-actions{gap:6px}
  .cart-icon{font-size:20px}
  .user-icon-wrap{font-size:20px}
  .mobile-menu-btn{display:block}
  .main-nav{display:none}
  .dark-toggle{width:36px;height:36px;font-size:16px}
  .header-actions .cart-label,.header-actions .user-label{display:none}

  /* Bottom Nav — App-style bar */
  .bottom-nav{display:block;padding:0 4px 4px;transition:all 0.3s ease}
  .bottom-nav-inner{max-width:100%}
  .bottom-nav-item{min-height:52px;padding:2px 0;gap:1px}
.bottom-nav-item .nav-icon{font-size:20px}
.bottom-nav-item .nav-icon svg{width:20px;height:20px}
.bottom-nav-item .nav-label{font-size:8px}
  .bottom-nav-item.active .nav-icon{transform:translateY(-2px) scale(1.2)}
  .main{padding-bottom:calc(var(--bottom-nav-height) + 8px)}
  .footer{padding-bottom:calc(var(--bottom-nav-height) + 20px)}
  .has-bottom-nav .whatsapp-float{bottom:calc(var(--bottom-nav-height) + 8px)}
  .has-bottom-nav .main{padding-bottom:calc(var(--bottom-nav-height) + 8px)}

  /* Hero — compact */
  .hero-slider{margin-bottom:24px;border-radius:var(--radius);min-height:auto}
  .slider-container{height:190px}
  .slider-container::before,.slider-container::after{display:none}
  .slide{padding:24px}
  .slide-content h2{font-size:20px;letter-spacing:-0.3px}
  .slide-content p{font-size:13px;margin-bottom:14px;max-width:100%}
  .slide-content .btn{padding:10px 20px;font-size:12px}
  .slider-btn{width:34px;height:34px;font-size:14px;border-width:1px}
  .prev{left:6px}.next{right:6px}
  .slider-dots{bottom:8px;gap:6px}
  .dot{width:8px;height:8px;border-width:1px}
  .dot.active{width:24px}

  /* Sections */
  .section-header h2{font-size:18px}
  .section-header h2::after{width:30%}
  .section{margin-bottom:28px}
  .section-header{margin-bottom:16px}

  /* Categories */
  .category-grid{grid-template-columns:repeat(4,1fr);gap:8px}
  .category-card{padding:12px 6px;border-radius:var(--radius-sm)}
  .category-icon{width:44px;height:44px;margin-bottom:6px}
  .cat-emoji{font-size:24px}
  .category-card h3{font-size:10px}
  .product-count{display:none}
  .category-card:hover{transform:translateY(-3px)}

  /* Products */
  .product-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .product-image{height:150px}
  .product-image img{padding:10px}
  .product-info{padding:10px}
  .product-info h3{font-size:12px}
  .current-price{font-size:16px}
  .old-price{font-size:10px}
  .add-to-cart{font-size:11px;padding:8px 12px}
  .product-card:hover{transform:translateY(-3px)}
  .discount-badge{font-size:10px;padding:3px 8px}

  /* Product Detail */
  .product-detail-grid{gap:16px}
  .main-image{min-height:260px;padding:16px;border-radius:var(--radius-lg)}
  .main-image img{max-height:220px}
  .gallery-thumbs .thumb{width:52px;height:52px}
  .product-info-detail h1{font-size:20px}
  .product-pricing .large{font-size:28px}
  .quantity-add{flex-direction:column;align-items:stretch}
  .qty-control{width:fit-content}
  .product-description-full{padding:18px;border-radius:var(--radius-lg)}

  /* Shop */
  .shop-layout{grid-template-columns:1fr}
  .shop-sidebar{display:none}
  .shop-header{flex-direction:column;gap:4px;align-items:flex-start}

  /* Cart */
  .cart-layout{grid-template-columns:1fr}
  .cart-table th,.cart-table td{padding:10px 12px;font-size:12px}
  .cart-table th:nth-child(2),.cart-table td:nth-child(2),
  .cart-table th:nth-child(4),.cart-table td:nth-child(4){display:none}
  .cart-product span{font-size:13px}
  .cart-product img{width:48px;height:48px}
  .cart-actions{flex-direction:column;gap:10px;padding:14px}
  .cart-actions .btn{width:100%}
  .cart-summary .summary-card{padding:20px}

  /* Checkout */
  .checkout-layout{grid-template-columns:1fr}
  .checkout-summary{order:-1}
  .checkout-summary .card{margin-bottom:12px}
  .checkout-form .card{padding:18px;border-radius:var(--radius-lg)}
  .payment-option{padding:12px 14px}

  /* Auth */
  .auth-page{padding:24px 12px;min-height:auto}
  .auth-card{padding:28px 20px;border-radius:var(--radius-lg)}
  .auth-card h1{font-size:24px}
  .auth-card::before{height:3px}

  /* Account */
  .account-header{flex-wrap:wrap;text-align:center;justify-content:center;gap:12px;padding:20px;border-radius:var(--radius-lg)}
  .account-header .btn{margin:0;width:100%}
  .account-grid{grid-template-columns:1fr;gap:14px}
  .account-avatar{width:52px;height:52px;font-size:22px}
  .account-header h1{font-size:18px}
  .card{border-radius:var(--radius-lg)}
  .card-header{padding:14px 18px}
  .card-body{padding:18px}

  /* Category Hero */
  .category-hero{padding:32px 0;border-radius:0 0 var(--radius-lg) var(--radius-lg)}
  .category-hero h1{font-size:26px}

  /* Footer */
  .footer{padding:36px 0 0;margin-top:28px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:24px}
  .footer-col h3{font-size:14px}
  .footer-col h3::after{width:20px}

  /* Popup */
  .popup-modal{max-width:96%;border-radius:var(--radius-lg)}
  .popup-content{padding:20px}
  .popup-content h2{font-size:20px}
  .popup-close{top:10px;right:10px;width:32px;height:32px;font-size:18px}

  /* Order Success */
  .order-success{padding:48px 16px}
  .success-icon{width:72px;height:72px;font-size:32px}
  .order-success h1{font-size:26px}

  /* Pagination */
  .pagination{flex-wrap:wrap;gap:4px;margin:28px 0}
  .page-link{padding:8px 12px;font-size:12px}

  /* WhatsApp */
  .whatsapp-float{width:48px;height:48px;font-size:24px;bottom:calc(var(--bottom-nav-height) + 12px);right:12px}
  .whatsapp-float::before{display:none}

  /* Empty State */
  .empty-state{padding:48px 16px}
  .empty-state .empty-icon{font-size:56px}
  .empty-state h2{font-size:20px}

  /* Table */
  .table th,.table td{padding:10px 12px;font-size:12px}
}

/* Touch-friendly improvements */
@media(hover:none) and (pointer:coarse){
  .btn,a,button,.category-card,.product-card{cursor:default;-webkit-tap-highlight-color:transparent}
  .btn:active,.category-card:active,.product-card:active{transform:scale(0.97)}
  .qty-control button{min-width:44px;min-height:44px}
  .mobile-menu a{padding:16px 20px;font-size:16px}
  input,select,textarea{font-size:16px!important}
  .bottom-nav-item{min-height:52px}
}

/* Small phones */
@media(max-width:374.98px){
  .category-grid{grid-template-columns:repeat(3,1fr)}
  .product-grid{grid-template-columns:1fr 1fr;gap:8px}
  .logo h1{font-size:13px}
  .header-search{padding:0}
}
