/* Flipkart-Style Navbar and Category Section */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #212121;
    background-color: #f1f3f6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Header Section */
.top-header {
    background: #2874f0;
    color: white;
    padding: 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -1px;
}

.tagline {
    font-size: 11px;
    color: #f0f0f0;
    margin-top: -2px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tagline::before {
    content: "★";
    color: #ffc107;
    font-size: 10px;
}

/* Search Section */
.search-section {
    flex: 1;
    max-width: 500px;
}

.search-container {
    display: flex;
    background: white;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 36px;
}

.search-input {
    flex: 1;
    padding: 0 16px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #212121;
    height: 100%;
}

.search-input::placeholder {
    color: #878787;
}

.search-btn {
    background: #2874f0;
    border: none;
    padding: 0 20px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #1a5bb8;
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.action-link:hover {
    color: #ffc107;
}

.action-link i {
    font-size: 14px;
}

.action-link span {
    font-size: 16px;
}

/* Category Navigation */
.category-nav {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-items {
    display: flex;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: #2874f0 #f1f1f1;
}

.category-items::-webkit-scrollbar {
    height: 4px;
}

.category-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.category-items::-webkit-scrollbar-thumb {
    background: #2874f0;
    border-radius: 2px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #212121;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 80px;
    text-align: center;
    position: relative;
}

.category-item:hover {
    background-color: #f5f5f5;
    color: #2874f0;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.category-item:hover .category-icon {
    transform: scale(1.05);
}

.category-icon i {
    font-size: 18px;
    color: white;
}

.category-item span {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
        padding: 16px 0;
    }
    
    .search-section {
        max-width: 100%;
        width: 100%;
    }
    
    .user-actions {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .action-link {
        padding: 6px 8px;
        font-size: 14px;
    }
    
    .category-items {
        gap: 16px;
        padding: 8px 0;
    }
    
    .category-item {
        min-width: 60px;
        padding: 6px 8px;
    }
    
    .category-icon {
        width: 32px;
        height: 32px;
    }
    
    .category-icon i {
        font-size: 14px;
    }
    
    .category-item span {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .tagline {
        font-size: 10px;
    }
    
    .user-actions {
        gap: 8px;
    }
    
    .action-link {
        padding: 4px 6px;
        font-size: 12px;
    }
    
    .action-link span {
        display: none;
    }
    
    .category-items {
        gap: 12px;
    }
    
    .category-item {
        min-width: 50px;
        padding: 4px 6px;
    }
    
    .category-icon {
        width: 28px;
        height: 28px;
    }
    
    .category-icon i {
        font-size: 12px;
    }
    
    .category-item span {
        font-size: 9px;
    }
}

/* Animation for smooth transitions */
.category-item {
    transition: all 0.3s ease;
}

.category-icon {
    transition: all 0.3s ease;
}

.action-link {
    transition: all 0.3s ease;
}

/* Hover effects */
.category-item:hover .category-icon {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.action-link:hover {
    transform: translateY(-1px);
}

/* Focus states for accessibility */
.search-input:focus {
    box-shadow: 0 0 0 2px #2874f0;
}

.action-link:focus {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

.category-item:focus {
    outline: 2px solid #2874f0;
    outline-offset: 2px;
}
