/*
 * Hydracon / Plintenstunter USP bar
 * 2026-09-09
 */
.usp-bar {
    width: 100%;
    min-height: 42px;
    background: #fff;
    color: #151515;
    border-bottom: 1px solid #e8e8e8;
    font-family: 'Montserrat', sans-serif;
}

.usp-bar-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.usp-item {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
}

.usp-item strong {
    font-weight: 700;
}

.usp-icon {
    flex: 0 0 auto;
    color: #e67309;
    font-size: 20px;
}

@media (max-width: 991px) {
    .usp-item {
        font-size: 14px;
        gap: 7px;
    }

    .usp-icon {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .usp-bar,
    .usp-bar-inner {
        min-height: 42px;
    }

    .usp-bar-inner {
        position: relative;
        display: block;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
    }

    .usp-item {
        position: absolute;
        inset: 0 15px;
        display: flex;
        justify-content: center;
        text-align: center;
        width: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(4px);
        transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
        font-size: 15px;
        white-space: nowrap;
    }

    .usp-item.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (max-width: 380px) {
    .usp-item {
        font-size: 13px;
    }

    .usp-icon {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .usp-item {
        transition: none;
    }
}

/*
 * Mobile category filter offset
 * Keep the fixed filter button below the sticky Hydracon navbar.
 * The JS updates this value while the USP bar scrolls out of view.
 */
@media (max-width: 767px) {
    #filter-button {
        top: var(--hydracon-mobile-navbar-bottom, 100px);
    }

    #filter-block {
        top: var(--hydracon-mobile-navbar-bottom, 100px);
        height: calc(100vh - var(--hydracon-mobile-navbar-bottom, 100px));
    }
}

/*
 * Mobile PDP breadcrumb offset
 * The product detail page uses a fixed breadcrumb on smaller viewports.
 * Keep it directly below the actual sticky navbar, including the USP offset.
 */
@media (max-width: 767px) {
    body.hydracon-product-page .breadcrumb-container {
        top: var(--hydracon-mobile-navbar-bottom, 50px);
        z-index: 1020;
    }
}
