/* This stylesheet is loaded only for the storefront product layout. */
html.itodi-store-v130 #product #header {
    position: relative !important;
    top: auto !important;
}

html.itodi-store-v130.itodi-store-v140 {
    scroll-padding-top: 0;
}

#product .ip150-content section {
    scroll-margin-top: 1rem;
}

/* Keep the mobile product logo centered between the menu and shopping actions. */
@media (max-width: 760px) {
    #product #itodi-header-v110 .main-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) repeat(3, auto);
        grid-template-rows: minmax(52px, auto);
        align-items: center;
        gap: 0;
        height: auto;
        min-height: 0;
        padding: 0;
    }

    #product #itodi-header-v110 .header-start {
        grid-area: 1 / 1;
        justify-self: start;
        margin-inline-start: clamp(8px, 3vw, 16px);
    }

    #product #itodi-header-v110 .main-header > .brand {
        grid-area: 1 / 1 / 2 / -1;
        justify-self: center;
        display: flex;
        align-items: center;
        width: clamp(84px, 23vw, 100px);
        height: 44px;
    }

    #product #itodi-header-v110 .brand > svg {
        display: block;
        width: 100%;
        height: auto;
    }

    #product #itodi-header-v110 .header-end {
        display: contents;
    }

    #product #itodi-header-v110 .header-end > .search-trigger { grid-area: 1 / 2; }
    #product #itodi-header-v110 .header-end > .wishlist-trigger { grid-area: 1 / 3; }
    #product #itodi-header-v110 .header-end > .cart {
        grid-area: 1 / 4;
        margin-inline-end: clamp(8px, 3vw, 16px);
    }
}
