/* Matulsi Variety Store - Flipkart-inspired Clean Grocery UI */
:root {
    --fk-blue: #2874f0;
    --fk-blue-dark: #1c5bc4;
    --fk-yellow: #ffe500;
    --fk-orange: #fb641b;
    --fk-green: #388e3c;
    --bg-light: #f1f3f6;
    --text-dark: #212121;
    --text-muted: #878787;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* Flipkart Style Top Navbar */
.fk-navbar {
    background: linear-gradient(90deg, #1b65d6 0%, #2874f0 100%);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.brand-logo {
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff !important;
    line-height: 1.1;
    text-decoration: none;
}

.brand-sub {
    font-size: 0.72rem;
    font-style: italic;
    color: #ffe500;
    display: block;
    font-weight: 600;
}

/* Flipkart Live Search Bar & Dropdown */
.search-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 620px;
}

.fk-search-input {
    border-radius: 4px 0 0 4px;
    border: none;
    height: 40px;
    padding-left: 16px;
    font-size: 0.92rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fk-search-input:focus {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    outline: none;
}

.fk-search-btn {
    background: #fff;
    color: var(--fk-blue);
    border: none;
    border-radius: 0 4px 4px 0;
    height: 40px;
    padding: 0 16px;
    font-weight: 600;
}

.search-suggestions {
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    z-index: 1050;
    max-height: 360px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
}

.suggestion-item:hover {
    background: #f5f8ff;
}

.suggestion-item img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}

/* Category Strip */
.category-bar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    white-space: nowrap;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.cat-pill:hover, .cat-pill.active {
    color: var(--fk-blue);
    border-bottom-color: var(--fk-blue);
    background: #f7faff;
}

/* Product Cards */
.product-card {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ececec;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.product-img-box {
    height: 175px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #fafafa;
    border-radius: 6px 6px 0 0;
}

.product-img-box img {
    max-height: 150px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.badge-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--fk-green);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
}

.wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fff;
    border: 1px solid #eee;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdbdbd;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.wishlist-btn.active {
    color: #ff4343;
}

.rating-pill {
    background: var(--fk-green);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.btn-fk-cart {
    background: #ff9f00;
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-fk-cart:hover {
    background: #f39700;
    color: #fff;
}

.btn-fk-buy {
    background: var(--fk-orange);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 0.95rem;
}

.btn-fk-buy:hover {
    background: #e55712;
    color: #fff;
}

/* FamPay Box */
.fampay-card {
    background: linear-gradient(135deg, #141414 0%, #262626 100%);
    color: #fff;
    border-radius: 10px;
    padding: 18px;
    border: 2px solid #f5a623;
}

.fampay-badge {
    background: #f5a623;
    color: #000;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #25d366;
    color: #fff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    z-index: 1040;
    text-decoration: none;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    color: #fff;
}

/* Admin Sidebar */
.admin-sidebar {
    background: #172337;
    min-height: 100vh;
    color: #fff;
}

.admin-nav-link {
    color: #cfd8dc;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    font-weight: 500;
}

.admin-nav-link:hover, .admin-nav-link.active {
    background: #2874f0;
    color: #fff;
}
