:root {
    --app-blue: #007aff;
    --app-bg: #f2f2f7;
    --app-card: #ffffff;
    --app-text: #1c1c1e;
    --app-text-dim: #8e8e93;
    --app-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

body {
    background-color: var(--app-bg);
    color: var(--app-text);
    font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* System Bar */
.system-bar {
    height: 44px;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0; width: 100%;
    z-index: 10001;
}

/* App Header & Search */
.app-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 50px 15px 15px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.app-search {
    background: #f2f2f7;
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-search input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    font-weight: 500;
}

/* Horizontal Category Bubbles */
.category-scroll {
    display: flex;
    gap: 20px;
    padding: 140px 20px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    background: #fff;
}

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

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
    text-decoration: none;
    color: var(--app-text);
}

.cat-icon {
    width: 55px;
    height: 55px;
    background: var(--app-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--app-blue);
    border: 1px solid rgba(0,0,0,0.03);
}

/* App-Style Promotional Banner */
.promo-banner {
    margin: 15px;
    border-radius: 20px;
    height: 180px;
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 25px;
    color: white;
}

.promo-img {
    position: absolute;
    right: -20px;
    bottom: -10px;
    height: 120%;
    opacity: 0.8;
}

/* 2-Column Product Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 15px 120px;
}

.app-product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--app-shadow);
}

.prod-img-wrap {
    height: 180px;
    background: #f9f9f9;
    position: relative;
}

.prod-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.prod-info {
    padding: 12px;
}

.prod-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.prod-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--app-text);
    margin-top: 8px;
}

/* Floating App Dock */
.app-dock {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 400px;
    height: 75px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    border-radius: 35px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    z-index: 10000;
    border: 1px solid rgba(255,255,255,0.5);
}

.dock-item {
    text-decoration: none;
    color: var(--app-text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
}

.dock-item i { font-size: 24px; margin-bottom: 4px; }
.dock-item.active { color: var(--app-blue); }

/* Badge Utilities */
.verified-badge {
    background: rgba(0,122,255,0.1);
    color: var(--app-blue);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    display: inline-block;
}

/* List Styles (For Profile/Settings) */
.app-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5ea;
    text-decoration: none;
    color: inherit;
}

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

.list-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

/* App Widget (Harmonized) */
.app-widget {
    background: var(--ios-card);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--app-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0,0,0,0.02);
}

.widget-full { grid-column: span 2; }

.widget-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 20px;
    color: white;
}

.ios-badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.badge-green { background: rgba(52, 199, 89, 0.1); color: var(--ios-green); }

.fw-800 { font-weight: 800 !important; }
.text-dim { color: var(--app-text-dim) !important; }

.app-card {
    background: var(--app-card);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--app-shadow);
    border: 1px solid rgba(0,0,0,0.02);
}
