/*
 * hebumedical: o3-theme's wide layout in the look of shop.hebumedical.com —
 * Verdana, #333 text, white header with a black search bar, yellow (#fadc00) highlights,
 * grey tiles and footer. Base colors come from theme.php.
 */
:root {
    --hebu-yellow: #fadc00;
    --hebu-text: #333;
    --hebu-tile: #ececec;
    --bs-primary-rgb: 0, 0, 0;
    --bs-body-color: #333;
    --bs-link-color: #333;
    --bs-link-hover-color: #000;
}

/* Typography: Verdana like the live shop. */
body {
    color: var(--hebu-text);
    font-family: Verdana, Geneva, sans-serif;
    font-size: .875rem;
}
h1, h2, h3, h4, h5, h6, .btn, .form-control, .form-select, .nav-link {
    font-family: inherit;
}
.breadcrumb {
    font-size: .75rem;
}
.title-big {
    font-weight: 400;
}
/* Start page without the promo slider (tpl/widget/promoslider.tpl): keep the first heading off the navigation. */
body.cl-start main {
    padding-top: 2rem;
}

/* Header: small grey service links on white, compact logo. */
.header__topinfo,
.header__topinfo a,
.header__topinfo .btn {
    color: #666;
    font-size: .75rem;
}
.header__logo img {
    max-height: 110px;
    width: auto;
}

/* Black search bar with a white field. */
#searchForm .search-suggest-wrapper {
    background: #000;
    padding: 8px 16px;
}
#searchParam {
    background-color: #fff;
    border: 0;
    border-radius: 0;
    font-size: .8125rem;
    height: 2rem;
    min-height: 0;
    padding-bottom: 0;
    padding-top: 0;
}
#searchForm .btn {
    color: #fff;
}

/* Main navigation: uppercase like the live category tree; active category as a yellow block.
   Six long category names do not fit one row on tablets, so the row may wrap. */
.navbar-nav {
    flex-wrap: wrap;
}
@media (max-width: 1399.98px) {
    /* A wrapped second row spread edge to edge looks broken; line the items up instead.
       (!important: o3-theme sets Bootstrap's justify-content-between utility, which is !important.) */
    .navbar-nav {
        column-gap: 1.5rem;
        justify-content: flex-start !important;
    }
}
.navbar-nav .nav-link {
    color: var(--hebu-text);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .5px; /* 1px like live pushes the sixth category into a second row at 1440px */
    padding: .5rem .75rem;
    text-transform: uppercase;
}
[data-level=is-level-1].nav-item.active > .nav-link {
    background-color: var(--hebu-yellow);
    color: #000;
}
[data-level=is-level-1].nav-item::after {
    height: 3px;
}
[data-level=is-level-1].nav-item:hover::after {
    background-color: var(--hebu-yellow);
}
[data-level=is-level-1].nav-item.active::after {
    background-color: transparent;
}

/* Long page lists (41 pages in a category) wrap instead of overflowing on phones. */
.pagination {
    flex-wrap: wrap;
}

/* Product tiles: grey box, uppercase title, catalog info and a yellow product link (TroCatalog). */
.component__productbox-frame {
    background: var(--hebu-tile);
    border: 0;
}
.component__productbox-title {
    color: var(--hebu-text);
    height: auto;
    min-height: 0;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.tro-catalog__tile-info {
    font-size: .8125rem;
}
.tro-catalog__artnum {
    font-weight: 700;
}
.tro-catalog__shortdesc,
.tro-catalog__stock {
    margin-top: .5rem;
}
.tro-catalog__product-link,
.tro-catalog__product-link:focus-visible {
    background-color: var(--hebu-yellow);
    border-color: var(--hebu-yellow);
    color: #000;
    font-weight: 700;
    margin-top: .75rem;
}
.tro-catalog__product-link:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

/* No category banner: o3-theme stretches the category thumbnail to full width; the live shop shows the tiles only. */
.alist__image {
    display: none;
}

/* Subcategory tiles: black title bar with a yellow arrow above the picture. */
.alist__orga .component__productbox-frame {
    background: transparent;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.alist__orga .component__productbox-picture {
    margin-bottom: 0 !important;
}
.alist__orga .component__productbox-title {
    align-items: flex-start;
    background: #000;
    color: #fff;
    display: flex;
    font-size: .75rem;
    gap: .5rem;
    min-height: 3.25rem;
    order: -1;
    padding: .6rem .75rem;
}
.alist__orga .component__productbox-title::before {
    background: var(--hebu-yellow);
    color: #000;
    content: "›";
    flex: 0 0 .875rem;
    font-weight: 700;
    height: .875rem;
    line-height: .8rem;
    text-align: center;
}

/* No wishlist, like the live shop (o3-theme renders it without a setting or block to switch it off). */
.header__actions-noticelist,
.component__productbox-noticelist,
.details__share {
    display: none !important;
}

/* Professional-use notice below the header (TroCatalog). */
.tro-catalog__disclaimer {
    font-size: .8125rem;
    padding: 1.25rem var(--content-inner-margin, 0px) .5rem;
}

/* Product detail: catalog info (TroCatalog) — short description, instructions for use, alternative numbers.
   .details__info is a flex row (stock left, article number right); the catalog lines get rows of their own. */
.details__info {
    flex-wrap: wrap;
}
.details__info > .details__info-deliverytime,
.details__info > .tro-catalog__shortdesc,
.details__info > .tro-catalog__ifu,
.details__info > .tro-catalog__altartnum {
    flex: 0 0 100%;
}
.details__info > .details__info-stock { order: 1; }
.details__info > .details__info-artnum { order: 2; }
.details__info > .details__info-deliverytime { order: 3; margin-top: .5rem; }
.details__info > .tro-catalog__shortdesc { order: 4; }
.details__info > .tro-catalog__ifu { order: 5; }
.details__info > .tro-catalog__altartnum { order: 6; }
.tro-catalog__shortdesc {
    font-size: 1rem;
    margin-top: 1rem;
}
.tro-catalog__ifu,
.tro-catalog__altartnum {
    margin-top: .75rem;
}
.tro-catalog__ifu a {
    text-decoration: underline;
}
.tro-catalog__label {
    font-weight: 700;
}

/* Product gallery: o3-theme pulls sliders into the side gutter and hangs the arrows 20px outside them, so they
   were cut off at the window edge — keep the gallery aligned with the content and the arrows inside the image. */
.details .splide {
    margin-left: 0;
    margin-right: 0;
}
.details .splide__arrow--prev {
    left: .75rem;
}
.details .splide__arrow--next {
    right: .75rem;
}

/* Product detail: uppercase title like the live shop. */
.details__title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Yellow accents: counters, primary button hover, focus. */
.badge-counter {
    background-color: var(--hebu-yellow);
    color: #000;
}
.btn-primary:hover,
.btn-primary:active {
    background-color: var(--hebu-yellow);
    border-color: var(--hebu-yellow);
    color: #000;
}
.form-control:focus {
    box-shadow: 0 0 0 .2rem rgba(250, 220, 0, .5);
}

/* Footer: grey, uppercase light headings like the live shop. */
.footer__box-title {
    color: #666;
    font-size: .875rem;
    font-weight: 400;
    text-transform: uppercase;
}
footer a {
    color: var(--hebu-text);
}
