/* Medi Labs Ranchi - Core Design System & SPA Styles (No Node.js Dependency) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

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

:root {
    --primary: #007a82;
    --primary-dark: #005a61;
    --primary-light: #e6f7f8;
    --primary-border: #99dce0;
    
    --accent: #f25c05;
    --accent-hover: #d94e00;
    --accent-light: #fff4ed;
    
    --ink: #0f172a;
    --ink-secondary: #334155;
    --ink-muted: #64748b;
    --ink-subtle: #94a3b8;
    
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-alt: #f1f5f9;
    
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    --success: #16a34a;
    --success-light: #f0fdf4;
    --warning: #eab308;
    --danger: #dc2626;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.12);
    --shadow-drawer: -4px 0 25px rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 70px; /* Space for mobile sticky bottom bar */
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Top Announcement Bar */
.top-notice-bar {
    background-color: #0b1e2e;
    color: #ffffff;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-notice-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-badge-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-partner-tag {
    background: rgba(0, 122, 130, 0.35);
    border: 1px solid var(--primary-border);
    color: #a5f3fc;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 11px;
}

/* Header */
.main-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-badge-logo {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.brand-title span {
    color: var(--accent);
}

.brand-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.brand-center-id {
    background: #e2f2f3;
    color: var(--primary-dark);
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 700;
}

/* Partner Tieup Logos in Header */
.header-partner-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.partner-logo-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
}

.partner-dot-healthians {
    color: #009688;
}

.partner-dot-thyrocare {
    color: #e11d48;
}

/* Header CTAs */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-call-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-full);
    transition: background-color 0.15s ease;
}

.btn-call-header:hover {
    background-color: #d1f0f2;
}

.btn-cart-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-cart-header:hover {
    background-color: #e2e8f0;
}

.cart-count-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(135deg, #0b2230 0%, #00565d 60%, #007a82 100%);
    color: #ffffff;
    padding: 40px 0 32px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-content h1 .highlight-text {
    color: #fca311;
    display: block;
}

.hero-hindi-tag {
    font-size: 16px;
    font-weight: 600;
    color: #e0f2fe;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-trust-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 24px;
}

.hero-bullet-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

/* Live Search Box */
.hero-search-card {
    background: #ffffff;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
}

.search-box-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-box-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-field {
    width: 100%;
    height: 52px;
    padding: 12px 16px 12px 46px;
    font-size: 15px;
    font-weight: 500;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.15s ease;
}

.search-input-field:focus {
    border-color: var(--primary);
}

.search-icon-svg {
    position: absolute;
    left: 14px;
    color: var(--ink-muted);
}

.quick-search-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.quick-tag-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-muted);
}

.quick-tag-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    background: var(--bg-alt);
    border-radius: var(--radius-full);
    color: var(--ink-secondary);
    cursor: pointer;
    border: 1px solid var(--border);
}

.quick-tag-pill:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Trust Bar */
.trust-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.trust-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.trust-feature-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-feature-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-feature-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.trust-feature-text p {
    font-size: 12px;
    color: var(--ink-muted);
}

/* Category Filter Strip */
.category-filter-strip {
    padding: 24px 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-scroll-wrapper {
    display: flex;
    gap: 10px;
    padding-bottom: 4px;
}

.cat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.cat-btn:hover {
    border-color: var(--primary-border);
    color: var(--primary-dark);
}

.cat-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Section Titles */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 28px 0 18px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.section-header p {
    font-size: 13px;
    color: var(--ink-muted);
    margin-top: 3px;
}

/* Diagnostic Test & Package Cards - Clean & Eye-Comfortable */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.test-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    transition: all 0.2s ease;
    position: relative;
}

.test-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.badge-partner-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: var(--ink-secondary);
}

.badge-partner-tag.healthians {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-partner-tag.thyrocare {
    background: #ffe4e6;
    color: #be123c;
}

.badge-discount-tag {
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
}

.test-card-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 8px;
}

.test-specs-line {
    font-size: 12px;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.test-specs-line span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-details-trigger {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-details-trigger:hover {
    text-decoration: underline;
}

.card-bottom-row {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-mrp {
    font-size: 11px;
    color: var(--ink-subtle);
    text-decoration: line-through;
}

.price-offer {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
}

.card-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Common Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    min-height: 42px;
}

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

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

.btn-accent {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--ink-secondary);
}

.btn-outline:hover {
    border-color: var(--ink-muted);
    background: var(--bg-alt);
}

.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff;
}

.btn-whatsapp:hover {
    background-color: #1ebc59;
}

.btn-details-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
}

/* Prescription Upload Banner */
.prescription-box {
    background: linear-gradient(135deg, #eef9f9 0%, #ffffff 100%);
    border: 2px dashed var(--primary-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    margin: 32px 0;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
}

.prescription-info h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.prescription-info p {
    font-size: 13px;
    color: var(--ink-secondary);
    margin-bottom: 12px;
}

/* Slide-over Drawer (Parameter view & Cart) */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 100;
    display: flex;
    justify-content: flex-end;
}

.drawer-panel {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-drawer);
    animation: drawerIn 0.25s ease-out;
}

@keyframes drawerIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

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

.drawer-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
}

.drawer-close-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-alt);
    color: var(--ink-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: #f8fafc;
}

/* Fasting Advisory Box */
.fasting-alert-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 13px;
    color: #92400e;
}

/* Cart Item Row */
.cart-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
}

.cart-item-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.cart-item-info p {
    font-size: 12px;
    color: var(--ink-muted);
}

.cart-item-remove-btn {
    color: var(--danger);
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Mobile Sticky Bottom Bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 40;
}

.mobile-call-btn, .mobile-wa-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-secondary);
    min-width: 48px;
}

.mobile-wa-btn {
    color: #128c7e;
}

.mobile-checkout-btn {
    flex: 1;
    background: var(--accent);
    color: #ffffff;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-weight: 800;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #e0f2fe; color: #0369a1; }
.status-assigned { background: #ede9fe; color: #5b21b6; }
.status-collected { background: #dbeafe; color: #1e40af; }
.status-processing { background: #fae8ff; color: #86198f; }
.status-ready { background: #dcfce7; color: #15803d; }
.status-completed { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* Responsive adjustments */
@media (min-width: 769px) {
    .mobile-bottom-bar {
        display: none;
    }
    body {
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero-content h1 {
        font-size: 26px;
    }
    .trust-features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .prescription-box {
        grid-template-columns: 1fr;
    }
    .header-partner-pills {
        display: none;
    }
}
