/**
 * Brijseva Platform - ULTRA PREMIUM CSS
 * Mathura-Vrindavan Super Delivery App
 * Modern Design with Premium Aesthetics
 */

/* ========== Google Fonts Import ========== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

/* ========== CSS Variables ========== */
:root {
    /* Primary Colors */
    --primary: #dc2626;
    --primary-light: #ef4444;
    --primary-dark: #b91c1c;
    --primary-glow: rgba(220, 38, 38, 0.25);
    
    /* Secondary */
    --secondary: #f97316;
    --secondary-light: #fb923c;
    
    /* Accent */
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    
    /* Semantic Colors */
    --success: #10b981;
    --success-light: #34d399;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Neutrals */
    --dark: #111827;
    --dark-light: #1f2937;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    
    /* Background */
    --bg-primary: #f8fafc;
    --bg-card: #ffffff;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 10px 40px rgba(220, 38, 38, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* ========== Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f3f4f6;
    color: var(--dark);
    line-height: 1.55;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 88px;
    min-height: 100dvh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }

.hindi-text {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Search Bar ========== */
.search-bar {
    background: var(--white);
    margin: 0 0 16px;
    padding: 14px 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255,255,255,0.8) inset;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    cursor: pointer;
}

.search-bar:hover,
.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-md), 0 0 0 4px var(--primary-glow);
}

.search-bar i {
    color: var(--gray-400);
    font-size: 18px;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    font-family: inherit;
    color: var(--dark);
}

.search-bar input::placeholder {
    color: var(--gray-400);
}

/* ========== Hero Banner ========== */
.hero-banner {
    background: linear-gradient(135deg, #b91c1c 0%, var(--primary) 38%, var(--secondary) 100%);
    margin: 0 0 20px;
    padding: 32px 22px;
    border-radius: var(--radius-xl);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--primary);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ========== Section ========== */
.section {
    margin: 0 0 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.section-title > span:first-child {
    position: relative;
    padding-left: 14px;
}

.section-title > span:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    box-shadow: 0 2px 8px var(--primary-glow);
}

.section-title a {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-title a:hover {
    gap: 10px;
}

/* ========== Services Grid ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.service-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 18px 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--gray-100);
    cursor: pointer;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.service-item:active {
    transform: translateY(-2px) scale(0.98);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
    color: white;
    transition: var(--transition);
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

/* Service Icon Colors */
.service-icon.food { background: linear-gradient(135deg, #ef4444, #f97316); }
.service-icon.medicine { background: linear-gradient(135deg, #14b8a6, #10b981); }
.service-icon.grocery { background: linear-gradient(135deg, #84cc16, #22c55e); }
.service-icon.flower { background: linear-gradient(135deg, #ec4899, #f472b6); }
.service-icon.wedding { background: linear-gradient(135deg, #a855f7, #c084fc); }
.service-icon.taxi { background: linear-gradient(135deg, #eab308, #facc15); }
.service-icon.hotel { background: linear-gradient(135deg, #6366f1, #818cf8); }
.service-icon.sweet { background: linear-gradient(135deg, #78350f, #a16207); }

.service-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}

.service-name-hindi {
    display: block;
    font-size: 10px;
    color: var(--gray-500);
    font-family: 'Noto Sans Devanagari', sans-serif;
}

/* ========== Vendor Cards ========== */
.vendors-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.vendors-scroll::-webkit-scrollbar {
    display: none;
}

.vendor-card {
    flex: 0 0 260px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    scroll-snap-align: start;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.vendor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(220, 38, 38, 0.12);
}

.vendor-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-100);
    position: relative;
    overflow: hidden;
}

.vendor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
}

.vendor-rating {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--white);
    padding: 5px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-sm);
}

.vendor-rating i {
    color: var(--gold);
    font-size: 11px;
}

.vendor-info {
    padding: 16px;
}

.vendor-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vendor-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--gray-500);
}

.vendor-meta i {
    margin-right: 4px;
    color: var(--gray-400);
}

/* ========== Product Cards ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-100);
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-veg {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 4px;
}

.product-veg.veg {
    border-color: var(--success);
}

.product-veg.veg::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.product-veg.non-veg {
    border-color: var(--danger);
}

.product-veg.non-veg::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 8px solid var(--danger);
}

.product-info {
    padding: 14px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price .price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.product-price .old-price {
    font-size: 12px;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-left: 6px;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: inherit;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-secondary {
    background: var(--dark);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-white {
    background: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}

.add-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--primary);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.add-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.add-btn:active {
    transform: scale(0.95);
}

/* ========== Forms ========== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

/* ========== Cards ========== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    border: 1px solid var(--gray-100);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
}

/* ========== Badges ========== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #dbeafe; color: #1e40af; }
.badge-preparing { background: #e0e7ff; color: #4338ca; }
.badge-picked { background: #ede9fe; color: #6d28d9; }
.badge-on_way { background: #fed7aa; color: #c2410c; }
.badge-delivered, .badge-completed, .badge-success { background: #d1fae5; color: #047857; }
.badge-cancelled, .badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-primary { background: var(--primary); color: white; }

/* ========== Order Items ========== */
.order-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.order-item:hover {
    box-shadow: var(--shadow-md);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-number {
    font-weight: 700;
    color: var(--dark);
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-vendor {
    font-size: 14px;
    color: var(--dark);
}

.order-time {
    font-size: 12px;
    color: var(--gray-500);
}

.order-amount {
    font-weight: 800;
    color: var(--primary);
    font-size: 18px;
}

/* ========== Price Summary ========== */
.price-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--gray-200);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.price-row.total {
    border-top: 2px dashed var(--gray-200);
    margin-top: 10px;
    padding-top: 14px;
    font-weight: 700;
    font-size: 18px;
}

.price-row .label {
    color: var(--gray-600);
}

.price-row .value {
    font-weight: 600;
}

.price-row.discount .value {
    color: var(--success);
}

.price-row.total .value {
    color: var(--primary);
}

/* ========== Empty State ========== */
.empty-state {
    text-align: center;
    padding: 50px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-state i {
    font-size: 60px;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* ========== Alerts ========== */
.alert {
    padding: 16px 20px;
    margin: 16px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
    font-weight: 500;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #6ee7b7;
}

.alert-danger {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* ========== PREMIUM CART POPUP - CENTER SCREEN ========== */
.cart-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    z-index: 9999;
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 400px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.cart-popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success), var(--success-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: popIn 0.5s ease;
}

.cart-popup-icon i {
    font-size: 36px;
    color: white;
}

@keyframes popIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cart-popup h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--dark);
}

.cart-popup p {
    color: var(--gray-500);
    margin-bottom: 24px;
    font-size: 14px;
}

.cart-popup-btns {
    display: flex;
    gap: 12px;
}

.cart-popup-btns .btn {
    flex: 1;
}

/* ========== Toast Notification (layout overridden in includes/footer.php — avoid top+bottom stretch) ========== */
.toast {
    position: fixed;
    top: auto;
    bottom: 96px;
    left: 50%;
    transform: translateX(-50%) translateY(12px) scale(0.98);
    background: var(--dark);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: min(360px, calc(100vw - 32px));
    width: max-content;
    min-width: 0;
    min-height: 0;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
}

.toast.show {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.toast.success { 
    background: linear-gradient(135deg, var(--success), #059669); 
}

.toast.error { 
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    color: #9f1239;
    border: 1px solid #fecdd3;
}

.toast.info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ========== Animations ========== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* ========== Loader ========== */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* ========== Skeleton Loading ========== */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== DESKTOP/LAPTOP STYLES ========== */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    }
    
    .main-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 16px;
    }
    
    .service-item {
        padding: 24px 16px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .service-name {
        font-size: 13px;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .product-card {
        border-radius: var(--radius-xl);
    }
    
    .product-image {
        height: 180px;
    }
    
    .vendor-card {
        flex: 0 0 300px;
        border-radius: var(--radius-xl);
    }
    
    .vendor-image {
        height: 180px;
    }
    
    .hero-banner {
        margin: 0 0 32px;
        padding: 60px 40px;
        border-radius: var(--radius-xl);
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section {
        margin: 0 0 36px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .search-bar {
        margin: 0 0 24px;
        padding: 18px 28px;
        max-width: 600px;
    }
    
    .bottom-nav {
        display: none;
    }
    
    .whatsapp-float {
        bottom: 40px;
    }
    
    /* Desktop header enhancements */
    .header-inner {
        padding: 20px 40px;
    }
    
    .logo-text {
        font-size: 28px;
    }
    
    /* Cards get more spacious on desktop */
    .card {
        padding: 28px;
        border-radius: var(--radius-xl);
    }
    
    .empty-state {
        padding: 80px 40px;
    }
    
    /* Forms wider on desktop */
    .form-control {
        padding: 16px 20px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .vendor-card {
        flex: 0 0 320px;
    }
}

@media (max-width: 375px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .service-item {
        padding: 14px 10px;
    }
    
    .service-icon {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    /* main-content already has horizontal padding — extra margin broke narrow grids */
    .section {
        margin: 0 0 20px;
    }
}

/* ========== Safe Area ========== */
@supports (padding: max(0px)) {
    body {
        padding-bottom: max(90px, env(safe-area-inset-bottom));
    }
    
    @media (min-width: 768px) {
        body {
            padding-bottom: 0;
        }
    }
}

/* ========== Print Styles ========== */
@media print {
    .bottom-nav, .whatsapp-float, .header {
        display: none !important;
    }
    
    body {
        padding: 0;
        background: white;
    }
}

/* ========== Selection ========== */
::selection {
    background: var(--primary);
    color: white;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ========== Quick Services for Index ========== */
/* Mobile-first: explicit flex on <a> + minmax(0,1fr) avoids broken full-width stripes */
.quick-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 28px;
}

.quick-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 14px 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    -webkit-tap-highlight-color: transparent;
}

.quick-service:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(220, 38, 38, 0.12);
}

.quick-service:active {
    transform: translateY(-1px) scale(0.98);
}

.quick-service .qs-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 20px;
    color: white;
    transition: var(--transition);
}

.quick-service:hover .qs-icon {
    transform: scale(1.1);
}

.quick-service .qs-name {
    font-weight: 700;
    font-size: 12px;
    color: var(--dark);
    margin-bottom: 2px;
    line-height: 1.25;
    word-break: break-word;
}

.quick-service .qs-hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 10px;
    color: var(--gray-500);
    line-height: 1.2;
}

/* Slightly wider phones: 4 columns like Swiggy/Zomato style */
@media (min-width: 400px) {
    .quick-services {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .quick-service {
        padding: 16px 8px;
    }

    .quick-service .qs-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        margin-bottom: 10px;
    }
}

@media (min-width: 768px) {
    .quick-services {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 16px;
    }
    
    .quick-service {
        padding: 24px 16px;
    }
    
    .quick-service .qs-icon {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }
    
    .quick-service .qs-name {
        font-size: 13px;
    }
}

/* ========== Service Card Large ========== */
.service-card-large {
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,255,255,0.12) inset;
    position: relative;
    overflow: hidden;
}

.service-card-large:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.18) inset;
}

.service-card-large .icon-box {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.service-card-large .content {
    flex: 1;
}

.service-card-large h3 {
    font-size: 18px;
    margin-bottom: 4px;
    color: white;
}

.service-card-large .hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.service-card-large .meta {
    font-size: 12px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-card-large .arrow {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.service-card-large:hover .arrow {
    background: white;
    color: inherit;
    transform: translateX(4px);
}

.stats-badge {
    background: rgba(255,255,255,0.25);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

/* Service Card Colors */
.service-food { background: linear-gradient(135deg, #ef4444, #f97316); }
.service-food:hover .arrow { color: #ef4444; }

.service-medicine { background: linear-gradient(135deg, #14b8a6, #10b981); }
.service-medicine:hover .arrow { color: #14b8a6; }

.service-grocery { background: linear-gradient(135deg, #84cc16, #22c55e); }
.service-grocery:hover .arrow { color: #84cc16; }

.service-flower { background: linear-gradient(135deg, #ec4899, #f472b6); }
.service-flower:hover .arrow { color: #ec4899; }

.service-taxi { background: linear-gradient(135deg, #eab308, #f59e0b); color: #422006; }
.service-taxi:hover .arrow { color: #422006; }

.service-hotel { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.service-hotel:hover .arrow { color: #6366f1; }

.service-sweet { background: linear-gradient(135deg, #78350f, #92400e); }
.service-sweet:hover .arrow { color: #78350f; }

.service-wedding { background: linear-gradient(135deg, #a855f7, #c084fc); }
.service-wedding:hover .arrow { color: #a855f7; }

@media (min-width: 768px) {
    .service-card-large {
        padding: 28px 24px;
    }
    
    .service-card-large .icon-box {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    
    .service-card-large h3 {
        font-size: 22px;
    }
}
