/**
 * Custom 404 Module CSS
 */

/* Override theme enforced styles on the 404 page */
#pagenotfound .page-not-found,
#pagenotfound .page-content.page-not-found,
#products .page-not-found {
    border: none !important;
    background: transparent !important;
    max-width: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.cc-custom404-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    text-align: left;
    border-radius: 12px;
    max-width: 900px;
    overflow: hidden;
}

.cc-custom404-content {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 2rem;
}

.cc-custom404-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.cc-custom404-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.cc-custom404-search-wrapper {
    width: 100%;
    max-width: 400px;
    margin-bottom: 2rem;
}

.cc-custom404-contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

.cc-custom404-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.5s ease-in-out;
}

.cc-custom404-btn:hover {
    /* Flat design: no transform or shadow */
}

.cc-custom404-btn.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: #fff;
}

.cc-custom404-btn.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    color: #fff;
}

.cc-custom404-btn.btn-email {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.cc-custom404-btn.btn-email:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

.cc-custom404-image {
    flex: 0 0 40%;
    display: flex;
    min-height: 300px;
}

.cc-custom404-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .cc-custom404-container {
        flex-direction: column-reverse;
    }

    .cc-custom404-content {
        padding: 2rem 1rem;
    }

    .cc-custom404-image {
        flex: 0 0 auto;
        min-height: auto;
        max-height: 200px;
        width: 100%;
        justify-content: center;
    }

    .cc-custom404-image img {
        width: auto;
        max-width: 80%;
        height: auto;
        max-height: 200px;
        object-fit: contain;
        margin: 0 auto;
    }

    .cc-custom404-title {
        font-size: 2rem;
    }
}