/* Matulsi Variety Store - Flipkart Grocery (Kilos) App-Like UI */
:root {
    --fk-yellow-header: #fff2b2;
    --fk-yellow-pill: #ffe500;
    --fk-green: #0f8a3c;
    --fk-green-light: #e6f6ec;
    --fk-blue: #2874f0;
    --fk-border: #e6e8ec;
    --bg-page: #f4f5f7;
    --text-dark: #1f2328;
    --text-muted: #6e7781;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-page);
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, sans-serif;
    padding-bottom: 84px; /* space for floating bottom pill nav */
    margin: 0;
    overflow-x: hidden;
}

/* Warm Cream/Yellow Flipkart Grocery Header */
.kilos-header {
    background: linear-gradient(180deg, #ffea8a 0%, #fff6cc 100%);
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 10px 14px 12px;
    border-bottom: 1px solid #f0dfa0;
}

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

.kilos-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1a1a1a;
}

.kilos-logo-badge {
    background: #187a3c;
    color: #ffe500;
    font-weight: 900;
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.kilos-title {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.1;
}

.kilos-sub {
    font-size: 0.72rem;
    color: #555;
    display: block;
}

/* Rounded Pill Search Bar */
.kilos-search-wrap {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.kilos-search-box {
    display: flex;
    align-items: center;
    background: #fffdf5;
    border: 1.5px solid #bfa14a;
    border-radius: 14px;
    height: 44px;
    padding: 0 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.kilos-search-box i.bi-search {
    color: #7c6728;
    font-size: 1.1rem;
    margin-right: 10px;
}

.kilos-search-input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.94rem;
    color: #222;
    outline: none;
}

.kilos-search-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
    font-size: 1.15rem;
    cursor: pointer;
}

.search-suggestions {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.16);
    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;
}

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

.suggestion-item img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    margin-right: 10px;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.section-title {
    font-size: 1.12rem;
    font-weight: 800;
    margin: 0;
    color: #18181b;
}

.section-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.circle-arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #18181b;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Horizontal Scroll Shelf (Flipkart Kilos Home Screen) */
.kilos-shelf {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.kilos-shelf::-webkit-scrollbar { display: none; }

/* Compact Kilos Product Tile (Home Shelf & Grid) */
.kilos-tile {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eceef2;
    padding: 8px;
    min-width: 142px;
    max-width: 156px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kilos-grid-tile {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eceef2;
    padding: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tile-img-wrap {
    position: relative;
    height: 105px;
    background: #fafafa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    margin-bottom: 6px;
}

.tile-img-wrap img {
    max-height: 92px;
    max-width: 100%;
    object-fit: contain;
}

.discount-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--fk-green);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px 0 10px 0;
}

.rating-overlay {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: #fff;
    border: 1px solid #e4e6eb;
    border-radius: 6px;
    padding: 1px 5px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #1f2328;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.rating-overlay i {
    color: var(--fk-green);
}

/* White Square '+' Button & Green Counter Stepper */
.plus-add-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff;
    border: 1.5px solid #a87c32;
    color: #5c3d0c;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    cursor: pointer;
    padding: 0;
}

.qty-stepper-pill {
    position: absolute;
    bottom: 4px;
    right: 4px;
    height: 30px;
    background: var(--fk-green);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 7px;
    font-weight: 800;
    font-size: 0.82rem;
    box-shadow: 0 2px 6px rgba(15,138,60,0.3);
}

.qty-stepper-pill button {
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 900;
    padding: 0 2px;
    line-height: 1;
}

.unit-chip {
    display: inline-block;
    background: #f1f3f5;
    color: #495057;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.tile-title {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    color: #1f2328;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
    margin-bottom: 6px;
}

/* Yellow Price Pill + Strike MRP */
.kilos-price-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.kilos-price-pill {
    background: var(--fk-yellow-pill);
    color: #111;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 2px 7px;
    border-radius: 6px;
}

.kilos-mrp-pill {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #868e96;
    text-decoration: line-through;
    font-size: 0.72rem;
    padding: 1px 5px;
    border-radius: 5px;
}

/* Blue 4-Tile Category Banner (Screenshot 32816/32817) */
.blue-cat-banner {
    background: linear-gradient(180deg, #9dd3ff 0%, #c8e7ff 100%);
    border-radius: 14px;
    padding: 10px;
}

.blue-cat-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blue-cat-card img {
    width: 100%;
    height: 62px;
    object-fit: cover;
}

.blue-cat-label {
    background: #0077cc;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 3px;
    line-height: 1.15;
}

/* Categories Tab - Grouped 4-Column Lavender Cards (Screenshot 32818) */
.cat-group-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 14px 0 10px;
    color: #18181b;
}

.lavender-cat-item {
    text-align: center;
    cursor: pointer;
}

.lavender-cat-box {
    background: #f3e8ff;
    border: 1.5px solid #d8b4fe;
    border-radius: 14px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    margin-bottom: 5px;
}

.lavender-cat-box img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}

.lavender-cat-name {
    font-size: 0.73rem;
    font-weight: 600;
    color: #222;
    line-height: 1.2;
}

/* Top Picks Full-Width Row Card (Screenshot 32819) */
.top-pick-row {
    background: #fff;
    border-bottom: 1px solid #eceef2;
    padding: 14px 12px;
    display: flex;
    gap: 12px;
}

.top-pick-left {
    width: 108px;
    flex-shrink: 0;
    position: relative;
}

.top-pick-img-box {
    position: relative;
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 8px;
    padding: 4px;
}

.top-pick-img-box img {
    max-height: 95px;
    max-width: 100%;
    object-fit: contain;
}

.veg-dot-icon {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--fk-green);
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
}

.veg-dot-icon span {
    width: 8px;
    height: 8px;
    background: var(--fk-green);
    border-radius: 50%;
}

.top-pick-right {
    flex-grow: 1;
}

.top-pick-brand {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.top-pick-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1f2328;
    line-height: 1.3;
    margin-bottom: 6px;
}

.top-pick-pack-box {
    background: #f1f3f5;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    display: inline-block;
    min-width: 125px;
}

.kilos-tag-price {
    background: var(--fk-yellow-pill);
    border-radius: 6px;
    padding: 2px 8px;
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.kilos-tag-price small {
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: -0.2px;
}

.kilos-tag-price strong {
    font-size: 0.92rem;
    font-weight: 800;
}

.btn-kilos-outline-add {
    width: 100%;
    max-width: 195px;
    background: #fff;
    border: 1.5px solid #a87c32;
    color: #5c3d0c;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    padding: 6px 14px;
    margin-top: 8px;
}

.btn-kilos-outline-add:hover {
    background: #fff9e6;
}

/* Floating Bottom Pill Navigation Bar (Home, Categories, Top Picks, Basket) */
.kilos-bottom-nav {
    position: fixed;
    bottom: 10px;
    left: 12px;
    right: 12px;
    max-width: 540px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.16);
    border: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 5px;
    z-index: 1045;
}

.kilos-nav-btn {
    border: none;
    background: transparent;
    border-radius: 32px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 0.72rem;
    font-weight: 600;
    position: relative;
    transition: all 0.2s;
}

.kilos-nav-btn i {
    font-size: 1.22rem;
    margin-bottom: 1px;
}

.kilos-nav-btn.active {
    background: #e9ecef;
    color: var(--fk-green);
    font-weight: 800;
}

.basket-count-dot {
    position: absolute;
    top: 3px;
    right: 24%;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

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

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

/* 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;
}


/* Product Detail Sheet / Modal Styling */
.detail-hero-box {
    background: #fafafa;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    position: relative;
    border: 1px solid #eceef2;
}

.detail-hero-box img {
    max-height: 230px;
    max-width: 100%;
    object-fit: contain;
}

.spec-card-box {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eceef2;
    padding: 12px;
    margin-top: 10px;
}

.order-row-card {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: box-shadow 0.15s;
}

.order-row-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
