/* =========================================================
   OTECH RIDE - BREADCRUMB AND BACK BUTTON
   ========================================================= */


/* =========================================================
   ORIGINAL BREADCRUMB
   Hide on the entire website
   ========================================================= */

#content-wrapper > .breadcrumbs,
.breadcrumbs.navigation-home-icon-wrapper {
    display: none !important;
}


/* =========================================================
   ORDINARY PAGE TITLES
   Hide automatic Shoptet page heading
   ========================================================= */

.pageArticleDetail > header[itemprop="headline"],
.pageArticleDetail > header[itemprop="headline"] h1 {
    display: none !important;
}


/* =========================================================
   ARTICLE TITLES
   Hide automatic Shoptet article heading
   ========================================================= */

.news-item-detail > h1[itemprop="headline"],
.news-item-detail h1[itemprop="headline"],
.news-item-detail > h1[data-testid="textArticleTitle"],
.news-item-detail h1[data-testid="textArticleTitle"] {
    display: none !important;
}


/* =========================================================
   ARTICLE DATE
   Hide automatic publication date
   ========================================================= */

.news-item-detail > time,
.news-item-detail time {
    display: none !important;
}


/* =========================================================
   ARTICLE TOP SPACE
   Remove empty white space after hidden title and date
   ========================================================= */

body.type-post .content-inner,
body.type-post .news-item-detail {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.type-post .news-item-detail > .text {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* =========================================================
   CATEGORY TITLES
   Hide automatic category H1
   ========================================================= */

.category-top > h1.category-title {
    display: none !important;
}


/* =========================================================
   PRODUCT TITLES
   Product name must remain visible
   ========================================================= */

.p-detail h1,
.p-detail-inner > h1,
.p-detail-inner h1 {
    display: block !important;
}


/* =========================================================
   REMOVE EMPTY SPACE AFTER HIDDEN ELEMENTS
   ========================================================= */

.pageArticleDetail,
.category-top,
.news-item-detail {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* =========================================================
   BACK BUTTON CONTAINER
   ========================================================= */

.otr-back-navigation {
    display: flex;
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
}


/* =========================================================
   BACK BUTTON
   White background, black text, no border
   ========================================================= */

.otr-back-navigation__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 44px;
    padding: 11px 20px;

    background: #ffffff;
    color: #000000 !important;

    border: 0 !important;
    outline: 0;
    border-radius: 0;
    box-shadow: none !important;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


/* Arrow is generated by CSS, not JavaScript */
.otr-back-navigation__link::before {
    content: "\2190";
    display: inline-block;

    color: #000000;
    font-size: 20px;
    line-height: 1;
}


/* Hover and keyboard focus */
.otr-back-navigation__link:hover,
.otr-back-navigation__link:focus {
    background: #d40000;
    color: #ffffff !important;

    border: 0 !important;
    outline: 0;
    box-shadow: none !important;

    transform: translateX(-3px);
}

.otr-back-navigation__link:hover::before,
.otr-back-navigation__link:focus::before {
    color: #ffffff;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575px) {
    .otr-back-navigation {
        margin-bottom: 18px;
    }

    .otr-back-navigation__link {
        width: 100%;
        min-height: 46px;
        padding: 12px 16px;
        font-size: 14px;
    }
}