/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Mobile Wrapper View Strategy (Looks like App on Desktop, Native on Mobile) */
.top-header, .content-container, .bottom-nav {
    width: 100%;
    max-width: 480px; /* Standard Mobile View width for VS Code preview */
    background-color: #fff;
}

/* ==================== TOP HEADER ==================== */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #72838d;
    color: #ffffff;
    position: fixed;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-text {
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    display: inline-block;
}
.logo-text small {
    font-size: 9px;
    letter-spacing: 1px;
}

.header-action {
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 4px 12px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==================== CONTAINER & TABS SYSTEM ==================== */
.content-container {
    margin-top: 50px; /* Header spacing */
    margin-bottom: 60px; /* Footer spacing */
    min-height: calc(100vh - 110px);
    background-color: #f4f5f7;
}

.app-section {
    display: none; /* Hide all by default */
}

.app-section.active {
    display: block; /* Show only active tab */
}

/* ==================== HOME PAGE ==================== */
.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 2-Column Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.product-img {
    background-color: #fff;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.product-details {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.product-title {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.product-price {
    font-size: 13px;
    font-weight: bold;
    color: #d19553; /* Match the exact golden brown price text */
}

/* ==================== SEARCH PAGE ==================== */
.welcome-header {
    text-align: center;
    padding: 20px 10px 10px 10px;
    background-color: #fff;
}

.welcome-header h2 {
    color: #1a237e; /* Royal Blue Welcome Text */
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.welcome-header p {
    color: #888;
    font-size: 11px;
}

#searchPage .product-grid {
    margin-top: 5px;
}

/* ==================== LOGIN PAGE (MY) ==================== */
.login-nav-bar {
    background-color: #2979ff; /* Solid Blue header for Login */
    color: white;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
}

.back-icon {
    margin-right: 10px;
    cursor: pointer;
}

.login-container {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Rounded Input Fields */
.input-group {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 18px;
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 25px; /* Perfect oval inputs from reference image */
    background-color: #fff;
    font-size: 14px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
}

/* Login Button */
.btn-login {
    width: 65%;
    background-color: #2979ff;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Action Links buttons (Register / Forget Password) */
.login-actions {
    width: 100%;
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.btn-action-link {
    background-color: #fff;
    border: 1px solid #eaeaea;
    padding: 10px 20px;
    border-radius: 20px; /* Capsule buttons */
    font-size: 14px;
    color: #000;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    min-width: 110px;
}

/* ==================== BOTTOM FIXED NAVIGATION ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #ffffff;
    padding: 8px 0;
    border-top: 1px solid #e0e0e0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    font-size: 11px;
    cursor: pointer;
    flex: 1;
}

.nav-item .material-icons-outlined {
    font-size: 22px;
    margin-bottom: 2px;
}

/* Active State for Nav Items */
.nav-item.active {
    color: #2979ff; /* Turns blue when active */
}