/* VendorSathi Premium Shared CSS Design System - Stripe / Paytm style */
:root {
    --primary-color: #012852;
    --primary-gradient: linear-gradient(135deg, #012852 0%, #033d7d 100%);
    --secondary-color: #428B12;
    --secondary-gradient: linear-gradient(135deg, #428B12 0%, #57aa1e 100%);
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #94a3b8;
    --gray-600: #475569;
    --success: #428B12;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --border-radius-sm: 12px;
    --border-radius-md: 20px;
    --border-radius-lg: 28px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 40px rgba(10, 37, 64, 0.08);
}

html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
    position: relative;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    margin: 0;
    padding-bottom: 85px; /* space for fixed bottom navigation bar */
    font-size: 15px;
    -webkit-tap-highlight-color: transparent;
}

/* 1. APP HEADERS & CONTAINERS */
.app-header {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-title {
    font-weight: 700;
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0px;
    color: var(--white);
    text-decoration: none;
}

.app-title span {
    color: var(--secondary-color);
}

.header-back-link {
    color: var(--white);
    font-size: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: var(--transition);
}

.header-back-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.header-page-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--white);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
}

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.city-badge {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.city-badge:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.bell-icon {
    font-size: 20px;
    color: var(--white);
    cursor: pointer;
    position: relative;
    padding: 5px;
    transition: var(--transition);
}

.bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
}

/* 2. SHARED PREMIUM COMPONENTS */
.premium-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: var(--shadow-md);
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.premium-card:hover {
    box-shadow: var(--shadow-lg);
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 15px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title span {
    position: relative;
    padding-bottom: 4px;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 5px;
}

/* Custom form elements */
.form-control-custom {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(1, 39, 81, 0.1);
    outline: none;
}

.btn-custom {
    background: var(--primary-gradient);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(1, 39, 81, 0.15);
}

.btn-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(1, 39, 81, 0.25);
    color: var(--white);
}

.btn-custom:disabled {
    background: var(--gray-500);
    box-shadow: none;
    transform: none;
}

/* 3. FIXED BOTTOM NAVIGATION BAR */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--white);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    z-index: 998;
    border-top: 1px solid var(--gray-100);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    flex: 1;
    position: relative;
}

.bottom-nav-item i {
    font-size: 18px;
    margin-bottom: 4px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-item:active i {
    transform: scale(0.8);
}

.bottom-nav-item.active {
    color: var(--primary-color) !important;
}

.bottom-nav-item.active i {
    transform: translateY(-2px) scale(1.1);
}

.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 4px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: activeDotPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes activeDotPop {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.bottom-nav-item.scan-item {
    position: relative;
    top: -24px;
    background: var(--secondary-gradient);
    color: var(--white) !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(66, 139, 18, 0.25);
    border: 4px solid var(--light-color);
    flex: none;
}

.bottom-nav-item.scan-item i {
    font-size: 20px;
    margin-bottom: 0;
}

/* 4. ONBOARDING: SPLASH & INTRO */
.onboarding-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--white);
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

/* Splash style */
#onboarding-splash {
    background: var(--primary-gradient);
    justify-content: center;
    align-items: center;
    color: var(--white);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.splash-logo {
    font-size: 40px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.splash-logo i {
    font-size: 60px;
    color: var(--secondary-color);
    animation: pulseLogo 2s infinite;
}

.splash-logo span {
    color: var(--secondary-color);
}

.splash-tagline {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes pulseLogo {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

/* Swipe Intro slides styling */
#onboarding-intro {
    background: linear-gradient(180deg, rgba(67, 139, 18, 0.05) 0%, rgba(1, 39, 81, 0.02) 40%, var(--white) 100%) !important;
}

.intro-carousel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

.intro-slide {
    text-align: center;
    display: none;
    animation: slideFadeIn 0.4s ease;
}

.intro-slide.active {
    display: block;
}

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

.intro-icon-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    margin: 0 auto 35px;
    border: 1px solid rgba(1, 39, 81, 0.06);
    box-shadow: 0 15px 35px rgba(1, 39, 81, 0.08);
}

.intro-slide:nth-child(1) .intro-icon-container {
    color: var(--primary-color);
    background: radial-gradient(circle, #ffffff 60%, rgba(1, 39, 81, 0.04) 100%);
    border-color: rgba(1, 39, 81, 0.08);
}

.intro-slide:nth-child(2) .intro-icon-container {
    color: var(--secondary-color);
    background: radial-gradient(circle, #ffffff 60%, rgba(67, 139, 18, 0.04) 100%);
    border-color: rgba(67, 139, 18, 0.08);
}

.intro-slide:nth-child(3) .intro-icon-container {
    color: var(--primary-color);
    background: radial-gradient(circle, #ffffff 60%, rgba(1, 39, 81, 0.04) 100%);
    border-color: rgba(1, 39, 81, 0.08);
}

.intro-title {
    font-weight: 700;
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.intro-desc {
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto;
    font-weight: 400;
}

.intro-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.intro-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--gray-200);
    transition: var(--transition);
}

.intro-dot.active {
    width: 24px;
    border-radius: 10px;
    background-color: var(--secondary-color);
}

.intro-footer {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#btn-intro-next {
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(1, 39, 81, 0.15);
}

/* 5. PERMISSION SYSTEM & LOGIN */
.permission-header {
    text-align: center;
    padding: 40px 30px 20px;
}

.permission-title {
    font-weight: 700;
    font-size: 22px;
    color: var(--primary-color);
}

.permission-list {
    padding: 0 20px;
    flex: 1;
}

.permission-item {
    background-color: var(--white);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 15px;
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.permission-item.granted {
    border-color: rgba(40, 167, 69, 0.2);
    background-color: rgba(40, 167, 69, 0.02);
}

.permission-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background-color: var(--gray-50);
    color: var(--primary-color);
}

.permission-item-details {
    flex: 1;
}

.permission-item-name {
    font-weight: 600;
    font-size: 13px;
}

.permission-item-desc {
    font-size: 11px;
    color: var(--gray-600);
    margin-top: 1px;
}

.permission-item-btn {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
}

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

.permission-item-btn.granted-badge {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

/* 6. MAIN DASHBOARD ELEMENT FEEDS */
.slider-container {
    padding: 15px;
}

.hero-swiper {
    width: 100%;
    height: 160px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.hero-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.hero-swiper .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
    opacity: 1 !important;
    width: 16px;
    border-radius: 10px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 15px;
}

.category-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--white);
    padding: 12px 6px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.01);
    cursor: pointer;
    transition: var(--transition);
}

.category-grid-item:hover {
    transform: translateY(-1px);
    border-color: rgba(67,139,18,0.2);
}

.category-grid-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(67, 139, 18, 0.06);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 6px;
}

.category-grid-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.2;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    padding: 5px 15px 15px;
    gap: 10px;
    scroll-behavior: smooth;
}

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

.scroll-pill {
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(67, 139, 18, 0.1) 0%, rgba(1, 39, 81, 0.05) 100%);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(1, 39, 81, 0.15);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.scroll-pill i {
    color: var(--secondary-color);
    transition: var(--transition);
}

.scroll-pill:hover {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.scroll-pill:hover i {
    color: var(--white) !important;
}

/* Sticky header wrapper for unified scrolling */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: var(--primary-gradient);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sticky-header-wrapper .app-header {
    position: static !important;
    box-shadow: none !important;
}

.sticky-header-wrapper .search-header-container {
    position: static !important;
    box-shadow: none !important;
    margin-top: 0 !important;
}

.search-header-container {
    background: var(--primary-gradient);
    padding: 5px 20px 15px;
    position: sticky;
    top: 57px;
    z-index: 1010;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    margin-top: -1px;
}

.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background-color: var(--white);
    border-radius: 16px;
    margin-top: 8px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1050;
    border: 1px solid rgba(1, 39, 81, 0.08);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-50);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: var(--gray-50);
}

.suggestion-item img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #eee;
}

.suggestion-item-info {
    flex-grow: 1;
    min-width: 0;
}

.suggestion-item-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--dark-color);
    margin-bottom: 2px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.suggestion-item-meta {
    font-size: 11px;
    color: var(--gray-600);
}

.search-bar-custom {
    background-color: var(--white);
    border-radius: 12px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
    cursor: pointer;
}

.search-bar-custom input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
}

.search-bar-custom i {
    color: var(--gray-600);
}

/* 7. WALLET THEME */
.wallet-card {
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(1, 40, 82, 0.18);
}

.wallet-card::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background-color: rgba(255,255,255,0.04);
    border-radius: 50%;
    top: -30px;
    right: -30px;
}

.wallet-balance-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wallet-balance-amount {
    font-size: 32px;
    font-weight: 700;
    margin: 8px 0 20px;
}

.wallet-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.wallet-stat-val {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-top: 2px;
}

/* 8. SEARCH TAB LAYOUT */
.search-layout {
    display: flex;
    height: calc(100vh - 180px);
}

.search-sidebar {
    width: 85px;
    background-color: var(--white);
    border-right: 1px solid var(--gray-100);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.search-sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.sidebar-cat-pill {
    padding: 15px 5px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-50);
    color: var(--gray-600);
    transition: var(--transition);
}

.sidebar-cat-pill.active {
    background-color: var(--light-color);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.search-results-area {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* 9. NOTIFICATIONS log */
.notif-item {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(67, 139, 18, 0.1);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notif-details {
    flex: 1;
}

.notif-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.notif-desc {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.4;
}

.notif-time {
    font-size: 10px;
    color: var(--gray-500);
    margin-top: 6px;
}

/* 10. PROFILE VIEW */
.profile-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.profile-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
}

.profile-phone {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 2px;
}

.profile-menu {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.01);
}

.profile-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:hover {
    background-color: var(--gray-50);
}

.profile-menu-item.logout {
    color: var(--danger);
}

/* RESPONSIVE LOGO HELPER CLASSES */
.header-logo {
    height: 28px;
    max-height: 100%;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
}

.splash-logo-img {
    max-width: 85%;
    height: auto;
    max-height: 155px; /* Premium vertical brand logo resolution scaling */
    object-fit: contain;
    display: block;
    margin: 0 auto 15px;
}

.login-logo-img {
    max-width: 75%;
    height: auto;
    max-height: 80px; /* Highly visible horizontal brand logo */
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
}

.splash-footer {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 11px;
    opacity: 0.65;
    color: var(--white);
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* Skeleton Shimmer Loading styles */
@keyframes shimmer {
    0% {
        background-position: -450px 0;
    }
    100% {
        background-position: 450px 0;
    }
}

.shimmer-bg {
    background: linear-gradient(to right, #ececec 8%, #f4f4f4 18%, #ececec 33%);
    background-size: 800px 104px;
    animation: shimmer 1.2s ease-in-out infinite;
}

/* Skeleton Category Grid Item */
.skeleton-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    width: 25%;
    flex-shrink: 0;
}
.skeleton-category-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
.skeleton-category-text {
    width: 50px;
    height: 10px;
    border-radius: 4px;
    margin-top: 8px;
}

/* Skeleton Shop Card */
.skeleton-shop-card {
    background: var(--white);
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 15px;
}
.skeleton-shop-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    flex-shrink: 0;
}
.skeleton-shop-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
.skeleton-shop-title {
    width: 60%;
    height: 14px;
    border-radius: 4px;
}
.skeleton-shop-subtitle {
    width: 40%;
    height: 10px;
    border-radius: 4px;
}
.skeleton-shop-badge {
    width: 25%;
    height: 12px;
    border-radius: 4px;
}

/* Skeleton Product Card */
.skeleton-product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
}
.skeleton-product-img {
    width: 100%;
    height: 120px;
}
.skeleton-product-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.skeleton-product-title {
    width: 80%;
    height: 12px;
    border-radius: 4px;
}
.skeleton-product-price {
    width: 40%;
    height: 12px;
    border-radius: 4px;
}

/* Loyalty Level Badge Gradients */
.bg-bronze {
    background: linear-gradient(135deg, #cd7f32, #a0522d) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}
.bg-silver {
    background: linear-gradient(135deg, #a3b1c6, #6b7c96) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}
.bg-gold {
    background: linear-gradient(135deg, #ffe259, #ffa751) !important;
    color: #333333 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}
.bg-platinum {
    background: linear-gradient(135deg, #e5e9f0, #a3b1c6) !important;
    color: #1a1a1a !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

#home-brands-list .swiper-slide {
    width: auto !important;
}

/* ----------------------------------------------------
   PREMIUM CUSTOMER DASHBOARD ELEVATION (WOW FACTOR)
---------------------------------------------------- */

/* Header & Search Bar Enhancements */
.app-header,
.sticky-header-wrapper,
.search-header-container {
    background: var(--primary-color) !important;
    border-bottom: none !important;
}

.search-header-container {
    padding: 0px 20px 18px !important;
}

.search-bar-custom {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.search-bar-custom:focus-within {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 8px 30px rgba(66, 139, 18, 0.25) !important;
    transform: scale(1.01);
}

/* Section Header Styling */
.section-title {
    font-size: 15px !important;
    letter-spacing: 0.3px;
    margin: 24px 16px 14px !important;
}

.section-title span::after {
    width: 32px !important;
    height: 4px !important;
    border-radius: 10px !important;
}

/* Featured Vendors Cards Elevate */
.featured-vendors-swiper .card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.featured-vendors-swiper .card:active {
    transform: scale(0.96) !important;
}

.featured-vendors-swiper .card img {
    transition: transform 0.5s ease;
}

.featured-vendors-swiper .card:hover img {
    transform: scale(1.04);
}

/* Featured Products Cards Elevate */
.featured-products-swiper .card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.featured-products-swiper .card:active {
    transform: scale(0.96) !important;
}

.featured-products-swiper .card img {
    transition: transform 0.5s ease;
}

.featured-products-swiper .card:hover img {
    transform: scale(1.04);
}

/* Trending & Offer Products Grid Cards Elevate */
#home-trending-products .card,
#home-offer-products .card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

#home-trending-products .card:active,
#home-offer-products .card:active {
    transform: scale(0.96) !important;
}

#home-trending-products .card img,
#home-offer-products .card img {
    transition: transform 0.5s ease;
}

#home-trending-products .card:hover img,
#home-offer-products .card:hover img {
    transform: scale(1.04);
}

/* Bottom Nav FAB scan-item Pulsing Effect */
.bottom-nav-item.scan-item {
    animation: scanPulse 2s infinite alternate;
}

@keyframes scanPulse {
    0% {
        box-shadow: 0 4px 12px rgba(66, 139, 18, 0.3);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 8px 24px rgba(66, 139, 18, 0.6);
        transform: scale(1.05);
    }
}

/* Quick Floating Action button active state */
.bottom-nav-item:active {
    opacity: 0.7;
}

/* Highlighted background wrapper for Featured Vendors */
.featured-vendors-section-wrapper {
    background-color: #f1f5fa; /* Premium light grayish-blue highlight */
    border-top: 1.5px solid rgba(1, 39, 81, 0.04);
    border-bottom: 1.5px solid rgba(1, 39, 81, 0.04);
}

/* Secondary Promo Banner Swiper Custom Styles */
.promo-banner-swiper {
    width: 100%;
    height: 120px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.promo-banner-swiper .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
}

.promo-banner-swiper .swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
    opacity: 1 !important;
    width: 16px;
    border-radius: 10px;
}

/* Margins and padding breathing space adjustments for congested sections */
.featured-vendors-swiper {
    padding-top: 8px !important;
    padding-bottom: 20px !important;
}

.featured-products-swiper {
    padding-top: 8px !important;
    padding-bottom: 20px !important;
}

.featured-vendors-section-wrapper {
    padding-top: 18px !important;
    padding-bottom: 12px !important;
}

/* Premium Dashboard Entrance Animations (Wow factor) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-container,
.brands-swiper,
.categories-grid,
.featured-vendors-section-wrapper,
#home-featured-products-swiper,
#home-trending-products,
.hero-brand-section-wrapper {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-brand-section-wrapper { animation-delay: 0.05s; }
.categories-grid { animation-delay: 0.15s; }
.featured-vendors-section-wrapper { animation-delay: 0.2s; }
#home-featured-products-swiper { animation-delay: 0.25s; }
#home-trending-products { animation-delay: 0.3s; }

/* Hero & Brands Section Wrapper style with bottom opacity fade */
.hero-brand-section-wrapper {
    background: linear-gradient(180deg, #f1f5fa 0%, #f1f5fa 75%, rgba(241, 245, 250, 0) 100%) !important;
    padding-top: 15px;
    padding-bottom: 5px;
    position: relative;
}

/* Reduce spacing between Hero/Brands and Categories section */
.hero-brand-section-wrapper + .section-title {
    margin-top: 10px !important;
}

/* Premium Featured Store Card Highlights */
.featured-store-card {
    border: 1px solid rgba(1, 39, 81, 0.05) !important;
    box-shadow: 0 4px 15px rgba(1, 39, 81, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.featured-store-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(1, 39, 81, 0.08) !important;
    border-color: rgba(66, 139, 18, 0.2) !important;
}

.featured-store-card:hover img {
    transform: scale(1.05);
}

/* Add #eee border to all cards to prevent blending with background */
.card,
.premium-card,
.category-grid-item,
.premium-login-card {
    border: 1px solid #eeeeee !important;
}

/* Correct featured store card hover border override */
.featured-store-card:hover {
    border-color: rgba(66, 139, 18, 0.25) !important;
}

/* Premium Explore Categories Gradient Button Animation */
.btn-explore-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #034b8c 50%, var(--secondary-color) 100%) !important;
    background-size: 200% auto !important;
    color: var(--white) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(1, 39, 81, 0.15) !important;
    transition: all 0.5s ease-in-out !important;
    animation: gradientPulse 3s infinite alternate !important;
}

.btn-explore-gradient:hover {
    background-position: right center !important;
    box-shadow: 0 6px 20px rgba(66, 139, 18, 0.25) !important;
    transform: scale(1.03) !important;
}

@keyframes gradientPulse {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* Sliding Bottom Sheet Modal Styles */
.modal-dialog-bottom-sheet {
    position: fixed !important;
    bottom: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 420px !important; /* aligns with PWA max width */
    left: 50% !important;
    transform: translateX(-50%) translateY(100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modal.show .modal-dialog-bottom-sheet {
    transform: translateX(-50%) translateY(0) !important;
}

.modal-dialog-bottom-sheet .modal-content {
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    box-shadow: 0 -8px 32px rgba(1, 39, 81, 0.15) !important;
}

/* Full Screen Product Detail Modal Styles */
.modal-product-detail-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 420px !important; /* aligns with PWA max width */
    height: 100% !important;
}

.modal-product-detail-fullscreen .modal-content {
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.modal-product-detail-fullscreen .modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding-bottom: 85px !important; /* leaves exact padding for fixed footer below */
}

.modal-product-detail-fullscreen .product-modal-footer {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: var(--white) !important;
    border-top: 1px solid #eeeeee !important;
    padding: 12px 16px !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05) !important;
    z-index: 1055 !important;
}

.modal-product-detail-fullscreen .product-modal-header {
    z-index: 1055 !important;
}

/* Premium Wallet Dashboard Action Cards Tinted Gradients */
.wallet-action-card-add {
    background: linear-gradient(135deg, rgba(66, 139, 18, 0.08) 0%, rgba(66, 139, 18, 0.01) 100%) !important;
    border: 1px solid rgba(66, 139, 18, 0.16) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.wallet-action-card-add:hover, .wallet-action-card-add:active {
    background: linear-gradient(135deg, rgba(66, 139, 18, 0.14) 0%, rgba(66, 139, 18, 0.03) 100%) !important;
    border-color: rgba(66, 139, 18, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(66, 139, 18, 0.06) !important;
}

.wallet-action-card-redeem {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 193, 7, 0.01) 100%) !important;
    border: 1px solid rgba(255, 193, 7, 0.16) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.wallet-action-card-redeem:hover, .wallet-action-card-redeem:active {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.14) 0%, rgba(255, 193, 7, 0.03) 100%) !important;
    border-color: rgba(255, 193, 7, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.06) !important;
}
