/*
 * =========================================================
 * REPARTO CORSE - 404
 * =========================================================
 */

html body.reparto-no-route {
    background: #fff;
}

html body.reparto-no-route .page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html body.reparto-no-route .page-main,
html body.reparto-no-route #maincontent,
html body.reparto-no-route .columns,
html body.reparto-no-route .column.main {
    background: #fff;
    box-sizing: border-box;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    float: none;
    margin: 0;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

html body.reparto-no-route .page.messages {
    display: none;
}


.reparto-404 {
    align-items: center;
    background:
            linear-gradient(
                    135deg,
                    #ffffff 0%,
                    #fafafa 55%,
                    #f3f3f3 100%
            );
    box-sizing: border-box;
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

html body.reparto-no-route .page-main,
html body.reparto-no-route .columns,
html body.reparto-no-route .column.main,
html body.reparto-no-route .reparto-404 {
    border: 0 !important;
    box-shadow: none !important;
}

html body.reparto-no-route .page-main::before,
html body.reparto-no-route .columns::before,
html body.reparto-no-route .column.main::before,
.reparto-404::before,
.reparto-empty-state::before {
    background: none !important;
    border: 0 !important;
    content: none !important;
    display: none !important;
    height: 0 !important;
}

.reparto-404__container {
    box-sizing: border-box;
    width: 100%;
}

.reparto-404__content {
    margin: 0 auto;
    max-width: 760px;
    padding: 80px 30px;
    text-align: center;
}

.reparto-404__code {
    color: #e30613;
    font-family: Rajdhani, Arial, sans-serif;
    font-size: 118px;
    font-weight: 700;
    letter-spacing: -5px;
    line-height: 0.85;
    margin-bottom: 26px;
}

.reparto-404__title {
    color: #111;
    font-family: Rajdhani, Arial, sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.reparto-404__text {
    color: #666;
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    margin: 0 auto 36px;
    max-width: 600px;
}

.reparto-404__actions {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.reparto-404__button {
    align-items: center;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    box-sizing: border-box;
    color: #111 !important;
    display: inline-flex;
    font-family: Rajdhani, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    gap: 14px;
    justify-content: center;
    min-height: 48px;
    min-width: 170px;
    overflow: visible;
    padding: 0 22px;
    text-decoration: none !important;
    text-transform: uppercase;
    transition:
            background 0.15s ease,
            border-color 0.15s ease,
            color 0.15s ease,
            transform 0.15s ease;
}

.reparto-404__button:hover,
.reparto-404__button:focus,
.reparto-404__button:visited,
.reparto-404__button:link {
    color: #111 !important;
    text-decoration: none !important;
}

.reparto-404__button:hover,
.reparto-404__button:focus {
    border-color: #111;
    transform: translateY(-2px);
}

.reparto-404__button--primary,
.reparto-404__button--primary:link,
.reparto-404__button--primary:visited {
    background: #e30613;
    border-color: #e30613;
    color: #fff !important;
}

.reparto-404__button--primary:hover,
.reparto-404__button--primary:focus {
    background: #c9000e;
    border-color: #c9000e;
    color: #fff !important;
}

body.catalog-category-view:has(.reparto-empty-state) .breadcrumbs,
body.reparto-product-listing-view:has(.reparto-empty-state) .breadcrumbs,
body.catalog-category-view:has(.reparto-empty-state) .page.messages,
body.reparto-product-listing-view:has(.reparto-empty-state) .page.messages,
body.catalog-category-view:has(.reparto-empty-state) .sidebar,
body.catalog-category-view:has(.reparto-empty-state) .sidebar-main,
body.reparto-product-listing-view:has(.reparto-empty-state) .sidebar,
body.reparto-product-listing-view:has(.reparto-empty-state) .sidebar-main,
body.catalog-category-view:has(.reparto-empty-state) .toolbar-products,
body.reparto-product-listing-view:has(.reparto-empty-state) .toolbar-products,
body.catalog-category-view:has(.reparto-empty-state) .filter-current,
body.reparto-product-listing-view:has(.reparto-empty-state) .filter-current,
body.catalog-category-view:has(.reparto-empty-state) .reparto-mobile-bar,
body.catalog-category-view:has(.reparto-empty-state) .reparto-mobile-sheet,
body.catalog-category-view:has(.reparto-empty-state) .category-description {
    display: none !important;
}

body.catalog-category-view:has(.reparto-empty-state) #maincontent,
body.reparto-product-listing-view:has(.reparto-empty-state) #maincontent {
    display: flex !important;
    flex-direction: column;
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

body.catalog-category-view.page-layout-2columns-left:has(.reparto-empty-state) .columns,
body.catalog-category-view:has(.reparto-empty-state) .columns,
body.reparto-product-listing-view:has(.reparto-empty-state) .columns,
body.catalog-category-view:has(.reparto-empty-state) .column.main,
body.reparto-product-listing-view:has(.reparto-empty-state) .column.main,
body.catalog-category-view:has(.reparto-empty-state) .category-products,
body.reparto-product-listing-view:has(.reparto-empty-state) .category-products {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    float: none !important;
    grid-column: auto !important;
    grid-template-columns: none !important;
    margin: 0 !important;
    max-width: none !important;
    min-height: 0;
    padding: 0 !important;
    width: 100% !important;
}

body.catalog-category-view .reparto-empty-state,
body.reparto-product-listing-view .reparto-empty-state {
    flex: 1 1 auto;
    min-height: 420px;
    width: 100%;
}

.reparto-404__hint {
    color: #999;
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    margin-top: 30px;
}


/*
 * =========================================================
 * RESPONSIVE
 * =========================================================
 */

@media only screen and (max-width: 768px) {
    body.catalog-category-view .reparto-empty-state,
    body.reparto-product-listing-view .reparto-empty-state {
        min-height: 320px;
    }

    .reparto-404 {
        min-height: 0;
    }

    .reparto-404__content {
        padding: 60px 20px;
    }

    .reparto-404__code {
        font-size: 88px;
        margin-bottom: 22px;
    }

    .reparto-404__title {
        font-size: 32px;
    }

    .reparto-404__text {
        font-size: 15px;
    }

    .reparto-404__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .reparto-404__button {
        width: 100%;
    }
}

@media only screen and (max-width: 420px) {
    .reparto-404__code {
        font-size: 72px;
    }

    .reparto-404__title {
        font-size: 28px;
    }
}