:root {
    --flute-primary: #FFFFFF;
    --flute-accent: #FF5A5A; /* Updated to match dashboard red/pink */
    --flute-accent-dark: #E04848;
    --flute-bg: #FFFFFF;
    --flute-secondary-bg: #F3F4F6;
    --flute-text: #111827;
    --flute-text-muted: #9CA3AF;
    --flute-radius: 24px;
    --flute-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif; /* Updated font */
    background-color: #F9FAFB;
    color: var(--flute-text);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* App Wrapper */
.flute-app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--flute-primary);
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.03);
    padding-bottom: 120px;
}

/* Header */
.flute-home-header {
    padding: 24px;
    padding-top: 40px;
}

.flute-hero {
    background: linear-gradient(135deg, #FF5A5A 0%, #FF8C8C 100%);
    border-radius: 32px;
    padding: 40px 24px;
    color: white;
    box-shadow: 0 20px 40px -10px rgba(255, 90, 90, 0.3);
    margin-bottom: 24px;
}

.flute-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 24px 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

.flute-btn-light {
    display: inline-block;
    background: white;
    color: var(--flute-accent);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.flute-btn-light:active { transform: scale(0.95); }

.flute-search-wrapper {
    position: relative;
    color: #9CA3AF;
}

.flute-search-wrapper.mt-4 { margin-top: 16px; }

.flute-search-wrapper svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.flute-input {
    width: 100%;
    background: var(--flute-secondary-bg);
    border: 2px solid transparent;
    padding: 16px 16px 16px 52px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    color: var(--flute-text);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.flute-input:focus {
    background: white;
    border-color: #E5E7EB;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Section */
.flute-section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px 16px 24px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.section-header a {
    font-size: 13px;
    font-weight: 700;
    color: var(--flute-accent);
    text-decoration: none;
}

/* Categories */
.flute-categories {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 24px;
    scroll-padding: 0 24px;
}

.cat-pill {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 50px;
    color: #4B5563;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.cat-pill.active {
    background: var(--flute-text);
    color: white;
    border-color: var(--flute-text);
}

/* Carousel */
.flute-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 24px;
    scroll-snap-type: x mandatory;
}

/* Store Card */
.flute-store-card {
    min-width: 150px;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
}

.flute-store-card .store-img {
    width: 150px;
    height: 150px;
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.flute-store-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.flute-store-card .store-info h3 {
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 2px 0;
}

.flute-store-card .store-info p {
    font-size: 12px;
    color: #9CA3AF;
    margin: 0;
    font-weight: 500;
}

/* Grid & Products */
.flute-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 24px;
}

.flute-product-item {
    background: white;
    border-radius: 24px; /* Matches dashboard cards */
    overflow: hidden;
    position: relative;
    transition: transform 0.2s;
    border: 1px solid #F3F4F6;
}

.product-thumb {
    position: relative;
    aspect-ratio: 1/1;
    background: #F9FAFB;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    color: #D1D5DB;
    transition: all 0.2s;
}

.wishlist-btn.active { color: var(--flute-accent); }
.wishlist-btn:hover { transform: scale(1.1); }

.product-info {
    padding: 16px;
}

.product-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.product-info .price {
    font-size: 13px;
    font-weight: 800;
    color: var(--flute-accent);
}

.product-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Navigation */
.flute-bottom-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 360px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 8px;
    z-index: 1000;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    text-decoration: none !important;
    padding: 12px 0;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--flute-accent);
    background: rgba(255, 90, 90, 0.08);
}

.nav-icon { width: 22px; height: 22px; margin-bottom: 4px; }
.nav-item span { font-size: 10px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; }

/* Utilities */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.flute-btn {
    display: inline-flex;
    align-items: center;
    background: var(--flute-text);
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}
.flute-btn:active { transform: scale(0.96); }
.empty-state { text-align: center; color: #9CA3AF; padding: 20px; width: 100%; font-size: 14px; }