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

body {
    font-family: 'Arial', sans-serif;
    background-color: #eaeded;
    color: #0f1111;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background-color: #131921;
    color: white;
    padding: 0 10px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    max-width: 1500px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h2 {
    color: #ff9900;
    font-size: 24px;
    font-weight: bold;
}

.delivery-location {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    cursor: pointer;
}

.delivery-to {
    color: #cccccc;
}

.location {
    font-weight: bold;
    color: white;
}

/* Search Box */
.search-box {
    display: flex;
    width: 100%;
    max-width: 800px;
    margin: 0 20px;
}

.search-category {
    background: #f3f3f3;
    border: none;
    border-radius: 4px 0 0 4px;
    padding: 0 10px;
    border-right: 1px solid #ddd;
    cursor: pointer;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background: #febd69;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #f3a847;
}

/* Navigation Items */
.nav-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
}

.nav-item span {
    font-size: 12px;
    color: #cccccc;
}

.nav-item strong {
    font-size: 14px;
    font-weight: bold;
}

.cart {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -5px;
    left: 20px;
    background: #ff9900;
    color: black;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* User Greeting Styles */
.user-greeting {
    color: #ff9900 !important;
    font-weight: bold;
}

/* Secondary Navigation */
.secondary-nav {
    background: #232f3e;
    padding: 10px 20px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
}

.secondary-nav a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.secondary-nav a:hover {
    background: rgba(255,255,255,0.1);
    border: 1px solid white;
}

/* Hero Section */
.hero {
    margin-bottom: 20px;
    position: relative;
}

.hero-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.cta-button {
    background: #ff9900;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #e68900;
}

/* Categories Section */
.categories {
    max-width: 1500px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.categories h2 {
    margin-bottom: 20px;
    color: #0f1111;
    font-size: 28px;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.category-card h3 {
    color: #0f1111;
    font-size: 18px;
}

/* Featured Products */
.featured-products {
    max-width: 1500px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.featured-products h2 {
    margin-bottom: 20px;
    color: #0f1111;
    font-size: 28px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
}

.product-card h3 {
    color: #0f1111;
    font-size: 16px;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.rating {
    color: #ffa41c;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating span {
    color: #007185;
    font-size: 14px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #b12704;
    margin: 10px 0;
}

.shipping {
    color: #565959;
    font-size: 14px;
    margin-bottom: 15px;
}

.add-to-cart {
    background: #ffd814;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background 0.3s ease;
    font-weight: bold;
}

.add-to-cart:hover {
    background: #f7ca00;
}

/* Login Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #000;
}

.modal-content h2 {
    color: #131921;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #0f1111;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 0 2px rgba(255,153,0,0.2);
}

#loginForm button {
    width: 100%;
    background: #f0c14b;
    border: 1px solid #a88734;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

#loginForm button:hover {
    background: #e7b42e;
}

.demo-accounts {
    margin-top: 20px;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 4px;
    font-size: 14px;
    border-left: 4px solid #ff9900;
}

.demo-accounts p {
    margin: 5px 0;
    color: #666;
}

.demo-accounts strong {
    color: #0f1111;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 60px;
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
    display: none;
    animation: slideDown 0.2s ease;
}

.dropdown-content {
    padding: 15px;
}

.dropdown-content p {
    margin-bottom: 10px;
    color: #0f1111;
    font-weight: bold;
}

.dropdown-item {
    display: block;
    padding: 8px 0;
    color: #0066c0;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.dropdown-item:hover {
    color: #c45500;
    text-decoration: underline;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

/* Footer */
.footer {
    background: #232f3e;
    color: white;
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 20px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 16px;
}

.footer-section a {
    display: block;
    color: #dddddd;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff9900;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3a4553;
    color: #999;
    font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateX(100%);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from { 
        opacity: 1;
        transform: translateX(0);
    }
    to { 
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .nav-left, .nav-center, .nav-right {
        width: 100%;
        justify-content: center;
    }
    
    .search-box {
        max-width: 100%;
        margin: 10px 0;
    }
    
    .hero-slider {
        height: 300px;
    }
    
    .slide-content h1 {
        font-size: 2em;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .dropdown-menu {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .secondary-nav {
        padding: 10px;
        justify-content: flex-start;
    }
    
    .slide-content h1 {
        font-size: 1.5em;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 20px;
    }
    
    .nav-item {
        padding: 5px;
    }
    
    .logo h2 {
        font-size: 20px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error States */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}
