:root {
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --primary: #1e3a8a;
    --primary-light: #eff6ff;
    --border-color: #e5e7eb;
    --input-bg: #ffffff;
    --nav-bg: #f3f4f6;
    --success: #059669;
    --cart-bg: #f9fafb;
    --payment-box-bg: #fff;
    --bottom-nav-bg: #ffffff;
}

[data-theme="dark"] {
    --bg-color: #111827;
    --card-bg: #1f2937;
    --text-color: #f9fafb;
    --text-muted: #9ca3af;
    --primary: #3b82f6;
    --primary-light: #374151;
    --border-color: #374151;
    --input-bg: #111827;
    --nav-bg: #111827;
    --success: #34d399;
    --cart-bg: #111827;
    --payment-box-bg: #1f2937;
    --bottom-nav-bg: #1f2937;
}

* {
    margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body {
    background-color: var(--bg-color); color: var(--text-color);
    min-height: 100vh; display: flexbox; justify-content: center; align-items: center;
    padding-bottom: 80px;
}

.top-action-bar {
    position: absolute; top: 15px; width: 100%; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center; z-index: 20;
}

.top-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-users {
    background: rgba(0, 0, 0, 0.4); color: white; padding: 5px 12px;
    border-radius: 20px; font-size: 0.8rem; display: flex; align-items: center; gap: 6px;
    backdrop-filter: blur(5px);
}

.pulse-dot {
    width: 8px; height: 8px; background: #34d399; border-radius: 50%;
    box-shadow: 0 0 8px #34d399; animation: pulse 1.5s infinite;
}
@keyframes pulse { 0% {opacity: 1;} 50% {opacity: 0.4;} 100% {opacity: 1;} }

.theme-toggle {
    background: rgba(255, 255, 255, 0.2); border: none; font-size: 1.2rem;
    cursor: pointer; padding: 6px 10px; border-radius: 50%; backdrop-filter: blur(5px);
}

.hero-bg {
    width: 100%; height: 260px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    position: relative; padding: 60px 20px 20px; text-align: center; color: #ffffff;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316, #22c55e);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.logo-text {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-points {
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 12px;
}
.point-badge {
    background: rgba(255, 255, 255, 0.15); padding: 4px 10px;
    border-radius: 12px; font-size: 0.8rem; font-weight: 500;
}

.hero-overlay-text h1 {
    font-size: clamp(2.3rem, 6vw, 4.2rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cart-fab {
    position: fixed; bottom: 85px; right: 20px;
    background: var(--card-bg); color: var(--text-color);
    border: 2px solid var(--primary); padding: 12px 18px; border-radius: 25px;
    font-weight: 600; font-size: 1rem; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 100;
    display: flex; align-items: center; gap: 8px;
}
.badge { background: #ef4444; color: white; padding: 1px 8px; border-radius: 12px; font-size: 0.8rem; }

/* Center the main container block (UPDATED) */
.main-container {
    width: 95%; 
    max-width: 850px; 
    background: var(--card-bg);
    border-radius: 24px; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    /* THIS IS THE FIX: 'auto' on left and right centers it */
    margin: -40px auto 20px auto; 
    padding: 24px; 
    position: relative; 
    z-index: 10; 
}

.brand-title { font-size: 1.5rem; color: var(--primary); text-align: center; font-weight: 600; }
.subtitle { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-bottom: 20px; }

.category-nav {
    display: flex; gap: 8px; background: var(--nav-bg); padding: 6px; border-radius: 14px; margin-bottom: 4px;
}
.nav-btn {
    flex: 1; background: transparent; border: none; padding: 10px 6px;
    color: var(--text-muted); border-radius: 10px; cursor: pointer; font-weight: 500;
}
.nav-btn.active { background: var(--card-bg); color: var(--primary); font-weight: 600; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.tab-content { display: none; }
.tab-content.active { display: block; }
.mt-15 { margin-top: 15px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-color); margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 10px;
    background: var(--input-bg); color: var(--text-color); outline: none; font-size: 0.9rem;
}
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-group-row { flex-direction: row; }
.radio-label {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    background: var(--cart-bg); padding: 10px; border-radius: 8px; border: 1px solid var(--border-color); flex: 1;
}

.price-estimator { background: var(--primary-light); padding: 12px; border-radius: 10px; color: var(--primary); text-align: center; margin-bottom: 14px; font-weight: 600; }
.btn-primary, .btn-checkout { width: 100%; padding: 14px; border-radius: 12px; font-weight: 600; cursor: pointer; border: none; color: #fff; font-size: 0.95rem; }
.btn-primary { background: var(--primary); }
.btn-checkout { background: #25d366; margin-top: 15px; }
.btn-back { background: none; border: none; color: var(--text-muted); margin-bottom: 15px; cursor: pointer; font-weight: 600; font-size: 0.9rem; }

/* Cart & Payment UI */
.cart-items-list { background: var(--cart-bg); border-radius: 12px; padding: 14px; border: 1px solid var(--border-color); }
.cart-item-card {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}
.cart-item-card:last-child { border-bottom: none; }
.cart-item-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}
.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cart-image-btn {
    padding: 0;
    cursor: zoom-in;
    border: 1px solid var(--border-color);
}
.cart-image-btn img {
    width: 100%;
    height: 100%;
}
.cart-xerox-thumb {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    font-size: 1.2rem;
}
.cart-item-details { min-width: 0; }
.cart-item-title { font-size: 0.95rem; font-weight: 700; color: var(--text-color); }
.cart-item-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }
.cart-price-breakdown {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--text-color);
}
.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.cart-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-step-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}
.cart-qty-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
}
.remove-item-btn { color: #ef4444; background: none; border: none; font-weight: bold; cursor: pointer; margin-left: 8px; }
.cart-summary-box { margin-top: 12px; padding: 14px; background: var(--primary-light); border-radius: 10px; border: 1px solid var(--border-color); }
.summary-line { display: flex; justify-content: space-between; font-weight: 600; color: var(--primary); }
.payment-box { background: var(--payment-box-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 16px; }
.qr-title { text-align: center; color: var(--primary); margin-bottom: 8px; }
.qr-container { display: flex; flex-direction: column; align-items: center; margin: 20px 0; }
.online-payment-panel, .offline-payment-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.upi-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.upi-row .qr-title { margin-bottom: 0; }
.copy-upi-btn {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--primary);
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.copy-upi-btn:active { transform: translateY(1px); }
.payment-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.45;
    border: 1px dashed var(--border-color);
    max-width: 320px;
}
.payment-note-highlight {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary);
    font-weight: 700;
}
.scan-to-pay-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 8px;
}
.offline-payment-panel {
    min-height: 260px;
    justify-content: center;
}
.offline-empty-qr {
    width: 100%;
    max-width: 360px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, var(--card-bg), var(--primary-light));
    border: 1px dashed var(--border-color);
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.offline-empty-qr-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    font-weight: 700;
}
.offline-empty-qr h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 8px;
}
.offline-empty-qr p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
}
.mock-qr { width: 160px; background: white; border: 2px solid #374151; border-radius: 12px; padding: 12px; text-align: center; }
.qr-code-square { width: 132px; height: 132px; background: #374151; margin: 0 auto 8px auto; }

/* Search Input Styling */
.search-bar-wrapper {
    width: 100%;
    margin-bottom: 16px;
}
.search-bar-input {
    margin-top: 5%;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-color);
    outline: none;
    font-size: 1rem;
}
.no-results-msg {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 20px 0;
}

/* =========================================
   NEW LANDING PAGE STYLES & GLASSY UI
   ========================================= */

/* View Manager (UPDATED) */
/* Ensure the views span the full width of the body */
.view-section { 
    display: none; 
    width: 100%; 
}
.active-view { 
    display: block; 
    width: 100%; 
    animation: fadeIn 0.4s ease; 
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Glassy Top Navigation for Landing Page */
.glassy-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
}
[data-theme="dark"] .glassy-nav {
    background: rgba(17, 24, 39, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.glassy-nav-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}
.glassy-nav-links {
    display: flex;
    gap: 20px;
}
.glassy-nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.glassy-nav-links a:hover { color: var(--primary); }

/* Landing Hero Section */
.landing-hero {
    margin-top: 80px;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-color) 100%);
}
.landing-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 15px;
}
.landing-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Portal Buttons */
.portal-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}
.portal-btn {
    width: 100%;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.portal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.stationery-btn { 
    padding:26px; }
.portal-icon { font-size: 1.8rem; }
.portal-text small { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }

/* Information Section */
.landing-info-section {
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
    text-align: left;
}
.info-card h3 { color: var(--primary); margin-bottom: 10px; }
.info-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

@media (min-width: 768px) {
    .portal-buttons { flex-direction: row; max-width: 600px; }
    .landing-info-section { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================
   MOBILE CART BADGE FIXES & CART IMAGES
   ========================================= */
/* --- DIRECT UPI APP PAYMENT STYLES (ROUND ICONS) --- */
.direct-pay-apps {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.direct-pay-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.app-buttons-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.pay-app-btn {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    width: 70px; /* Fixed width to keep text centered neatly */
}

.pay-app-btn:active {
    transform: scale(0.92);
}

.app-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%; /* Makes the container a perfect circle */
    background: var(--card-bg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
    font-weight: 800; /* For the fallback letter */
    font-size: 1.2rem;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the logo fills the round circle */
}

.pay-app-btn span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    line-height: 1.2;
}

.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    margin: 20px 0 10px;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider-text span {
    padding: 0 10px;
}

/* Mobile Responsiveness for tight screens */
@media (max-width: 380px) {
    .app-buttons-grid {
        gap: 12px;
    }
    .app-icon {
        width: 48px;
        height: 48px;
    }
    .pay-app-btn span {
        font-size: 0.7rem;
    }
}
.nav-icon-wrapper {
    position: relative;
    display: inline-block;
}
.mobile-badge {
    position: absolute;
    top: -12px; right: -12px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 800rem;
    padding: 1px 8px 1px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styling for missing images in cart */
.cart-fallback-icon {
    font-size: 2rem;
    color: var(--text-muted);
}

/* Responsive Cart adjustments */
@media (max-width: 649px) {
    .cart-fab {
        display: none !important; /* Shifting floating cart flow exclusively into the bottom navigation option bar */
    }
}

/* Feedback Section */
.feedback-card { background: var(--cart-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 18px; }
.social-links-box { margin-top: 24px; text-align: center; border-top: 1px dashed var(--border-color); padding-top: 16px; }
.social-links-box p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.social-btn-row { display: flex; flex-direction: column; gap: 10px; }
.social-btn { display: block; padding: 10px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 0.85rem; }
.wa-link { background: #dcf8c6; color: #075e54; }
.insta-link { background: #fce7f3; color: #9d174d; }

/* Modal */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 1000; justify-content: center; align-items: center;
    backdrop-filter: blur(3px);
}
.modal.show {
    display: flex;
}
.modal-content {
    background: var(--card-bg); color: var(--text-color); padding: 24px; border-radius: 20px;
    text-align: center; width: 85%; max-width: 380px; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.profile-modal {
    padding: 18px;
}
.profile-choice-content,
.profile-auth-content {
    width: min(92vw, 520px);
    text-align: left;
    border-radius: 24px;
    position: relative;
    animation: modalRise 0.28s ease-out;
}
.profile-modal-header {
    margin-bottom: 18px;
}
.profile-modal-header h2 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-top: 8px;
    margin-bottom: 6px;
}
.profile-modal-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.profile-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
}
.profile-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.profile-choice-card {
    border: 1px solid var(--border-color);
    background: var(--cart-bg);
    color: var(--text-color);
    border-radius: 16px;
    padding: 14px;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 92px;
}
.profile-choice-card strong {
    font-size: 0.95rem;
}
.profile-choice-card span {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.35;
}
.guest-choice {
    background: linear-gradient(180deg, var(--primary-light), var(--card-bg));
}
.profile-skip-btn {
    width: 100%;
    margin-top: 14px;
    border: none;
    background: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    padding: 8px;
}
.profile-auth-content .form-group input,
.profile-auth-content .form-group select {
    border-radius: 12px;
}
.auth-extra-field {
    display: block;
}
.profile-auth-content .btn-primary {
    margin-top: 4px;
}
.profile-mode-switch {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}
.image-preview-modal {
    padding: 20px;
}
.image-preview-modal .modal-content {
    position: relative;
    max-width: 520px;
    padding: 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), var(--card-bg));
}
.image-preview-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.close-preview-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-color);
    font-size: 1.4rem;
    cursor: pointer;
}
.preview-image {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 18px;
    background: var(--cart-bg);
    border: 1px solid var(--border-color);
}
.preview-caption h3 {
    font-size: 1rem;
    color: var(--text-color);
    text-align: center;
}
.countdown-circle {
    width: 50px; height: 50px; border-radius: 50%; background: var(--primary-light);
    color: var(--primary); font-size: 1.3rem; font-weight: bold;
    display: flex; justify-content: center; align-items: center; margin: 16px auto;
}

/* Footer & Bottom Nav */
.app-footer-note { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: auto; padding: 10px 0 20px; }
.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; background: var(--bottom-nav-bg);
    display: flex; justify-content: space-around; padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 50; border-top: 1px solid var(--border-color);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.bottom-nav-item {
    background: transparent; border: none; display: flex; flex-direction: column;
    align-items: center; color: var(--text-muted); cursor: pointer; gap: 4px; font-family: 'Poppins', sans-serif;
}
.bottom-nav-item.active { color: var(--primary); font-weight: 600; }
.bottom-nav-item span { font-size: 1.2rem; }

@media(min-width: 650px) {
    .radio-group { flex-direction: row; }
    .mobile-bottom-nav { display: none; }
    body { padding-bottom: 20px; }
    .cart-fab { bottom: 30px; }
    .social-btn-row { flex-direction: row; justify-content: center; }
}

@media (max-width: 649px) {
    .cart-item-card {
        grid-template-columns: 64px 1fr;
        align-items: start;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .cart-item-thumb {
        width: 60px;
        height: 60px;
    }

    .image-preview-modal {
        padding: 12px;
    }

    .image-preview-modal .modal-content {
        max-width: 92vw;
        padding: 12px;
        border-radius: 18px;
    }

    .preview-image {
        max-height: 240px;
        border-radius: 14px;
    }

}

@keyframes modalRise {
    from {
        transform: translateY(12px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
/* Scrolling Banner Styles */
.scrolling-banner {
    width: 100%;
    color: white;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    z-index: 50;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.3s;
}
.scrolling-banner.open {
    background: linear-gradient(to right, #006866f9, #06ab06ce);/* Default Red for closed/loading */
}
.scrolling-banner {
    background: linear-gradient(to right, #bd0000f9, #d68000ce);/* Default Red for closed/loading */
}
.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 25s linear infinite;
    padding-left: 100%; /* Start off-screen right */
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Adjust top action bar since banner is above it */
.top-action-bar {
    position: absolute; top: 45px; width: 100%; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center; z-index: 20;
}
.hero-bg {
    padding: 70px 20px 20px; /* added top padding to push content down */
}

/* Custom QR Image Styles */
.custom-qr-wrapper {
    width: 200px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.custom-qr-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

@media (max-width: 649px) {
    .site-logo {
        padding: 7px 12px;
    }

    .hero-overlay-text h1 {
        font-size: clamp(2rem, 9vw, 2.9rem);
    }

    .logo-text {
        font-size: 0.8rem;
    }

    .copy-upi-btn {
        width: 100%;
        max-width: 110px;
    }

    .cart-stepper {
        gap: 6px;
    }

    .cart-step-btn {
        width: 28px;
        height: 28px;
    }
}

/* --- NEW PRODUCT CARD DESIGN --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    background: var(--card-bg);
    cursor: pointer;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border: 1px solid var(--primary);
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.img-container {
    position: relative;
    background: var(--input-bg);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    margin-bottom: 12px;
}

.img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.add-btn {
    position: absolute;
    bottom: -10px;
    right: 10px;
    background: #0a5f59; /* Add button green */
    color: white;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pill {
    display: inline-block;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    width: max-content;
}

.pricing {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.price {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-color);
}

.old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 12px;
}

/* --- MOBILE BOTTOM SHEET (MODAL) --- */
.overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: 0.3s; z-index: 1000;
}
.overlay.active { opacity: 1; visibility: visible; }

.bottom-sheet {
    position: fixed; bottom: -100%; left: 0; width: 100%;
    background: var(--card-bg); color: var(--text-color);
    border-radius: 20px 20px 0 0; z-index: 1001;
    transition: bottom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; flex-direction: column; max-height: 90vh;
}
.bottom-sheet.active { bottom: 0; }

@media (min-width: 600px) {
    .bottom-sheet {
        width: 400px; left: 50%; transform: translateX(-50%);
        border-radius: 20px; bottom: auto; top: 50%; margin-top: -20px;
        opacity: 0; visibility: hidden; transition: 0.3s;
    }
    .bottom-sheet.active { top: 50%; transform: translate(-50%, -50%); opacity: 1; visibility: visible; }
}

.sheet-header { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.close-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-color); padding: 0; }
.sheet-content { overflow-y: auto; padding: 0 20px 100px 20px; }
.sheet-img-wrapper { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }
.sheet-img-wrapper img { width: 100%; max-width: 250px; height: 180px; object-fit: contain; }
.dots { display: flex; gap: 6px; margin-top: 16px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-color); }
.dot.active { background: var(--primary); }

.meta-row { display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.meta-row .rating { color: #0c831f; }
.explore-link { display: block; color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.sheet-title { font-size: 20px; font-weight: 700; margin: 0 0 6px 0; line-height: 1.3; }
.sheet-qty { color: var(--text-muted); font-size: 14px; margin: 0 0 20px 0; }

.sheet-footer {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: var(--card-bg); padding: 16px 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    display: flex; justify-content: space-between; align-items: center;
    border-radius: 0 0 20px 20px; border-top: 1px solid var(--border-color);
}
.footer-price-info { display: flex; flex-direction: column; }
.footer-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.discount-text { color: #0c831f; }
.add-to-cart-btn {
    background: var(--primary); color: #fff; border: none;
    border-radius: 8px; padding: 14px 32px; font-size: 14px; font-weight: 700; cursor: pointer;
}

/* Sticky Search Bar */
.sticky-search {
    position: sticky;
    top: -24px; /* Pulls it up nicely against the container padding */
    z-index: 90;
    background: var(--card-bg);
    padding: 10px 0 15px 0;
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.3s ease, border-bottom 0.3s;
}

/* Add a subtle shadow when scrolling past the search bar */
.sticky-search.is-pinned {
    box-shadow: 0 4px 10px -4px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border-color);
}

.hide-bottom-nav {
    transform: translateY(100%);
}

/* Bottom Sheet Dynamic Quantity Stepper */
.sheet-stepper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-light);
    border-radius: 12px;
    padding: 6px;
    border: 1px solid var(--primary);
}

.sheet-stepper .cart-step-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    background: var(--card-bg);
    border-color: var(--border-color);
}

.sheet-stepper .cart-qty-pill {
    font-size: 0.9rem;
    padding: 4px 8px;
}

/* Very Small Mobile Fixes (The Setup Fix) - APPENDED HERE */
@media (max-width: 480px) {
    .product-grid {
        /* Forces exactly 2 equal items side-by-side without overflowing */
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
        gap: 10px;
    }
    
    .main-container {
        padding: 12px; /* Reduced padding gives more room for the dual cards */
        width: 96%;
        margin-top: -30px; /* Slightly less overlap on mobile */
    }
    
    .product-title {
        font-size: 12px;
    }
    
    .price {
        font-size: 14px;
    }
    
    .img-container {
        height: 100px;
        padding: 8px;
    }
    
    /* Make the add button slightly smaller to fit nicely */
    .add-btn {
        width: 30px;
        height: 30px;
        font-size: 20px;
        bottom: -8px;
        right: 8px;
    }
}
/* --- NAVIGATION MENU UPDATES --- */

/* Ensure the links are centered vertically on desktop */
.glassy-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
}

/* Mobile View Adjustments */
@media (max-width: 768px) {
    /* Show the hamburger icon */
    .mobile-menu-btn {
        display: block;
    }
    
    /* Hide the standard flex row by default and style as a dropdown */
    .glassy-nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 60px; /* Drops down just below the nav bar */
        left: 0;
        width: 100%;
        background: var(--card-bg); /* Solid background for readability */
        padding: 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        border-bottom: 1px solid var(--border-color);
        z-index: 99; /* Ensure it stays above other content */
    }

    /* Class added by JavaScript to show the menu */
    .glassy-nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    /* Make mobile links highly tappable */
    .glassy-nav-links a {
        font-size: 1.1rem;
        padding: 12px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Center the theme toggle in mobile view */
    .theme-toggle {
        margin-top: 15px;
        align-self: center;
        width: 45px;
        height: 45px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
/* Xerox Pre-loaded Forms Divider */
.section-divider {
    margin: 35px 0 20px;
    text-align: center;
    border-top: 2px dashed var(--border-color);
    padding-top: 25px;
}
.section-divider h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 6px;
    font-weight: 700;
}
.section-divider p {
    font-size: 0.85rem;
    color: var(--text-muted);
}