* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #333;
    overflow-x: hidden;
}

.mobile-container {
    max-width: 375px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #0066cc, #004499);
    color: white;
    padding: 44px 16px 16px;
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
}

.logo-section {
    width: 40px;
    height: 40px;
}

.logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    margin: 0 16px;
}

.header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Search Section */
.search-section {
    background: #ffffff;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.search-container {
    margin-bottom: 16px;
}

.search-input-container {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 16px;
    gap: 12px;
    position: relative;
}

.search-icon {
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
    color: #333;
}

.search-input::placeholder {
    color: #9ca3af;
}

.clear-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: none; /* Hidden by default */
    align-items: center;
}

.search-text {
    color: #0066cc;
    font-size: 16px;
    cursor: pointer;
    margin-left: 8px;
}

/* Search Options */
.search-options {
    display: flex;
    gap: 16px;
    justify-content: space-around;
}

.search-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.search-option.active {
    color: #0066cc;
}

.search-option:hover {
    background: #f8f9fa;
}

/* Content Section */
.content {
    padding: 16px;
    flex: 1;
    background: #ffffff;
}

.categories-header {
    margin-bottom: 16px;
}

.categories-header h2 {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product List */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
}

.product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background: #ffffff;
}

.product-item:hover {
    background-color: #f8f9fa;
}

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

.product-info h3 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.product-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.arrow-icon {
    flex-shrink: 0;
    margin-left: 12px;
}

/* Virtual Keyboard */
.keyboard {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 375px;
    background: #e5e7eb;
    padding: 8px 4px 20px;
    border-top: 1px solid #d1d5db;
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 6px;
}

.keyboard.show {
    display: flex;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.key {
    background: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 28px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #333;
}

.key:active {
    background: #f3f4f6;
    transform: scale(0.95);
}

.shift-key, .backspace-key {
    flex: 1.2;
    font-size: 18px;
}

.number-key {
    flex: 1.5;
    background: #9ca3af;
    color: white;
}

.space-key {
    flex: 3;
    font-size: 14px;
    color: #666;
}

.search-key {
    flex: 1.5;
    background: #0066cc;
    color: white;
    font-weight: 600;
}

/* Bottom Section */
.bottom-section {
    position: fixed;
    bottom: 260px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 375px;
    padding: 0 16px;
}

.bottom-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px 16px;
}

.bottom-icon {
    background: none;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.bottom-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.microphone {
    background: #f8f9fa;
}

/* Status Bar Simulation */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .mobile-container {
        max-width: 100%;
    }
    
    .keyboard {
        max-width: 100%;
    }
    
    .bottom-section {
        max-width: 100%;
    }
}

/* Animation for keyboard appearance */
.keyboard {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
    }
    to {
        transform: translateX(-50%) translateY(0);
    }
}

/* Focus states */
.search-input:focus {
    outline: none;
}

.search-input-container:focus-within {
    background: #f0f0f0;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

/* Remove dark mode since original design is light */
/* Clean light design only */

/* Yepy Recommendations Styles */
.yepy-recommendations {
    background: linear-gradient(135deg, #FFF5F2 0%, #FFE4DC 100%);
    border: 1px solid #FF6B35;
    border-radius: 12px;
    margin: 0 16px 16px 16px;
    padding: 16px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.yepy-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #FF6B35;
    font-size: 14px;
}

.value-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.value-badge {
    background: #FF6B35;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.discount-badge {
    background: #FF6B35;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.yepy-products {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    margin-bottom: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.yepy-products::-webkit-scrollbar {
    display: none;
}

.yepy-product-card {
    min-width: 200px;
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.yepy-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.yepy-product-card:active {
    transform: translateY(0);
}

.yepy-product-name {
    font-weight: 600;
    color: #1F2937;
    font-size: 14px;
    margin-bottom: 4px;
}

.yepy-product-condition {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 8px;
}

.yepy-product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.yepy-price {
    color: #FF6B35;
    font-weight: 600;
    font-size: 14px;
}

.yepy-value-prop {
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.yepy-original-price {
    text-decoration: line-through;
    color: #9CA3AF;
    font-size: 12px;
}

.yepy-discounted-price {
    color: #FF6B35;
    font-weight: 600;
    font-size: 14px;
}

.yepy-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

.yepy-description {
    font-size: 12px;
    color: #6B7280;
    font-style: italic;
}

.view-all-yepy {
    background: #FF6B35;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.view-all-yepy:hover {
    background: #E55A2B;
}

.view-all-yepy:active {
    transform: scale(0.95);
} 