/* ============================================
   BABJI 53 - Premium Frozen Food Ordering
   Mobile-First CSS
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0f0f1a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 480px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 1024px) { .container { max-width: 960px; } }

/* --- Buttons --- */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white; border: none; border-radius: 16px;
    font-size: 15px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76,175,80,0.3);
    text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(76,175,80,0.4); }
.btn-primary:active { transform: scale(0.97); }

.btn-whatsapp {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; background: linear-gradient(135deg, #25D366, #128C7E);
    color: white; border: none; border-radius: 16px;
    font-size: 15px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
    text-decoration: none;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,0.4); }

.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; background: transparent;
    color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px; font-size: 15px; font-weight: 500; font-family: inherit;
    cursor: pointer; transition: all 0.3s ease;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); color: white; }

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* --- Hero Section --- */
.hero {
    position: relative; min-height: 85vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #0f0f1a 100%);
}
.hero-bg::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(76,175,80,0.15), transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(15,52,96,0.3), transparent 40%);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}
.hero-content {
    position: relative; z-index: 2; text-align: center; padding: 20px;
}
.hero-logo img {
    width: 120px; height: 120px; border-radius: 50%; margin: 0 auto;
    box-shadow: 0 0 40px rgba(76,175,80,0.3), 0 0 80px rgba(76,175,80,0.1);
    border: 3px solid rgba(76,175,80,0.3);
}
.hero-brand {
    display: block; font-size: 42px; font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: 2px; margin-top: 20px;
}
.hero-sub {
    display: block; font-size: 16px; font-weight: 400;
    color: rgba(255,255,255,0.6); letter-spacing: 4px; text-transform: uppercase;
    margin-top: 4px;
}
.hero-tagline {
    font-size: 15px; color: rgba(255,255,255,0.5);
    margin-top: 12px; font-style: italic;
}
.hero-btns {
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: center; margin-top: 28px;
}
.hero-wave {
    position: absolute; bottom: -2px; left: 0; right: 0; z-index: 3;
}
.hero-wave svg { display: block; width: 100%; height: auto; }

/* --- Kitchen 53 Badge --- */
.kitchen53-badge { padding: 16px 0; }
.badge-wrap {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 20px;
    background: rgba(255,255,255,0.05); border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}
.badge-text { font-size: 12px; color: rgba(255,255,255,0.4); }
.badge-brand { font-size: 14px; font-weight: 700; color: #4CAF50; }
.badge-sub { font-size: 11px; color: rgba(255,255,255,0.3); }

/* --- Section Titles --- */
.section-title {
    font-size: 22px; font-weight: 700; margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}
.title-icon { font-size: 24px; }

/* --- Categories --- */
.categories-section { padding: 24px 0; }
.categories-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.category-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 16px 8px; border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease; text-decoration: none;
}
.category-card:hover {
    background: rgba(76,175,80,0.1);
    border-color: rgba(76,175,80,0.3);
    transform: translateY(-4px);
}
.category-icon { font-size: 32px; margin-bottom: 8px; }
.category-name {
    font-size: 11px; font-weight: 600; text-align: center;
    color: rgba(255,255,255,0.8); line-height: 1.3;
}

@media (min-width: 768px) {
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- Product Cards --- */
.products-scroll {
    display: flex; gap: 14px; overflow-x: auto;
    padding: 4px 0 20px; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.products-scroll::-webkit-scrollbar { display: none; }
.products-scroll .product-card {
    min-width: 165px; max-width: 165px; scroll-snap-align: start;
}

.products-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
    padding-bottom: 24px;
}

.product-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px; overflow: hidden;
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    border-color: rgba(76,175,80,0.3);
}

.product-img-wrap {
    position: relative; aspect-ratio: 1; overflow: hidden;
    background: linear-gradient(135deg, rgba(76,175,80,0.1), rgba(255,255,255,0.03));
}
.product-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.15);
}
.product-badge {
    position: absolute; top: 8px; left: 8px;
    padding: 4px 10px; background: linear-gradient(135deg, #FF6B35, #FF4444);
    color: white; font-size: 10px; font-weight: 700;
    border-radius: 8px; letter-spacing: 0.5px;
}

.product-info { padding: 12px; }
.product-name {
    font-size: 13px; font-weight: 600; line-height: 1.3;
    color: rgba(255,255,255,0.9);
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.product-meta {
    display: flex; gap: 8px; margin-top: 4px;
    font-size: 11px; color: rgba(255,255,255,0.4);
    align-items: center; flex-wrap: wrap;
}
.product-pieces {
    padding: 1px 6px; background: rgba(255,255,255,0.08);
    border-radius: 4px;
}
.variant-options {
    display: flex; gap: 4px; flex-wrap: wrap;
}
.variant-pill {
    padding: 3px 8px; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
    color: rgba(255,255,255,0.7); font-size: 10px; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.variant-pill:hover { background: rgba(255,255,255,0.1); }
.variant-pill.active {
    background: rgba(76,175,80,0.2); border-color: #4CAF50; color: #4CAF50;
}
.product-bottom {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px;
}
.product-price {
    font-size: 18px; font-weight: 700;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.add-btn {
    width: 36px; height: 36px; border-radius: 12px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    border: none; color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(76,175,80,0.3);
}
.add-btn:hover { transform: scale(1.1); }
.add-btn:active {
    transform: scale(0.9);
    animation: addPulse 0.3s ease;
}
@keyframes addPulse {
    50% { box-shadow: 0 0 0 8px rgba(76,175,80,0.2); }
    100% { box-shadow: 0 2px 8px rgba(76,175,80,0.3); }
}

/* --- Featured Section --- */
.featured-section { padding: 20px 0 32px; }

/* --- CTA Section --- */
.cta-section { padding: 20px 0 32px; }
.cta-card {
    padding: 32px 24px; text-align: center;
    background: linear-gradient(135deg, rgba(76,175,80,0.15), rgba(76,175,80,0.05));
    border: 1px solid rgba(76,175,80,0.2);
    border-radius: 24px;
}
.cta-card h2 { font-size: 24px; margin-bottom: 8px; }
.cta-card p { color: rgba(255,255,255,0.6); margin-bottom: 20px; font-size: 14px; }

/* --- Menu Page --- */
.menu-page { padding: 20px 0; }
.menu-header {
    text-align: center; margin-bottom: 20px;
}
.menu-header h1 { font-size: 28px; font-weight: 800; }
.menu-header p { color: rgba(255,255,255,0.5); font-size: 14px; }

.search-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; margin-bottom: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px; transition: border-color 0.3s;
}
.search-bar:focus-within { border-color: rgba(76,175,80,0.5); }
.search-bar svg { color: rgba(255,255,255,0.4); flex-shrink: 0; }
.search-bar input {
    flex: 1; background: none; border: none; outline: none;
    color: white; font-size: 15px; font-family: inherit;
}
.search-bar input::placeholder { color: rgba(255,255,255,0.3); }

.category-tabs { margin-bottom: 20px; }
.tabs-scroll {
    display: flex; gap: 8px; overflow-x: auto;
    padding: 4px 0; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.tabs-scroll::-webkit-scrollbar { display: none; }
.tab-pill {
    flex-shrink: 0; padding: 8px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px; font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,0.6); transition: all 0.3s;
    white-space: nowrap; text-decoration: none;
}
.tab-pill.active, .tab-pill:hover {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white; border-color: transparent;
    box-shadow: 0 4px 12px rgba(76,175,80,0.3);
}

.empty-state {
    grid-column: 1 / -1; text-align: center; padding: 48px 20px;
    color: rgba(255,255,255,0.4);
}
.empty-state svg { margin: 0 auto 16px; }

/* --- Cart Page --- */
.cart-page { padding: 20px 0; }
.cart-header { text-align: center; margin-bottom: 20px; }
.cart-header h1 { font-size: 28px; font-weight: 800; }
.cart-header p { color: rgba(255,255,255,0.5); font-size: 14px; }

.empty-cart { text-align: center; padding: 48px 20px; }
.empty-cart-icon { color: rgba(255,255,255,0.15); margin-bottom: 16px; }
.empty-cart h2 { font-size: 22px; margin-bottom: 8px; }
.empty-cart p { color: rgba(255,255,255,0.4); font-size: 14px; }

.cart-content { max-width: 480px; margin: 0 auto; }

.cart-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px; margin-bottom: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; transition: all 0.3s;
}
.cart-item:hover { border-color: rgba(255,255,255,0.15); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 {
    font-size: 14px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-meta { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; display: flex; gap: 6px; }
.cart-item-price { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }

.cart-item-actions {
    display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.qty-control {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.08); border-radius: 10px; padding: 4px;
}
.qty-btn {
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(255,255,255,0.1); border: none; color: white;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.qty-btn:hover { background: rgba(76,175,80,0.3); }
.qty-num { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }
.cart-item-total { font-size: 15px; font-weight: 700; color: #4CAF50; min-width: 55px; text-align: right; }
.remove-btn {
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(255,68,68,0.15); border: none; color: #FF4444;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.remove-btn:hover { background: rgba(255,68,68,0.3); }

/* Customer Info */
.customer-info {
    padding: 20px; margin: 20px 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
}
.customer-info h3 { font-size: 16px; margin-bottom: 12px; }
.form-group { margin-bottom: 12px; }
.form-input {
    width: 100%; padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; color: white;
    font-size: 14px; font-family: inherit;
    outline: none; transition: border-color 0.3s;
    resize: vertical;
}
.form-input:focus { border-color: rgba(76,175,80,0.5); }
.form-input::placeholder { color: rgba(255,255,255,0.3); }

/* Order Summary */
.order-summary {
    padding: 20px; margin-bottom: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
}
.order-summary h3 { font-size: 16px; margin-bottom: 12px; }
.summary-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; font-size: 14px;
    color: rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.summary-row.total {
    font-size: 18px; font-weight: 700; color: white;
    border-bottom: none; margin-top: 8px; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Payment QR */
.payment-section {
    text-align: center; padding: 24px; margin-bottom: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
}
.payment-section h3 { font-size: 16px; margin-bottom: 16px; }
.qr-wrap canvas {
    margin: 0 auto; border-radius: 12px;
    background: white; padding: 8px;
}
.qr-amount { margin-top: 12px; font-size: 16px; font-weight: 600; }
.upi-id { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 4px; }

/* Order Actions */
.order-actions { margin-bottom: 40px; }

/* --- About Page --- */
.about-page { padding: 20px 0; }
.about-header { text-align: center; margin-bottom: 24px; }
.about-logo img {
    width: 80px; height: 80px; border-radius: 50%;
    margin: 0 auto 12px; border: 2px solid rgba(76,175,80,0.3);
}
.about-header h1 { font-size: 28px; font-weight: 800; }

.about-card {
    padding: 24px; margin-bottom: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
}
.about-card h2 { font-size: 20px; margin-bottom: 6px; color: #4CAF50; }
.about-card p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 8px; }
.about-card .brand-sub { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 4px; font-weight: 500; letter-spacing: 0.3px; }
.about-card .brand-slogan { font-size: 13px; color: rgba(76,175,80,0.85); margin-bottom: 12px; font-style: italic; font-weight: 500; }

.promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.promise-item { text-align: center; padding: 16px 8px; }
.promise-icon { font-size: 32px; display: block; margin-bottom: 8px; }
.promise-item h3 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.promise-item p { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 0; }

.contact-card .contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px; font-size: 14px;
    transition: all 0.3s; color: rgba(255,255,255,0.8);
}
.contact-item:hover { background: rgba(255,255,255,0.1); }
.contact-item.whatsapp { background: rgba(37,211,102,0.15); color: #25D366; }
.contact-item.whatsapp:hover { background: rgba(37,211,102,0.25); }

/* --- Footer --- */
.site-footer {
    text-align: center; padding: 16px 16px 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 20px;
}
.footer-credit {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; color: rgba(255,255,255,0.25);
    text-decoration: none; transition: color 0.3s;
}
.footer-credit:hover { color: rgba(255,255,255,0.5); }
.footer-heart { color: #ff4444; font-size: 13px; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

/* --- Responsive Desktop --- */
@media (min-width: 768px) {
    .hero-brand { font-size: 56px; }
    .hero-logo img { width: 140px; height: 140px; }
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .categories-grid { grid-template-columns: repeat(5, 1fr); }
    .cart-item-info h3 { white-space: normal; }
}

@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
    .categories-grid { grid-template-columns: repeat(7, 1fr); }
    .bottom-nav { display: none; }
    main { padding-bottom: 0 !important; }
}

/* --- Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 400px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}
