/* --- Tazaj Mart 404 Page Custom Styles --- */

.error-404 {
    padding: 80px 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Header & Title */
.error-404 .page-header {
    margin-bottom: 40px;
}

.error-404 .page-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* 404 Visual (using pseudo-element) */
.error-404::before {
    content: "404";
    display: block;
    font-size: 120px;
    font-weight: 900;
    color: var(--mint-bg);
    line-height: 1;
    margin-bottom: -20px;
}

.error-404 .page-content p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Search Form Styling */
.error-404 .search-form {
    max-width: 500px;
    margin: 0 auto 60px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.error-404 .search-field {
    flex-grow: 1;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #f9fafb;
}

.error-404 .search-submit {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.error-404 .search-submit:hover {
    background: var(--accent-green);
}

/* Widget Layout (Categories, Popular Products, Archives) */
.error-404-widgets .widget-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
    margin-bottom: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
}

.error-404 .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.error-404 .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-green);
}

.error-404 .widget ul {
    list-style: none;
    padding: 0;
}

.error-404 .widget ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.error-404 .widget ul li:last-child {
    border-bottom: none;
}

.error-404 .widget ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.error-404 .widget ul li a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

/* Category Count Styling */
.error-404 .widget ul li .count {
    float: right;
    background: var(--mint-bg);
    color: var(--primary-green);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

/* Back to Home Action */
.error-404-actions .btn-primary {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(11, 62, 39, 0.1);
}

.error-404-actions .btn-primary:hover {
    background: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(11, 62, 39, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .error-404 .page-title {
        font-size: 30px;
    }

    .error-404::before {
        font-size: 80px;
    }

    .error-404 .search-form {
        flex-direction: column;
    }

    .error-404 .search-submit {
        padding: 14px;
    }

    .error-404-widgets .widget-area {
        text-align: center;
    }

    .error-404 .widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}