/* 404 Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: #f8f9fa;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-link {
    color: #92c23b;
    text-decoration: none;
    font-weight: 600;
}

.phone-link:hover {
    color: #7eab2c;
}

.delivery-text {
    color: #666;
}

.navbar {
    padding: 1rem 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #3c5242;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #92c23b;
}

.nav-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-icon {
    color: #3c5242;
    text-decoration: none;
    font-size: 1.2rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-icon:hover {
    color: #92c23b;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #92c23b;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #3c5242;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid #eee;
    padding: 1rem 0;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: #3c5242;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu a:hover {
    color: #92c23b;
}

/* Main Content */
.main-content {
    min-height: 70vh;
    padding: 4rem 0;
}

.error-container {
    text-align: center;
    margin-bottom: 4rem;
}

.error-icon {
    margin-bottom: 2rem;
}

.error-number {
    font-size: 8rem;
    font-weight: 700;
    color: #92c23b;
    display: block;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(146, 194, 59, 0.3);
}

.error-title {
    font-size: 2.5rem;
    color: #3c5242;
    margin-bottom: 1rem;
    font-weight: 700;
}

.error-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #92c23b;
    color: white;
    border: 2px solid #92c23b;
}

.btn-primary:hover {
    background: #7eab2c;
    border-color: #7eab2c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: #92c23b;
    border: 2px solid #92c23b;
}

.btn-secondary:hover {
    background: #92c23b;
    color: white;
    transform: translateY(-2px);
}

/* Search Section */
.search-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    text-align: center;
}

.search-section h3 {
    color: #3c5242;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #92c23b;
}

.search-box button {
    padding: 1rem 2rem;
    background: #92c23b;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #7eab2c;
}

/* Popular Products */
.popular-products {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.popular-products h3 {
    color: #3c5242;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(146, 194, 59, 0.2);
    border-color: #92c23b;
}

.product-card img {
    width: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3c5242;
    margin-bottom: 1rem;
}

.product-price {
    color: #28a745;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.product-btn {
    background: #92c23b;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.product-btn:hover {
    background: #7eab2c;
}



/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .error-number {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input, .search-box button {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .error-number {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.75rem;
    }
    
    .search-section, .popular-products {
        padding: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}