/* Import Components 404 Page */

@import url(../swiper-carousel.css);
@import url(../../css/components/btn-swiper.css);
@import url(../components/hero-general.css);
@import url(../components/most-popular-products.css);

/* Style 404 Page */

.error-page .hero-general {
    height: 400px;
}

.error-page .sec-products {
    margin-top: 50px;
}

.error-page .site-button {
    margin-top: 0;
}

.sec-error-content {
    width: 100%;
    height: auto;
    margin: 150px auto;
    position: relative;
    z-index: 5;
    margin-top: -212px;
}

.sec-error-content::before {
    content: "";
    background: url(../../media/image/svg/404-circle.svg) no-repeat center;
    background-size: cover;
    width: 70px;
    height: 70px;
    position: absolute;
    top: -20%;
    left: 75%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
    animation: errorFloat 4.5s ease-in-out infinite;
    opacity: 0.9;
}

@keyframes errorFloat {
    0% {
        transform: translateX(-50%) translateY(0) rotate(0deg) scale(1);
        opacity: 0.9;
    }
    25% {
        transform: translateX(-50%) translateY(-10px) rotate(6deg) scale(1.05);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(5px) rotate(0deg) scale(1.02);
        opacity: 0.95;
    }
    75% {
        transform: translateX(-50%) translateY(-8px) rotate(-6deg) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(0) rotate(0deg) scale(1);
        opacity: 0.9;
    }
}

.sec-error-content .wrap-error-image {
    width: 100%;
    max-width: 760px;
    height: 212px;
    position: relative;
    z-index: 0;
    margin-inline: auto;
    display: flex;
    align-items: end;
    justify-content: end;
}

.wrap-error-image::before {
    content: "";
    background: url(../../media/image/svg/404-cross.svg) no-repeat center;
    background-size: cover;
    width: 40px;
    height: 45px;
    position: absolute;
    top: -35%;
    left: 30%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
    animation: floatCross 3s ease-in-out infinite;
}

.wrap-error-image::after {
    content: "";
    background: url(../../media/image/svg/404-circle.svg) no-repeat center;
    background-size: cover;
    width: 35px;
    height: 35px;
    position: absolute;
    top: 50%;
    left: -10%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
    animation: floatCircle 4s ease-in-out infinite;
}

@keyframes floatCross {
    0% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
    50% {
        transform: translateX(-50%) translateY(-10px) rotate(8deg);
    }
    100% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
}

@keyframes floatCircle {
    0% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) translateX(6px) scale(1.1);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

.sec-error-content .wrap-error-text {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.wrap-error-text .error-title {
    font-size: clamp(26px , 2vw , 32px);
    font-weight: 600;
    color: #223558;
    text-align: center;
}

.wrap-error-text .error-masage {
    font-size: 16px;
    font-weight: 600;
    color: #223558;
    text-align: center;
}

.wrap-error-text .btn-back-page {
    background: #223558;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 600;
    padding: 16px;
    border-radius: 15px;
    margin-top: 20px;
}

.separator-sec {
    width: 100%;
    height: auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    margin-top: -290px;
}

.separator-sec img:nth-child(2) {
    display: none;
}

/* All Media Queris 404 Page */

@media screen and (max-width: 1200px) {
    .separator-sec {
        height: 200px;
        margin-top: -150px;
    }
    .error-page .sec-products {
        margin-top: 150px;
    }
}

@media screen and (max-width: 768px) {
    .error-page .sec-products {
        margin-top: 100px;
    }
    .separator-sec {
        margin-top: -100px;
    }
}

@media screen and (max-width: 992px) {
    .wrap-error-image::after {
        content: unset;
    }
    .sec-error-content::before {
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 600px) {
    .error-page .hero-general {
        height: 260px;
    }
    .wrap-error-image::before ,
    .sec-error-content::before {
        top: 0;
    }
    .wrap-error-image::before {
        width: 30px;
        height: 31px;
    }
    .sec-error-content::before {
        width: 40px;
        height: 40px;
    }
    .separator-sec {
        margin-top: -180px;
    }
    .separator-sec img:nth-child(1) {
        display: none;
    }
    .separator-sec img:nth-child(2) {
        display: block;
    }
}

@media screen and (max-width: 500px) {
    .wrap-error-image::before ,
    .sec-error-content::before {
        top: 30px;
    }
    .separator-sec {
        margin-top: -50px;
    }
    .sec-error-content {
        margin-bottom: 50px;
    }
}

@media screen and (max-width: 430px) {
    .wrap-error-image::before {
        left: 10%;
        transform: translateX(-50%) rotate(-30deg);
    }
    .sec-error-content::before {
        width: 30px;
        height: 30px;
    }
    .wrap-error-image::before, .sec-error-content::before {
        top: 50px;
    }
    .sec-error-content {
        margin-bottom: 0;
    }
    .error-page .sec-products {
        margin-top: 0;
    }
}

@media screen and (max-width: 400px) {
    .separator-sec {
        margin-top: 0;
    }
    .error-page .sec-most-popular-products {
        margin-top: 0;
    }
}