/* Sort Bar & Categories */
.sort-container { background: var(--bg); position: sticky; top: 75px; z-index: 90; padding: 10px 0; border-bottom: 1px solid var(--border); transition: background-color 0.3s; }
.sort-bar { display: flex; gap: 10px; overflow-x: auto; max-width: 1200px; margin: 0 auto; padding: 0 15px; scrollbar-width: none; }
.sort-bar::-webkit-scrollbar { display: none; }
.sort-btn { background: var(--surface); border: 1px solid var(--border); padding: 10px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; gap: 8px; white-space: nowrap; transition: 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.02); text-transform: capitalize; }
.sort-btn.active { background: #fef2f2; color: #ef4444; border-color: #ef4444; }
.category-header { grid-column: 1 / -1; font-size: 1.2rem; font-weight: 900; color: var(--text); padding-bottom: 5px; border-bottom: 2px solid var(--primary); margin-top: 15px; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Product Cards */
.product-card { background: var(--surface); border-radius: 16px; padding: 15px; display: flex; gap: 15px; border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,0.03); transition: transform 0.2s, background 0.3s, border 0.3s; position: relative;}
.product-card.sold-out { opacity: 0.5; pointer-events: none; filter: grayscale(1); }
.sold-out-badge { position: absolute; top: 10px; right: 10px; background: #ef4444; color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 900; z-index: 5; }
.product-card:active { transform: scale(0.98); }
.prod-info { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.media-wrapper { width: 110px; height: 110px; min-width: 110px; flex-shrink: 0; cursor: pointer; position: relative; border-radius: 12px; box-shadow: 0 4px 8px rgba(0,0,0,0.08); overflow: hidden; background: var(--border);}
.prod-img { width: 100%; height: 100%; object-fit: cover; }

/* Product Details */
.food-type { font-size: 10px; margin-bottom: 6px; border-radius: 4px; padding: 2px 6px; display: inline-block; font-weight: bold; border: 1px solid; width: max-content; letter-spacing: 0.5px; }
.veg { color: #16a34a; border-color: #16a34a; background: rgba(22, 163, 74, 0.1); }
.non-veg { color: #ef4444; border-color: #ef4444; background: rgba(239, 68, 68, 0.1); }
.prod-title { font-size: 1.1rem; font-weight: 800; margin: 0 0 6px 0; color: var(--text); line-height: 1.2; word-wrap: break-word; }
.prod-desc { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 12px 0; line-height: 1.4; }

/* Pricing & Variants */
.variant-wrap { position: relative; margin-bottom: 12px; }
.variant-select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem; background: var(--bg); font-weight: 700; appearance: none; cursor: pointer; color: var(--text); outline: none; }
.variant-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-muted); font-size: 0.8rem; }
.action-area { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font-size: 1.15rem; font-weight: 900; color: red; }

/* Buttons & Qty Controls */
.btn-add { background: #0b2230; color: var(--primary); border: none; padding: 8px 20px; border-radius: 8px; font-weight: 800; font-size: 0.85rem; cursor: pointer; text-transform: uppercase; transition: transform 0.2s; }
.btn-add:active { transform: scale(0.95); }
.btn-add:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; opacity: 0.6; }
.qty-control { display: flex; align-items: center; background: #0b2230; border-radius: 8px; padding: 3px; }
.qty-btn { width: 32px; height: 32px; border: none; background: transparent; color: var(--primary); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.15s ease, color 0.15s ease; }
.qty-btn:active { transform: scale(0.7); opacity:0.8; }
.qty-val { width: 28px; text-align: center; font-weight: 700; color: white; font-size: 0.95rem; }

/* Search Overlay */
.search-overlay { position: fixed; inset: 0; background: var(--bg); z-index: 2000; display: none; flex-direction: column; animation: fadeIn 0.2s ease-out; }
.search-overlay.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.search-header { padding: 15px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); background: var(--surface); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.search-input-wrap { flex: 1; position: relative; display: flex; align-items: center; }
.search-input-wrap i { position: absolute; left: 15px; color: var(--text-muted); font-size: 1.1rem; }
.search-input-wrap input { width: 100%; padding: 14px 15px 14px 45px; border: 2px solid var(--border); border-radius: 50px; font-size: 1.05rem; outline: none; background: var(--bg); color: var(--text); transition: 0.2s; }
.close-search-btn { background: var(--bg); border: 1px solid var(--border); width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; transition: 0.2s; }
.search-results-body { flex: 1; overflow-y: auto; padding: 15px 0; }
.no-results { grid-column: 1 / -1; text-align: center; padding: 40px 20px; color: var(--text-muted); font-weight: 600; font-size: 1.1rem; }